-
Notifications
You must be signed in to change notification settings - Fork 0
Add TODO/FIXME scanning, link checking, and PR template to CI #134
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| ## Description | ||
| Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. | ||
|
|
||
| ## Type of change | ||
| - [ ] Bug fix (non-breaking change which fixes an issue) | ||
| - [ ] New feature (non-breaking change which adds functionality) | ||
| - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
| - [ ] Documentation update | ||
| - [ ] Performance optimization | ||
|
|
||
| ## How Has This Been Tested? | ||
| Please describe the tests that you ran to verify your changes. | ||
|
|
||
| ## Checklist: | ||
| - [ ] My code follows the style guidelines of this project | ||
| - [ ] I have performed a self-review of my own code | ||
| - [ ] I have commented my code, particularly in hard-to-understand areas | ||
| - [ ] I have made corresponding changes to the documentation | ||
| - [ ] My changes generate no new warnings | ||
| - [ ] I have added tests that prove my fix is effective or that my feature works | ||
| - [ ] New and existing unit tests pass locally with my changes | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Documentation and Quality Checks | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request: | ||
| branches: ["main"] | ||
|
|
||
| jobs: | ||
| link-checker: | ||
| name: Link Checker | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Link Checker | ||
| uses: lycheeverse/lychee-action@v2 | ||
| with: | ||
| args: --exclude-mail --verbose --no-progress './**/*.md' | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| todo-scanner: | ||
| name: TODO/FIXME Scanner | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Scan for TODO/FIXME | ||
| run: | | ||
| echo "Scanning for TODO and FIXME comments in the codebase..." | ||
| # Exclude common meta-directories and the .github folder to avoid matching this workflow file | ||
| grep -rnEi "TODO|FIXME" . --exclude-dir={node_modules,.git,.next,.agent,.jules,.github} || echo "No TODO/FIXME comments found." | ||
|
Comment on lines
+28
to
+31
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don’t mask real
Proposed fix- grep -rnEi "TODO|FIXME" . --exclude-dir={node_modules,.git,.next,.agent,.jules,.github} || echo "No TODO/FIXME comments found."
+ if grep -rnEi "\b(TODO|FIXME)\b" . --exclude-dir={node_modules,.git,.next,.agent,.jules,.github}; then
+ echo "TODO/FIXME comments found."
+ else
+ status=$?
+ if [ "$status" -eq 1 ]; then
+ echo "No TODO/FIXME comments found."
+ else
+ echo "grep failed with exit code $status"
+ exit "$status"
+ fi
+ fi🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Exclude LinkedIn because it often returns 999 or 403 in CI | ||
| https://www.linkedin.com/.* | ||
| # Exclude Twitter/X | ||
| https://twitter.com/.* | ||
| https://x.com/.* | ||
| # Exclude local development URLs | ||
| http://localhost:.* | ||
|
Comment on lines
+2
to
+7
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The regex patterns for ignoring URLs can be made more robust. The current patterns are quite specific and might miss variations of the URLs. For example,
Comment on lines
+1
to
+7
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: .lycheeignore Citations:
Rename The file is named 🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR template is a great addition! To make it even more useful, I suggest a couple of enhancements:
Closes # (issue)line makes it very clear which issue is being addressed and allows GitHub to automatically close it upon merging.RefactoringandChoreprovides more accurate options for categorizing PRs that don't add features or fix bugs, which is common in project maintenance.These changes will help improve PR clarity and project management.