Mergifyio / Mergifyio/mergify

Removing Stale Reviews and Labels

Open
#360 13 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
339
Forks
93
PR merge metrics
No merged PRs in 30d

Description

From the documentation, I see that the following:

pull_request_rules:
  - name: remove outdated reviews
    conditions:
      - base=master
    actions:
      dismiss_reviews:

can be used to dismiss reviews when someone pushes a commit to the PR. If I try to use the same logic to dismiss labels at the same time:

  actions:
      dismiss_reviews:
        approved: True
      label:
        remove: ['ready-to-merge']

the label ready-to-merge gets deleted as soon as it is set.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the documented pull_request_rules example and reproduce the YAML combining dismiss_reviews with label.remove. Trace how these actions are applied; done means the review can be dismissed without ready-to-merge being removed immediately, with a regression check for the reported configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
github
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.