|
1 | 1 | name: issue bot |
| 2 | + |
2 | 3 | on: |
3 | | - # schedule: |
4 | | - # - cron: "30 1 * * *" |
5 | 4 | issues: |
6 | 5 | types: |
7 | 6 | - labeled |
| 7 | + issue_comment: |
| 8 | + types: |
| 9 | + - created |
| 10 | + schedule: |
| 11 | + - cron: "30 1 * * *" |
| 12 | + workflow_dispatch: |
| 13 | + |
| 14 | +permissions: |
| 15 | + issues: write |
| 16 | + pull-requests: write |
8 | 17 |
|
9 | 18 | jobs: |
10 | | - # close-issues: |
11 | | - # runs-on: ubuntu-latest |
12 | | - # permissions: |
13 | | - # issues: write |
14 | | - # pull-requests: write |
15 | | - # steps: |
16 | | - # - uses: actions/stale@v5 |
17 | | - # with: |
18 | | - # days-before-issue-stale: 30 |
19 | | - # days-before-issue-close: 7 |
20 | | - # stale-issue-label: "stale" |
21 | | - # stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." |
22 | | - # close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." |
23 | | - # exempt-issue-labels: "help wanted" |
24 | | - # days-before-pr-stale: -1 |
25 | | - # days-before-pr-close: -1 |
26 | | - # repo-token: ${{ secrets.GITHUB_TOKEN }} |
27 | | - issue-invalid: |
28 | | - name: close invalid issue |
29 | | - if: github.event.label.name == 'invalid' |
30 | | - runs-on: ubuntu-latest |
31 | | - permissions: |
32 | | - issues: write |
33 | | - pull-requests: write |
34 | | - steps: |
35 | | - - uses: actions-cool/issues-helper@v3 |
36 | | - with: |
37 | | - actions: close-issue, create-comment |
38 | | - token: ${{ secrets.GITHUB_TOKEN }} |
39 | | - body: | |
40 | | - Hello @${{ github.event.issue.user.login }}. This issue is marked as `invalid` and closed. Please make sure you are reporting an issue and following the issue template. |
41 | | - issue-duplicate: |
42 | | - name: close duplicate issue |
43 | | - if: github.event.label.name == 'duplicate' |
44 | | - runs-on: ubuntu-latest |
45 | | - permissions: |
46 | | - issues: write |
47 | | - pull-requests: write |
48 | | - steps: |
49 | | - - uses: actions-cool/issues-helper@v3 |
50 | | - with: |
51 | | - actions: close-issue, create-comment |
52 | | - token: ${{ secrets.GITHUB_TOKEN }} |
53 | | - body: | |
54 | | - Hello @${{ github.event.issue.user.login }}. This issue is marked as `duplicate` and closed. Please make sure you have searched to see if an issue already exists for the bug you encountered. |
| 19 | + issue-bot: |
| 20 | + uses: zotero-plugin-dev/workflows/.github/workflows/issue-bot.yml@main |
0 commit comments