-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[triage] contribute an issue triage github workflow
Change-Id: I9b4122bed37b2e4ef3b7c0dcc3c840ebfb2d5fc9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/370160 Reviewed-by: Lasse Nielsen <[email protected]> Commit-Queue: Devon Carew <[email protected]> Reviewed-by: Nate Bosch <[email protected]>
- Loading branch information
1 parent
216a14b
commit 8a65c50
Showing
3 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# A workflow to invoke a triage automation bot. | ||
# | ||
# For more information, see | ||
# https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot and | ||
# https://github.com/dart-lang/sdk/blob/main/docs/Triaging-Dart-SDK-issues.md. | ||
|
||
name: 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@a5ac7e51b41094c92402da3b24376905380afc29 | ||
with: | ||
repository: dart-lang/ecosystem | ||
|
||
- uses: dart-lang/setup-dart@f0ead981b4d9a35b37f30d36160575d60931ec30 | ||
|
||
- run: dart pub get | ||
working-directory: pkgs/sdk_triage_bot | ||
|
||
- name: triage issue | ||
working-directory: pkgs/sdk_triage_bot | ||
env: | ||
ISSUE_URL: ${{ github.event.issue.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOOGLE_API_KEY: ${{ secrets.GEMINI_API_KEY }} | ||
run: dart bin/triage.dart $ISSUE_URL --dry-run |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters