Skip to content

GitHub Actions: Remove unmerged, closed PRs off the project board #4357

@jdingeman

Description

@jdingeman

Overview

Our Project Board has too many cards on it, causing it to slow down, and we want to optimize it. For this issue, you will need to create a GitHub Action that removes PRs that are unmerged AND closed from the project board.

Action Items

  • Familiarize yourself with HackforLA's GitHub Actions guide
    • If you have not done so already, create a copy of your own project board to test on GitHub (See Tip 6)
    • Create a personal access token for the GitHub Action (See Tip 7)
  • This should be a new job under the "PR Trigger" workflow
    • This job should trigger when a Pull Request is closed without merge
    • Be careful not to remove Pull Requests that are still open (neither merged nor closed)

Checks

  • Test in your local environment that it works
  • If a pull request is on the project board in any column, and it gets closed without merging, remove it from the project board

Resources/Instructions

Metadata

Metadata

Assignees

Labels

Complexity: MediumFeature: Board/GitHub MaintenanceProject board maintenance that we have to do repeatedlyautomationfor manual github board maintenance actions that are going to be automatedrole: back end/devOpsTasks for back-end developerssize: 2ptCan be done in 7-12 hours

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions