Feat/add citation #53
Workflow file for this run
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: | |
| pull_request: | |
| branches: [main] | |
| types: [closed] | |
| workflow_dispatch: | |
| inputs: | |
| report: | |
| description: 'Generate TODO markdown report?' | |
| required: true | |
| default: 'true' | |
| type: choice | |
| options: | |
| - true | |
| - false | |
| structured: | |
| description: 'Enable structured tag parsing?' | |
| required: true | |
| default: 'false' | |
| type: choice | |
| options: | |
| - true | |
| - false | |
| llm: | |
| description: 'Use LLM for title/body generation?' | |
| required: true | |
| default: 'false' | |
| type: choice | |
| options: | |
| - true | |
| - false | |
| limit: | |
| description: 'Max number of issues to create' | |
| required: false | |
| default: '50' | |
| jobs: | |
| smart-todo: | |
| if: github.event.pull_request.merged == true | |
| 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 | |