Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Trigger bot to cleanup columns #352

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jablko
Copy link
Contributor

@jablko jablko commented Jan 26, 2021

What do you think about triggering the bot in the --cleanup section of run.ts, the same as it does on open PRs?

The normal webhook behavior removes closed/draft PRs from the project board. We already call executePrActions(), etc. in run.ts, thereby removing any draft PRs that got missed, this PR does the same to cleanup any closed PRs. Makes the normal/cleanup cases share the same code. Also the closed/draft cases.

Adds the PR number to the projectboard-cards query:

  • Removes the card-id-to-pr query (projectboard-cards now gets the PR number, pr-query gets the state)
  • Replaces !cardIDs.includes() with !prs.includes() (excludes open PRs by PR number vs. card ID)
  • Removes cardIDs from the all-open-prs query

The Recently Merged column still does its own thing because the bot doesn't normally remove anything from that column.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant