Github Action to determine stale projects for a pull request and remove them.
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:
- Derive the target projects from the changes in the pull request.
- Determine the projects a pull request is currently assigned to
(another action,
babbel/current-projects
) - Determine stale projects and remove them (this action)
- Determine new projects and add them
(another action,
babbel/add-new-projects
)
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 |