This action finds old, abandoned PRs for a given repository.
- 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: ''
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 PRref
- the ref for the HEAD of the PR branchsha
- the SHA for the HEAD of the PR branchurl
- the HTML url page for the PR
This array can be fed into matrix jobs to run a given task for each PR.