chdsbd / kodiak

🔮 A bot to automatically update and merge GitHub PRs
https://kodiakhq.com
GNU Affero General Public License v3.0
1.03k stars 65 forks source link

Remove automerge label after merging #746

Open gharlan opened 2 years ago

gharlan commented 2 years ago

I think it would be great to remove the automerge label after merging (maybe optionally). This would improve the list of closed pull requests.

chdsbd commented 2 years ago

This seems doable.

We can add an extra API call to api.remove_label where we set the "merge complete" status check:

https://github.com/chdsbd/kodiak/blob/d2eb5d562622ba429621f26e1f844176e5b6fce6/bot/kodiak/evaluation.py#L1115

I'm not sure if this needs to be configurable or not. I think it's probably fine if it isn't for now.

As a workaround, you may be able to use a GitHub Action to accomplish this functionality.

Here's an example Action that could probably work: https://github.com/actions-ecosystem/action-remove-labels

gharlan commented 2 years ago

As a workaround, you may be able to use a GitHub Action to accomplish this functionality.

Here's an example Action that could probably work: actions-ecosystem/action-remove-labels

Thanks! It works great: https://github.com/redaxo/redaxo/pull/4849