Skip to content

This github action finds old, abandoned PRs for a given repository

Notifications You must be signed in to change notification settings

RelationalAI/abandoned

Repository files navigation

Abandoned

This action finds old, abandoned PRs for a given repository.

Usage

- uses: RelationalAI/abandoned@main
  with: 
    # Repository name with owner.
    # Default: ${{ github.repository }}
    repository: ''

    # Number of days before PR should be considered abandoned
    days: 7

    # Personal access token (PAT) with access to the repository. 
    # Default: ${{ github.token }}
    token: ''

Output

A single output pulls contains the list of abandoned PRs. It is structured as an array, where each entry has the following fields:

  • title - the title of the GitHub PR
  • ref - the ref for the HEAD of the PR branch
  • sha - the SHA for the HEAD of the PR branch
  • url - the HTML url page for the PR

This array can be fed into matrix jobs to run a given task for each PR.

About

This github action finds old, abandoned PRs for a given repository

Resources

Stars

Watchers

Forks

Packages

No packages published