From 6ce3d43484b421540c952c4110663a1287d29c74 Mon Sep 17 00:00:00 2001 From: Frank Chen Date: Tue, 25 Aug 2026 23:36:29 +0000 Subject: [PATCH] [github-actions]: Adopt durable execution CI v0.3.0 --- .github/workflows/ai-issue-implementation.yml | 25 +++++++++++ .../ai-pr-review-address-continuation.yml | 29 +++++++++++++ .github/workflows/ai-pr-review-address.yml | 41 +++++++++++++++++++ .github/workflows/ai-pr-review.yml | 10 ++++- .github/workflows/issue-triage.yml | 2 +- .github/workflows/notify.yml | 3 +- 6 files changed, 105 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ai-issue-implementation.yml create mode 100644 .github/workflows/ai-pr-review-address-continuation.yml create mode 100644 .github/workflows/ai-pr-review-address.yml diff --git a/.github/workflows/ai-issue-implementation.yml b/.github/workflows/ai-issue-implementation.yml new file mode 100644 index 000000000..451844bdb --- /dev/null +++ b/.github/workflows/ai-issue-implementation.yml @@ -0,0 +1,25 @@ +name: AI Issue Implementation + +on: + issue_comment: + types: [created] + workflow_dispatch: + inputs: + issue-number: + description: Authorized issue number to implement + required: true + type: string + +permissions: {} + +jobs: + implement: + permissions: + contents: write + id-token: write + issues: write + pull-requests: write + uses: aws/aws-durable-execution-ci/.github/workflows/ai-issue-implementation.yml@8de63fa646c1b7b778829126cf53b7874074795e + with: + issue-number: ${{ inputs['issue-number'] || '' }} + secrets: inherit diff --git a/.github/workflows/ai-pr-review-address-continuation.yml b/.github/workflows/ai-pr-review-address-continuation.yml new file mode 100644 index 000000000..6eea278c6 --- /dev/null +++ b/.github/workflows/ai-pr-review-address-continuation.yml @@ -0,0 +1,29 @@ +name: AI PR Review Address Continuation + +on: + workflow_run: + workflows: + - AI PR Review Address + types: [completed] + +permissions: {} + +jobs: + address: + if: >- + github.event.workflow_run.event == + 'pull_request_review_comment' && + github.event.workflow_run.conclusion == 'success' + permissions: + actions: read + contents: write + id-token: write + issues: write + pull-requests: write + uses: aws/aws-durable-execution-ci/.github/workflows/ai-pr-review-address.yml@8de63fa646c1b7b778829126cf53b7874074795e + with: + source-run-id: >- + ${{ format('{0}', github.event.workflow_run.id || '') }} + source-run-attempt: >- + ${{ format('{0}', github.event.workflow_run.run_attempt || '') }} + secrets: inherit diff --git a/.github/workflows/ai-pr-review-address.yml b/.github/workflows/ai-pr-review-address.yml new file mode 100644 index 000000000..d72f07cb3 --- /dev/null +++ b/.github/workflows/ai-pr-review-address.yml @@ -0,0 +1,41 @@ +name: AI PR Review Address + +on: + issue_comment: + types: [created] + + pull_request_review_comment: + types: [created] + + workflow_dispatch: + inputs: + pull-request-number: + description: Pull request number + required: true + type: string + +permissions: {} + +jobs: + intake: + if: github.event_name == 'pull_request_review_comment' + permissions: + contents: read + issues: read + pull-requests: read + uses: aws/aws-durable-execution-ci/.github/workflows/ai-pr-review-address.yml@8de63fa646c1b7b778829126cf53b7874074795e + + address: + if: >- + github.event_name == 'issue_comment' || + github.event_name == 'workflow_dispatch' + permissions: + actions: read + contents: write + id-token: write + issues: write + pull-requests: write + uses: aws/aws-durable-execution-ci/.github/workflows/ai-pr-review-address.yml@8de63fa646c1b7b778829126cf53b7874074795e + with: + pull-request-number: ${{ inputs['pull-request-number'] || '' }} + secrets: inherit diff --git a/.github/workflows/ai-pr-review.yml b/.github/workflows/ai-pr-review.yml index 8742352ed..81ed1e921 100644 --- a/.github/workflows/ai-pr-review.yml +++ b/.github/workflows/ai-pr-review.yml @@ -3,16 +3,22 @@ name: AI PR Review on: pull_request_target: types: [opened, synchronize, reopened, ready_for_review] + pull_request_review: + types: [submitted, edited, dismissed] + pull_request_review_comment: + types: [created, edited, deleted] + issue_comment: + types: [created] permissions: {} jobs: ai-pr-review: permissions: - contents: read + contents: write id-token: write pull-requests: write - uses: aws/aws-durable-execution-ci/.github/workflows/ai-pr-review.yml@ac55d9f4b027e193aba9fa5a69c70bfa1bdc38ed + uses: aws/aws-durable-execution-ci/.github/workflows/ai-pr-review.yml@8de63fa646c1b7b778829126cf53b7874074795e with: prompt-path: .github/prompts/ai-pr-review.md secrets: inherit diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml index 1b424258e..ca1b69379 100644 --- a/.github/workflows/issue-triage.yml +++ b/.github/workflows/issue-triage.yml @@ -12,5 +12,5 @@ jobs: contents: read id-token: write issues: write - uses: aws/aws-durable-execution-ci/.github/workflows/issue-triage.yml@ac55d9f4b027e193aba9fa5a69c70bfa1bdc38ed + uses: aws/aws-durable-execution-ci/.github/workflows/issue-triage.yml@8de63fa646c1b7b778829126cf53b7874074795e secrets: inherit diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index e7343719f..031893049 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -16,9 +16,8 @@ jobs: notify: permissions: contents: read - models: read id-token: write - uses: aws/aws-durable-execution-ci/.github/workflows/notify.yml@ac55d9f4b027e193aba9fa5a69c70bfa1bdc38ed + uses: aws/aws-durable-execution-ci/.github/workflows/notify.yml@8de63fa646c1b7b778829126cf53b7874074795e secrets: BEDROCK_ROLE_ARN: ${{ secrets.BEDROCK_ROLE_ARN }} SLACK_WEBHOOK_URL_PR: ${{ secrets.SLACK_WEBHOOK_URL_PR }}