unawaited_futures
not working in forEach
#1057
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
# 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 | |
if: ${{ github.repository_owner == 'dart-lang' }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
repository: dart-lang/ecosystem | |
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 | |
- run: dart pub get | |
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. | |
- name: sleep 2m | |
run: sleep 120 | |
- name: triage issue | |
working-directory: pkgs/sdk_triage_bot | |
env: | |
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 |