/ .github / workflows / issue-manager.yml
issue-manager.yml
 1  name: Issue Manager
 2  
 3  on:
 4    schedule:
 5      - cron: "0 0 * * *"
 6    issue_comment:
 7      types:
 8        - created
 9    issues:
10      types:
11        - labeled
12    pull_request_target:
13      types:
14        - labeled
15    workflow_dispatch:
16  
17  permissions:
18    issues: write
19    pull-requests: write
20  
21  jobs:
22    issue-manager:
23      runs-on: ubuntu-latest
24      steps:
25        - uses: tiangolo/issue-manager@0.5.1
26          with:
27            token: ${{ secrets.GITHUB_TOKEN }}
28            config: >
29              {
30                "answered": {
31                  "delay": 604800,
32                  "message": "It seems the issue was answered, closing this now."
33                },
34                "waiting": {
35                  "delay": 60400,
36                  "message": "Closing after 7 days of waiting for the additional info requested."
37                }
38              }