From 8a65c5056aafd525cf75f66bbc57c2dd7c1d4742 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Fri, 7 Jun 2024 16:07:30 +0000 Subject: [PATCH] [triage] contribute an issue triage github workflow Change-Id: I9b4122bed37b2e4ef3b7c0dcc3c840ebfb2d5fc9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/370160 Reviewed-by: Lasse Nielsen Commit-Queue: Devon Carew Reviewed-by: Nate Bosch --- .github/workflows/issue-triage.yml | 38 ++++++++++++++++++++++++++++++ docs/Triage-automation.md | 3 --- docs/Triaging-Dart-SDK-issues.md | 10 ++++++++ 3 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/issue-triage.yml delete mode 100644 docs/Triage-automation.md diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml new file mode 100644 index 00000000000..44822426755 --- /dev/null +++ b/.github/workflows/issue-triage.yml @@ -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 diff --git a/docs/Triage-automation.md b/docs/Triage-automation.md deleted file mode 100644 index 307fdf0cefa..00000000000 --- a/docs/Triage-automation.md +++ /dev/null @@ -1,3 +0,0 @@ -## What are the `@dart-github-bot` comments? - -We're experimenting with triage automation. You may see comments made by a `@dart-github-bot` - that's related to our automation investigations. We may or may not continue experimentation here; for now, you can safely ignore these comments. diff --git a/docs/Triaging-Dart-SDK-issues.md b/docs/Triaging-Dart-SDK-issues.md index 30671f6a980..fbe80adf2c3 100644 --- a/docs/Triaging-Dart-SDK-issues.md +++ b/docs/Triaging-Dart-SDK-issues.md @@ -44,6 +44,16 @@ on an issue, say so, and consider adding the `needs-info` label to the issue. Is with a `needs-info` label are triaged by our [no response] bot; it will auto-close the issue after 14 days if the issue reporter does not respond. +## Triage automation + +We're experimenting with triage automation. You may see comments made by a +`@dart-github-bot` - that's related to our automation investigations. We may or +may not continue experimentation here; for now, you can safely ignore these +comments. + +For the source for the triage tool, see +https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. + ## Follow up steps for Dart VM and Dart IO Library issues 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.