Skip to content

Commit 8a65c50

Browse files
devoncarewCommit Queue
authored and
Commit Queue
committed
[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]>
1 parent 216a14b commit 8a65c50

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

.github/workflows/issue-triage.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# A workflow to invoke a triage automation bot.
2+
#
3+
# For more information, see
4+
# https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot and
5+
# https://github.com/dart-lang/sdk/blob/main/docs/Triaging-Dart-SDK-issues.md.
6+
7+
name: Triage Bot
8+
9+
# Run when an issue is created.
10+
on:
11+
issues:
12+
types:
13+
- opened
14+
15+
# All permissions not specified are set to 'none'.
16+
permissions:
17+
issues: write
18+
19+
jobs:
20+
triage_issues:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
24+
with:
25+
repository: dart-lang/ecosystem
26+
27+
- uses: dart-lang/setup-dart@f0ead981b4d9a35b37f30d36160575d60931ec30
28+
29+
- run: dart pub get
30+
working-directory: pkgs/sdk_triage_bot
31+
32+
- name: triage issue
33+
working-directory: pkgs/sdk_triage_bot
34+
env:
35+
ISSUE_URL: ${{ github.event.issue.html_url }}
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
GOOGLE_API_KEY: ${{ secrets.GEMINI_API_KEY }}
38+
run: dart bin/triage.dart $ISSUE_URL --dry-run

docs/Triage-automation.md

-3
This file was deleted.

docs/Triaging-Dart-SDK-issues.md

+10
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ on an issue, say so, and consider adding the `needs-info` label to the issue. Is
4444
with a `needs-info` label are triaged by our [no response] bot; it will auto-close
4545
the issue after 14 days if the issue reporter does not respond.
4646

47+
## Triage automation
48+
49+
We're experimenting with triage automation. You may see comments made by a
50+
`@dart-github-bot` - that's related to our automation investigations. We may or
51+
may not continue experimentation here; for now, you can safely ignore these
52+
comments.
53+
54+
For the source for the triage tool, see
55+
https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.
56+
4757
## Follow up steps for Dart VM and Dart IO Library issues
4858

4959
Issues filed against the Dart VM (issues with label `area-vm` : [VM issues](https://github.com/dart-lang/sdk/issues?q=is%3Aissue+is%3Aopen+label%3Aarea-vm+)) and IO library (issues with labels `area-core-library` `library-io` : [io library issues](https://github.com/dart-lang/sdk/issues?q=is%3Aissue+is%3Aopen+label%3Aarea-core-library+label%3Alibrary-io)) are triaged at least weekly by a member of the Dart VM team.

0 commit comments

Comments
 (0)