Skip to content

feat: support auto commenting on closed linked issues after release - #50

Open
yCodeTech wants to merge 1 commit into
feat/update-changelog-ci/linkify-issue-and-pr-referencesfrom
feat/support-auto-commenting-on-linked-issues-on-release
Open

feat: support auto commenting on closed linked issues after release#50
yCodeTech wants to merge 1 commit into
feat/update-changelog-ci/linkify-issue-and-pr-referencesfrom
feat/support-auto-commenting-on-linked-issues-on-release

Conversation

@yCodeTech

@yCodeTech yCodeTech commented Aug 19, 2026

Copy link
Copy Markdown
Owner

This pull request adds automation to comment on closed issues that are referenced in a release's changelog entry, notifying users that their issues have been resolved and released. The main changes include introducing a new script to identify and comment on relevant issues, and integrating this script into the publish workflow.

Automation for commenting on closed, referenced issues:

  • Added .github/scripts/comment-on-linked-issues.mjs, which extracts referenced issues/PRs from the changelog, follows closing keywords through referenced PRs, and posts a release notification comment on closed issues.
  • Updated .github/workflows/publish.yml to run the new script after publishing, ensuring users are notified on closed issues included in the release.

  • Refactored findClosingKeywordReferences utils function to optionally match already linked references via Markdown links with a new matchMarkdownLinks param.

  • Added new step in the publish CI to comment on closed issues that are referenced in the changelog of the newly released version. This step takes place after the publishing step, and uses the new script file.

  • Added new comment-on-linked-issues script file for the functionality of finding any reference numbers in the changelog and auto comment on the issues that the new release has been published.

    The script has:

    • commentOnLinkedIssues main function to retrieve the closing issues from the changelog version entry, and add comment on them to let the issue author know that the resolution of the issues has been released in a new version.

      The function uses the findClosingKeywordReferences utils function to retrieve the issue-closing keyword references using the new matchMarkdownLinks param as true. The script also uses the Octokit GitHub API to create the comment.

    • extractChangelogEntry function to extract the changelog section for a specified version.

    • commentExists function to check if a comment already exists for the specific version on the issue. This uses the Octokit GitHub API to paginate through the issue's comments and filters the comments that match the criteria.

  • Updated permissions to allow writing issues in the publish CI.

- Refactored `findClosingKeywordReferences` utils function to optionally match already linked references via Markdown links with a new `matchMarkdownLinks` param.

- Added new step in the publish CI to comment on closed issues that are referenced in the changelog of the newly released version. This step takes place after the publishing step, and uses the new script file.

- Added new `comment-on-linked-issues` script file for the functionality of finding any reference numbers in the changelog and auto comment on the issues that the new release has been published.

The script has:

    - `commentOnLinkedIssues` main function to retrieve the closing issues from the changelog version entry, and add comment on them to let the issue author know that the resolution of the issues has been released in a new version.

    This uses the `findClosingKeywordReferences` utils function to retrieve the issue-closing keyword references using the new `matchMarkdownLinks` param as `true`. The script also uses the Octokit GitHub API to create the comment.

    - `extractChangelogEntry` function to extract the changelog section for a specified version.

    - `commentExists` function to check if a comment already exists for the specific version on the issue. This uses the Octokit GitHub API to paginate through the issue's comments and filters the comments that match the criteria.

- Updated permissions to allow writing issues in the publish CI.
@yCodeTech yCodeTech added the enhancement New feature or quality of life enhancement label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or quality of life enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant