Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Comment on the released PRs

Actions
Walks through all the PRs in a release and adds a label and a comment about that release
v1.2.0
Star (4)

GitHub Action - Adds release comments to PRs

This action iterates through all PRs that are part of a release and adds a comment to each of them containing information about the release.

Inputs

repo-token

Required The GITHUB_TOKEN secret.

Outputs

pr-ids

List of the IDs of the commented PRs

Example usage

This action runs only when triggered by a release event and a published action.

name: Comment released PRs

on:
  release:
    types:
      - published

jobs:
  comment:
    name: Comment released PRs
    runs-on: ubuntu-latest
    steps:
      - name: Comment released PRs
        uses: rdlf0/comment-released-prs-action@v1
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}

The posted comment will look like this:
comment-preview

License

The scripts and documentation in this project are released under the MIT License

Comment on the released PRs is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Walks through all the PRs in a release and adds a label and a comment about that release
v1.2.0

Comment on the released PRs is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.