-
Notifications
You must be signed in to change notification settings - Fork 2k
enforcing style rules #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7c25cd2
Fixing line endings and removing dead code
aaronpowell 017312a
Missing descriptions due to line endings
aaronpowell 0166649
Enforcing that the line endings should be LF
aaronpowell ee5096d
Potential fix for code scanning alert no. 18: Workflow does not conta…
aaronpowell 2ede706
Fixing readme generator
aaronpowell 959664a
Merge branch 'enforcing-style-rules' of https://github.com/github/awe…
aaronpowell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # EditorConfig is awesome: https://EditorConfig.org | ||
|
|
||
| # top-most EditorConfig file | ||
| root = true | ||
|
|
||
| # All files | ||
| [*] | ||
| indent_style = space | ||
| indent_size = 2 | ||
| end_of_line = lf | ||
| charset = utf-8 | ||
| trim_trailing_whitespace = true | ||
| insert_final_newline = true | ||
|
|
||
| # Markdown files | ||
| [*.md] | ||
| trim_trailing_whitespace = false | ||
| max_line_length = off | ||
|
|
||
| # JSON files | ||
| [*.json] | ||
| indent_size = 2 | ||
|
|
||
| # JavaScript files | ||
| [*.js] | ||
| indent_size = 2 | ||
|
|
||
| # Shell scripts | ||
| [*.sh] | ||
| end_of_line = lf | ||
|
|
||
| # Windows scripts | ||
| [*.{cmd,bat}] | ||
| end_of_line = crlf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Set default behavior to automatically normalize line endings. | ||
| * text=auto eol=lf | ||
|
|
||
| # Explicitly declare text files to be normalized and converted to native line endings on checkout. | ||
| *.md text eol=lf | ||
| *.txt text eol=lf | ||
| *.js text eol=lf | ||
| *.json text eol=lf | ||
| *.yml text eol=lf | ||
| *.yaml text eol=lf | ||
| *.html text eol=lf | ||
| *.css text eol=lf | ||
| *.scss text eol=lf | ||
| *.ts text eol=lf | ||
| *.sh text eol=lf | ||
|
|
||
| # Windows-specific files that should retain CRLF line endings | ||
| *.bat text eol=crlf | ||
| *.cmd text eol=crlf | ||
|
|
||
| # Binary files that should not be modified | ||
| *.png binary | ||
| *.jpg binary | ||
| *.jpeg binary | ||
| *.gif binary | ||
| *.ico binary | ||
| *.zip binary | ||
| *.pdf binary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Check Line Endings | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check-line-endings: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - name: Check for CRLF line endings in markdown files | ||
| run: | | ||
| ! grep -l $'\r' $(find . -name "*.md") | ||
| if [ $? -eq 0 ]; then | ||
| echo "✅ No CRLF line endings found in markdown files" | ||
| exit 0 | ||
| else | ||
| echo "❌ CRLF line endings found in markdown files" | ||
| echo "Files with CRLF line endings:" | ||
| grep -l $'\r' $(find . -name "*.md") | ||
| exit 1 | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| node_modules | ||
| *.orig | ||
| [Cc]opilot-[Pp]rocessing.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "recommendations": [ | ||
| "editorconfig.editorconfig", | ||
| "davidanson.vscode-markdownlint" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,26 @@ | ||
| { | ||
| "chat.modeFilesLocations": { | ||
| "chatmodes": true | ||
| }, | ||
| "chat.promptFilesLocations": { | ||
| "prompts": true | ||
| }, | ||
| "chat.instructionsFilesLocations": { | ||
| "instructions": true | ||
| } | ||
| } | ||
| "chat.modeFilesLocations": { | ||
| "chatmodes": true | ||
| }, | ||
| "chat.promptFilesLocations": { | ||
| "prompts": true | ||
| }, | ||
| "chat.instructionsFilesLocations": { | ||
| "instructions": true | ||
| }, | ||
| "files.eol": "\n", | ||
| "files.insertFinalNewline": true, | ||
| "files.trimTrailingWhitespace": true, | ||
| "[markdown]": { | ||
| "files.trimTrailingWhitespace": false, | ||
| "editor.formatOnSave": true | ||
| }, | ||
| "editor.rulers": [ | ||
| 100 | ||
| ], | ||
| "files.associations": { | ||
| "*.chatmode.md": "markdown", | ||
| "*.instructions.md": "markdown", | ||
| "*.prompt.md": "markdown" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| # Support | ||
| ## How to file issues and get help | ||
| This project uses GitHub issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new issue. | ||
| For help or questions about using this project, please raise an issue on GitHub. | ||
| Please include one of the following statements file: | ||
| - **Awesome Copilot Prompts** is under active development and maintained by GitHub and Microsoft staff **AND THE COMMUNITY**. We will do our best to respond to support, feature requests, and community questions in a timely manner. | ||
| - | ||
| ## GitHub Support Policy | ||
| Support for this project is limited to the resources listed above. | ||
| # Support | ||
|
|
||
| ## How to file issues and get help | ||
|
|
||
| This project uses GitHub issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new issue. | ||
|
|
||
| For help or questions about using this project, please raise an issue on GitHub. | ||
|
|
||
| Please include one of the following statements file: | ||
|
|
||
| - **Awesome Copilot Prompts** is under active development and maintained by GitHub and Microsoft staff **AND THE COMMUNITY**. We will do our best to respond to support, feature requests, and community questions in a timely manner. | ||
| - | ||
| ## GitHub Support Policy | ||
|
|
||
| Support for this project is limited to the resources listed above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| mode: 'agent' | ||
| tools: ['githubRepo', 'github', 'get_issue', 'get_issue_comments', 'get_me', 'list_issues'] | ||
| description: 'List my issues in the current repository' | ||
| --- | ||
| Search the current repo (using #githubRepo for the repo info) and list any issues you find (using #list_issues) that are assigned to me. | ||
| Suggest issues that I might want to focus on based on their age, the amount of comments, and their status (open/closed). | ||
| --- | ||
| mode: 'agent' | ||
| tools: ['githubRepo', 'github', 'get_issue', 'get_issue_comments', 'get_me', 'list_issues'] | ||
| description: 'List my issues in the current repository' | ||
| --- | ||
|
|
||
| Search the current repo (using #githubRepo for the repo info) and list any issues you find (using #list_issues) that are assigned to me. | ||
|
|
||
| Suggest issues that I might want to focus on based on their age, the amount of comments, and their status (open/closed). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| --- | ||
| mode: 'agent' | ||
| tools: ['githubRepo', 'github', 'get_me', 'get_pull_request', 'get_pull_request_comments', 'get_pull_request_diff', 'get_pull_request_files', 'get_pull_request_reviews', 'get_pull_request_status', 'list_pull_requests', 'request_copilot_review'] | ||
| description: 'List my pull requests in the current repository' | ||
| --- | ||
| Search the current repo (using #githubRepo for the repo info) and list any pull requests you find (using #list_pull_requests) that are assigned to me. | ||
| Describe the purpose and details of each pull request. | ||
| If a PR is waiting for someone to review, highlight that in the response. | ||
| If there were any check failures on the PR, describe them and suggest possible fixes. | ||
| If there was no review done by Copilot, offer to request one using #request_copilot_review. | ||
| --- | ||
| mode: 'agent' | ||
| tools: ['githubRepo', 'github', 'get_me', 'get_pull_request', 'get_pull_request_comments', 'get_pull_request_diff', 'get_pull_request_files', 'get_pull_request_reviews', 'get_pull_request_status', 'list_pull_requests', 'request_copilot_review'] | ||
| description: 'List my pull requests in the current repository' | ||
| --- | ||
|
|
||
| Search the current repo (using #githubRepo for the repo info) and list any pull requests you find (using #list_pull_requests) that are assigned to me. | ||
|
|
||
| Describe the purpose and details of each pull request. | ||
|
|
||
| If a PR is waiting for someone to review, highlight that in the response. | ||
|
|
||
| If there were any check failures on the PR, describe them and suggest possible fixes. | ||
|
|
||
| If there was no review done by Copilot, offer to request one using #request_copilot_review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
| # Script to fix line endings in all markdown files | ||
|
|
||
| echo "Normalizing line endings in markdown files..." | ||
|
|
||
| # Find all markdown files and convert CRLF to LF | ||
| find . -name "*.md" -type f -exec sed -i 's/\r$//' {} \; | ||
|
|
||
| echo "Done! All markdown files now have LF line endings." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.