Merge pull request #115 from DiogoRibeiro7/chore/restart #19
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: Smart TODO Tracker | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| smart-todo: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - run: yarn install | |
| - run: yarn prepare | |
| - name: Run Smart TODO Action | |
| uses: ./ | |
| with: | |
| repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| issue-title-template: src/templates/issueTitle.txt | |
| issue-body-template: src/templates/issueBody.md | |
| report: true | |
| structured: true | |
| llm: false | |
| openai-api-key: ${{ secrets.OPENAI_API_KEY }} | |
| - name: Upload TODO report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: todo-report | |
| path: TODO_REPORT.md | |
| - name: Generate Changelog from TODOs | |
| run: yarn changelog | |
| - name: Commit TODO report and CHANGELOG | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git add TODO_REPORT.md CHANGELOG.md | |
| git diff --cached --quiet && echo "No changes to commit." || git commit -m "chore(report): update TODO report and changelog [skip ci]" | |
| git push | |