| # ------------------------------------------------------------------- | |
| # ------------------------------- WARNING --------------------------- | |
| # ------------------------------------------------------------------- | |
| # | |
| # This file was automatically generated by gh-workflows using the | |
| # gh-workflow-gen bin. You should add and commit this file to your | |
| # git repository. **DO NOT EDIT THIS FILE BY HAND!** Any manual changes | |
| # will be lost if the file is regenerated. | |
| # | |
| # To make modifications, update your `build.rs` configuration to adjust | |
| # the workflow description as needed, then regenerate this file to apply | |
| # those changes. | |
| # | |
| # ------------------------------------------------------------------- | |
| # ----------------------------- END WARNING ------------------------- | |
| # ------------------------------------------------------------------- | |
| name: Bounty Management | |
| 'on': | |
| issues: | |
| types: | |
| - assigned | |
| - unassigned | |
| - labeled | |
| - unlabeled | |
| pull_request: | |
| types: | |
| - opened | |
| - edited | |
| - reopened | |
| pull_request_target: | |
| types: | |
| - closed | |
| schedule: | |
| - cron: '0 2 * * *' | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| sync-all-issues: | |
| name: Sync all bounty issues | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install npm packages | |
| run: npm install | |
| - name: Sync all bounty labels | |
| run: npx tsx .github/scripts/bounty/src/sync-all-issues.ts --repo ${{ github.repository }} --token ${{ secrets.GITHUB_TOKEN }} --execute | |
| sync-pr: | |
| name: Sync PR bounty labels | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install npm packages | |
| run: npm install | |
| - name: Sync bounty labels | |
| run: npx tsx .github/scripts/bounty/src/sync-pr.ts --pr ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --token ${{ secrets.GITHUB_TOKEN }} | |