Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Github Action to determine stale projects for a pull request and remove them

License

Notifications You must be signed in to change notification settings

babbel/remove-stale-projects

Repository files navigation

remove-stale-projects Javascript action

Github Action to determine stale projects for a pull request and remove them.

Background

We are using Github projects to organize our daily work. We want pull requests to be assigned to a project depending on which subsystems are being changed. The workflow is as follows:

  1. Derive the target projects from the changes in the pull request.
  2. Determine the projects a pull request is currently assigned to (another action, babbel/current-projects)
  3. Determine stale projects and remove them (this action)
  4. Determine new projects and add them (another action, babbel/add-new-projects)

Inputs

Name Description Type Required? Default
current-projects List of projects the given pull request is assigned to JSON array YES n/a
github-token GitHub token used to create an authenticated client string NO ${{ github.token }}
target-projects-names List of project names the given pull request should be assigned to JSON array YES n/a

About

Github Action to determine stale projects for a pull request and remove them

Resources

License

Stars

Watchers

Forks

Packages

No packages published