Skip to content

Automatically comment on closed or fixed issues after a release is published

License

Notifications You must be signed in to change notification settings

agrc/release-issue-notifications-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Release Issue Notifications

Push Events Release Events

This action posts a comment on related closed or fixed issues after a release is published with a link to the release. For example:

🥳 This issue is included in [v1.0.0](https://github.com/agrc/release-issue-notifications-action/releases/tag/v1.0.0)

Usage

release.yml

name: Release Events

on:
  release:
    types: [published]

permissions:
  contents: read
  pull-requests: write
  issues: write

jobs:
  notify:
    name: Notifications
    runs-on: ubuntu-latest

    steps:
      - name: Release Notifier
        uses: agrc/release-issue-notifications-action@v1
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}

Package for Distribution

This action is built and distributed via the included GitHub action workflows.

Local Testing

You may test some of the utilities that this action uses locally by running scripts in the scripts directory. For example:

npx tsx scripts/testGetIssueNumbers.ts $(gh auth token) 2a90bc980886321aca554eddc47b98c7638617b3 89327edb99c324c82aced47238c6b29e03f0a23d agrc release-issue-notifications-action