Skip to content

ci: auto-reopen issue #5 if it's ever closed#70

Merged
cdhagmann merged 1 commit into
mainfrom
ci/keep-issue-5-open
May 18, 2026
Merged

ci: auto-reopen issue #5 if it's ever closed#70
cdhagmann merged 1 commit into
mainfrom
ci/keep-issue-5-open

Conversation

@cdhagmann

Copy link
Copy Markdown
Owner

Summary

Adds a tiny GitHub Actions workflow that listens for issues: closed and reopens #5 (with a short explanation comment) whenever it gets closed. #5 is the perpetual "run gem-contribute fix/submit against me" contribution target — accidentally closing it breaks the documented onboarding flow. This is the third leg of the protection stool alongside pinning and locking the issue, both of which were applied manually.

Linked issue / ADR

Touches #5 (the issue this protects). No ADR: this is repo-tooling plumbing, not architecture.

Working agreement

  • Single concern (one workflow, one purpose: keep Call gem-contribute fix and submit against me #5 open)
  • bin/rubocop and bin/rspec pass locally — N/A, workflow-only change with no Ruby diff
  • New behavior has a test; bug fix has a regression test — N/A, GitHub Actions workflows aren't unit-tested in this repo; verification is end-to-end (see Test plan)
  • Async work goes through Rooibos Commands — N/A, no Ruby code changed

Test plan

End-to-end:

  1. Merge this PR.
  2. Close #5.
  3. Expected within seconds: the workflow fires, the issue is reopened, and a comment is posted explaining why.
  4. Confirm the if: github.event.issue.number == 5 guard prevents the job from running for any other issue close (the job step will be skipped, no runner time spent).

Notes for reviewer

  • Considered making this generic ("protect any issue labeled evergreen") but YAGNI — there's exactly one such issue and the explicit == 5 guard is easier to reason about. Happy to generalize if we add a second evergreen issue.
  • The reopen --comment is best-effort via set -e: if commenting fails the workflow fails loudly rather than silently letting the issue stay closed. Reopen-then-comment ordering also means the issue is back open even if the comment call hits a transient error.

🤖 Generated with Claude Code

Issue #5 is the perpetual "run the tool against me" contribution target.
Closing it (accidentally or by an aging bot) would break the documented
contributor onboarding flow. This workflow listens for `issues: closed`,
filters to #5, and reopens it with a short explanation comment.

Complements pinning + locking #5: pin makes it visible, lock prevents
drive-by comments, and this workflow prevents accidental closure.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@cdhagmann cdhagmann merged commit 05105f1 into main May 18, 2026
2 checks passed
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.

Call gem-contribute fix and submit against me

1 participant