Skip to content

Commit 1bf3fc1

Browse files
authored
👷 Update issue-manager.yml (#246)
1 parent 705f89e commit 1bf3fc1

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/issue-manager.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,42 @@ name: Issue Manager
22

33
on:
44
schedule:
5-
- cron: "0 0 * * *"
5+
- cron: "13 18 * * *"
66
issue_comment:
77
types:
88
- created
9-
- edited
109
issues:
1110
types:
1211
- labeled
12+
pull_request_target:
13+
types:
14+
- labeled
15+
workflow_dispatch:
16+
17+
permissions:
18+
issues: write
19+
pull-requests: write
1320

1421
jobs:
1522
issue-manager:
23+
if: github.repository_owner == 'fastapi'
1624
runs-on: ubuntu-latest
1725
steps:
26+
- name: Dump GitHub context
27+
env:
28+
GITHUB_CONTEXT: ${{ toJson(github) }}
29+
run: echo "$GITHUB_CONTEXT"
1830
- uses: tiangolo/[email protected]
1931
with:
2032
token: ${{ secrets.GITHUB_TOKEN }}
2133
config: >
2234
{
2335
"answered": {
24-
"users": ["tiangolo"],
2536
"delay": 864000,
26-
"message": "Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues."
37+
"message": "Assuming the original need was handled, this will be automatically closed now. But feel free to add more comments or create new issues or PRs."
38+
},
39+
"waiting": {
40+
"delay": 2628000,
41+
"message": "As this PR has been waiting for the original user for a while but seems to be inactive, it's now going to be closed. But if there's anyone interested, feel free to create a new PR."
2742
}
2843
}

0 commit comments

Comments
 (0)