Skip to content

Commit

Permalink
Feat: ToDo comments to GH issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Its4Nik authored Jan 24, 2025
1 parent 92bfd8b commit e99a274
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,36 @@ jobs:
- name: Jests
run: npm run test:silent

CodeQL:
ToDo:
needs: validation
runs-on: ubuntu-24.04
name: "TODO comment to issue"
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@v5"
with:
INSERT_ISSUE_URLS: "true"
- name: Set Git user
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit and Push Changes
run: |
git add -A
if [[ `git status --porcelain` ]]; then
git commit -m "Automatically added GitHub issue links to TODOs"
git push origin main
else
echo "No changes to commit"
fi
CodeQL:
needs: [ToDo]
runs-on: ubuntu-24.04
name: "Analyze TypeScript"
permissions:
security-events: write
Expand Down Expand Up @@ -78,7 +105,7 @@ jobs:
category: "/language:javascript-typescript"

Anchore:
needs: validation
needs: [ToDo]
runs-on: ubuntu-24.04
name: "Anchore"
permissions:
Expand Down Expand Up @@ -113,7 +140,7 @@ jobs:
sarif_file: ./results.sarif

test-building:
needs: [validation]
needs: [ToDo]
runs-on: ubuntu-24.04
name: "Test building"
permissions:
Expand Down

0 comments on commit e99a274

Please sign in to comment.