Skip to content

Warning

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

recently-closed-issues

Actions
A GitHub Action that allows you to retrieve all issues that were recently closed by a commit
1.0.4
Pre-release
Star (1)

GitHub Action: Retrieve issues that were recently closed by a commit

This simple Action provides you a way to retrieve issues that were recently closed via a commit.
The GitHub API currently does not allow us to retrieve that information in any easily accessible way, hence why I made this Action myself.

This can be very useful if you want to assign labels to closed tickets for example.

Inputs

token

Required The token is just a standard Access Token from GitHub, this is used for authentication.
You can use the built-in ${{ secrets.GITHUB_TOKEN }} variable for this.

max_commits

Required This parameter determines how many commits should be retrieved. The maximal value for this is 100.

Outputs

issues

The output of this is an Array of numbers, corresponding to the issue numbers that were closed via commits.

Example usages

Print out recently closed tickets

on:
  issue:
    types:
      - closed

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: TheBusyBiscuit/recently-closed-issues@master
        id: my_step_id
        token: ${{ secrets.GITHUB_TOKEN }}
        max_commits: 20
      - run: echo $ {{ steps.my_step_id.outputs.issues }}

Assign a label to an issue if it was closed by a ticket

// TODO

recently-closed-issues 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

A GitHub Action that allows you to retrieve all issues that were recently closed by a commit
1.0.4
Pre-release

recently-closed-issues 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.