Skip to content

Add script to ping PR authors and issue reporters after a release - #375

Closed
wallrj wants to merge 1 commit into
cert-manager:masterfrom
wallrj:ping-release-prs
Closed

Add script to ping PR authors and issue reporters after a release#375
wallrj wants to merge 1 commit into
cert-manager:masterfrom
wallrj:ping-release-prs

Conversation

@wallrj

@wallrj wallrj commented Sep 11, 2026

Copy link
Copy Markdown
Member

Supersedes #329, which is the same script on my work account's fork. This PR adds what the v1.21.2 release needed.

What does this do?

Adds hack/ping-release-prs.sh. After a release is published, it posts a comment on each included PR telling the author the change is available, and a comment on each issue those PRs close asking the reporter to verify the fix.

It is idempotent. It skips any PR or issue that already has a comment linking to the release, and it reads 100 comments per page so a long thread does not hide an earlier ping.

Why

  • For v1.21.0-beta.0 about 40 of these comments were posted by hand, with two different formats and one near-duplicate caused by GitHub's 30-comment default page size.
  • For v1.21.1 nobody was pinged at all. A dry run of this script against the v1.21.1 release notes reports every PR as not yet pinged.
  • v1.21.2 (Release cert-manager v1.21.2 cert-manager#9237) is a patch release, and the release notes list cherry-pick PRs. Those PRs have no linked issues and are authored by the bot, so the script from Add script to ping PR authors and issue reporters after a release #329 would have commented on the cherry-picks and pinged nobody.

Changes since #329

  • Cherry-pick PRs are resolved to the PR they were picked from, so you pass the release-branch PR numbers from the release notes and the pings land on the original PR and its issues.
  • The wording says "pre-release" or "release" to match the GitHub release. Add script to ping PR authors and issue reporters after a release #329 always said "pre-release", which would have been wrong for v1.21.2. Looking up the release also fails early if the tag does not exist.
  • Issues reported by a member of the repository's organization are skipped. Four of the v1.21.2 issues were filed by a maintainer.

Usage

./hack/ping-release-prs.sh --release v1.21.2 --dry-run 9222 9231 9232 9234 9235 9236 9238 9239 9240 9262 9278 9312 9313 9314
Dry run for v1.21.2

14 PR comments and 3 issue comments would be posted.

PR #9222 is a cherry-pick of #9010
PR #9010
  pinging PR
PR #9231 is a cherry-pick of #8977
PR #8977
  pinging PR
PR #9232 is a cherry-pick of #9035
PR #9035
  pinging PR
PR #9234 is a cherry-pick of #8978
PR #8978
  pinging PR
PR #9235 is a cherry-pick of #9086
PR #9086
  pinging PR
  Issue #9064
    pinging @ivgotcrazy
PR #9236 is a cherry-pick of #9124
PR #9124
  pinging PR
  Issue #9074
    pinging @sfc-gh-srhodes
PR #9238 is a cherry-pick of #9118
PR #9118
  pinging PR
  Issue #9119
    reported by cert-manager member @wallrj — skipping
PR #9239 is a cherry-pick of #9202
PR #9202
  pinging PR
PR #9240 is a cherry-pick of #9170
PR #9170
  pinging PR
  Issue #9148
    reported by cert-manager member @wallrj — skipping
PR #9262 is a cherry-pick of #9206
PR #9206
  pinging PR
PR #9278 is a cherry-pick of #9228
PR #9228
  pinging PR
  Issue #9223
    pinging @ChaoHuang2018
PR #9312 is a cherry-pick of #9270
PR #9270
  pinging PR
  Issue #9269
    reported by cert-manager member @wallrj — skipping
PR #9313 is a cherry-pick of #9274
PR #9274
  pinging PR
  Issue #9273
    self-reported by @shashankvarma499 — skipping
PR #9314 is a cherry-pick of #9303
PR #9303
  pinging PR
  Issue #9297
    reported by cert-manager member @wallrj — skipping
Done.

A follow-up website PR adds this as a step in the release process.

[Claude Fable 5.1]

After a release is published we tell the authors of the included PRs, and
the reporters of the issues those PRs close, that the change is available
and ask them to verify it. For v1.21.0-beta.0 that meant about 40 comments
posted by hand, and for v1.21.1 it was not done at all.

hack/ping-release-prs.sh posts those comments. It is idempotent: it skips
any PR or issue that already has a comment linking to the release, and it
reads comments 100 at a time so a long thread does not hide an earlier
ping. It skips issues reported by the PR author or by a member of the
repository's organization.

Cherry-pick PRs are resolved to the PR they were picked from, so for a
patch release you pass the release-branch PR numbers from the release
notes and the pings land on the original PR and its linked issues, where
the contributor and reporter are watching.

The wording says "pre-release" or "release" to match the GitHub release.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
@cert-manager-prow

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@cert-manager-prow cert-manager-prow Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. labels Sep 11, 2026
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign thatsmrtalbot for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 11, 2026
@wallrj

wallrj commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Closing. I pushed these changes to #329 instead, which is the same script on the work-account fork.

@wallrj wallrj closed this Sep 11, 2026
@wallrj
wallrj deleted the ping-release-prs branch September 11, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant