Skip to content

ci: notify Slack on closed issue comments - #962

Merged
SilanHe merged 5 commits into
mainfrom
ci/closed-issue-comment-notify
Nov 18, 2026
Merged

SilanHe merged 5 commits into
mainfrom
ci/closed-issue-comment-notify

Conversation

@SilanHe

@SilanHe SilanHe commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Adds the shared closed-issue-comment workflow from aws-durable-execution-ci#86 (v0.6.0, pinned to commit e04e810). It pings the issue Slack channel when an outside user comments on a closed issue.

Design note

Problem. Nobody sees comments on closed issues. In the last 6 months one real bug report on a closed issue got no reply (sdk-js#674, day 18 after close).

Cause. GitHub only notifies people who subscribed. No workflow in the shared CI repo runs on issue_comment. The stale-issue closer also asks authors to comment on closed issues.

Options.

  • Reply on close with a fixed message (closed-issue-message). The team still never sees the comment.
  • Bot reply on each outside comment. Needs a script and issues: write, and clashes with the stale closer's "comment and we will reopen" text.
  • Lock old closed issues. Blocks real reports.
  • Simplify existing logic: no existing workflow can take this, so none is changed.
  • Slack ping only, through the existing shared workflow and SLACK_WEBHOOK_URL_ISSUE.

Chosen. Slack ping only. It needs no script, no token permissions and no checkout, and it posts nothing on GitHub.

Removes. Nothing.

Decisions not covered by the task

  • Comments from owners, members, collaborators and bots are ignored.
  • Every other new comment on a closed issue pings, with no delay.
  • The job runs on ubuntu-latest.

🤖 AI-assisted comment

@SilanHe
SilanHe marked this pull request as ready for review November 17, 2026 23:10
@SilanHe
SilanHe deployed to ai-pr-review-runtime November 17, 2026 23:10 — with GitHub Actions Active
@SilanHe
SilanHe deployed to ai-pr-review-runtime November 17, 2026 23:11 — with GitHub Actions Active
@@ -0,0 +1,13 @@
name: Closed Issue Comment

This comment was marked as outdated.

Comment on lines +4 to +5
issue_comment:
types: [created]

This comment was marked as outdated.

@github-actions

This comment has been minimized.

zhongkechen
zhongkechen previously approved these changes Nov 17, 2026

jobs:
closed-issue-comment:
uses: aws/aws-durable-execution-ci/.github/workflows/closed-issue-comment.yml@e04e810d6d7e452377bbefc04f007ad7373d19e2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we release a new version of CI repo and pin the released version?

@SilanHe
SilanHe deployed to ai-pr-review-runtime November 18, 2026 17:08 — with GitHub Actions Active
Comment on lines +10 to +11
closed-issue-comment:
uses: aws/aws-durable-execution-ci/.github/workflows/closed-issue-comment.yml@e04e810d6d7e452377bbefc04f007ad7373d19e2

This comment was marked as outdated.

Comment on lines +4 to +5
issue_comment:
types: [created]

This comment was marked as outdated.

@github-actions

This comment has been minimized.

Comment on lines +4 to +5
issue_comment:
types: [created]

This comment was marked as outdated.

permissions: {}

jobs:
closed-issue-comment:

This comment was marked as outdated.

@github-actions

This comment has been minimized.

@SilanHe
SilanHe deployed to ai-pr-review-runtime November 18, 2026 18:32 — with GitHub Actions Active
- '.github/scripts/js_examples/**'
- '.github/scripts/tests/**'
- '.github/workflows/ai-pr-review.yml'
- '.github/workflows/closed-issue-comment.yml'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex AI review · Finding arf_v1_vbxiwfrqy5apoiq7z2uckvluh7

[P2] Include the new test module in the CI invocation

This path filter starts test-scripts, but its Run script tests step explicitly enumerates test modules and omits test_closed_issue_comment_workflow.py. Root pytest discovery also excludes .github/scripts/tests, so the main CI job does not collect it either. Consequently, none of the five new checks runs in CI, allowing workflow regressions to pass unnoticed. Add the new module to the script-test invocation.

To suppress repeats, reply /ai verdict deferred, /ai verdict false-positive, or /ai verdict out-of-scope on the first nonblank line. Add rationale on later lines. A new /ai verdict accepted allows future repeats again.


jobs:
closed-issue-comment:
uses: aws/aws-durable-execution-ci/.github/workflows/closed-issue-comment.yml@e04e810d6d7e452377bbefc04f007ad7373d19e2 # v0.6.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex AI review · Finding arf_v1_2xohdvw7bsaig56rojp7jzl2a2

[P2] Return the undocumented decisions to design review

The description lists the runner, commenter exclusions, and immediate notification policy as decisions but supplies no reasons. This breaks rule 7, List the decisions that the task did not cover, which requires a reason for each decision. For example, the stated ubuntu-latest choice differs from the existing shared-workflow callers’ explicit CodeBuild selection without explaining why. Please return to the design phase under rule 8, step 6, document the rationales, and obtain maintainer agreement.

To suppress repeats, reply /ai verdict deferred, /ai verdict false-positive, or /ai verdict out-of-scope on the first nonblank line. Add rationale on later lines. A new /ai verdict accepted allows future repeats again.

@github-actions

Copy link
Copy Markdown
Contributor

Codex AI review

Two findings: omitted CI tests (.github/workflows/test-parser.yml:14) and missing decision rationales (.github/workflows/closed-issue-comment.yml:11). Read-only review; tests were not run, and the external shared workflow was not inspected.

Reviewed commit 4f083b2a575e449da9d4a41d0c295f0f1e697a59. Workflow run

@SilanHe
SilanHe merged commit a5f6d88 into main Nov 18, 2026
27 checks passed
@SilanHe
SilanHe deleted the ci/closed-issue-comment-notify branch November 18, 2026 23:57

This branch was successfully deployed

1 active deployment
ai-pr-review-runtime — 4f083b2a Deployed Nov 18, 2026 by SilanHe via ai-pr-review / Codex review / Generate Codex review #3204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants