Skip to content

Commit 885914c

Browse files
authored
1 parent 59c5d3c commit 885914c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/issue-triage.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# For more information, see
2+
# https://github.com/fluttercandies/triage_bot_for_flutter_photo_manager
3+
name: Issue Triage Bot
4+
5+
# Run when an issue is created.
6+
on:
7+
issues:
8+
types:
9+
- opened
10+
11+
# All permissions not specified are set to 'none'.
12+
permissions:
13+
issues: write
14+
15+
jobs:
16+
triage-issues:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
repository: fluttercandies/triage_bot_for_flutter_photo_manager
22+
- uses: dart-lang/setup-dart@v1
23+
- run: dart pub get
24+
working-directory: pkgs/issue_triage_bot
25+
26+
# Delay 2 minutes to allow a grace period between opening or transferring
27+
# an issue and assigning a label.
28+
- name: sleep 2m
29+
run: sleep 120
30+
31+
- name: triage issue
32+
working-directory: pkgs/issue_triage_bot
33+
env:
34+
ISSUE_URL: ${{ github.event.issue.html_url }}
35+
GITHUB_TOKEN: ${{ secrets.TRIAGE_BOT_TOKEN }}
36+
GEMINI_API_KEY: ${{ secrets.TRIAGE_BOT_API_KEY }}
37+
run: dart bin/triage.dart $ISSUE_URL --release

0 commit comments

Comments
 (0)