Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant