chore: add fabric badge #38
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
| name: Run TODO to Issue | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| todo: | |
| name: TODO to Issue | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch_depth: 0 | |
| - 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 "chore: add GitHub issue links to TODOs" | |
| git push origin master | |
| else | |
| echo "No changes to commit" | |
| fi |