Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Issue Triage Bot #1218

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/issue-triage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# For more information, see
# https://github.com/fluttercandies/triage_bot_for_flutter_photo_manager
name: Issue Triage Bot

# Run when an issue is created.
on:
issues:
types:
- opened

# All permissions not specified are set to 'none'.
permissions:
issues: write

jobs:
triage-issues:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: fluttercandies/triage_bot_for_flutter_photo_manager
- uses: dart-lang/setup-dart@v1
- run: dart pub get
working-directory: pkgs/issue_triage_bot

# Delay 2 minutes to allow a grace period between opening or transferring
# an issue and assigning a label.
- name: sleep 2m
run: sleep 120

- name: triage issue
working-directory: pkgs/issue_triage_bot
env:
ISSUE_URL: ${{ github.event.issue.html_url }}
GITHUB_TOKEN: ${{ secrets.TRIAGE_BOT_TOKEN }}
GEMINI_API_KEY: ${{ secrets.TRIAGE_BOT_API_KEY }}
run: dart bin/triage.dart $ISSUE_URL --release
Loading