| # 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. |
| # Run when an issue is created. |
| # All permissions not specified are set to 'none'. |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 |
| repository: dart-lang/ecosystem |
| - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 |
| working-directory: pkgs/sdk_triage_bot |
| # Delay 2 minutes to allow a grace period between opening or transferring |
| # an issue and assigning an area- label. |
| working-directory: pkgs/sdk_triage_bot |
| ISSUE_URL: ${{ github.event.issue.html_url }} |
| GITHUB_TOKEN: ${{ secrets.DARTBOT_GITHUB_TOKEN }} |
| GOOGLE_API_KEY: ${{ secrets.GEMINI_API_KEY }} |
| run: dart bin/triage.dart $ISSUE_URL |