kodiak icon indicating copy to clipboard operation
kodiak copied to clipboard

labelling after PR is merged

Open abhijithvijayan-kubric opened this issue 4 years ago • 2 comments

is it possible for the bot to label a PR after the merge?

abhijithvijayan-kubric avatar Feb 12 '21 09:02 abhijithvijayan-kubric

Currently Kodiak doesn't support adding labels once the PR is merged.

I think we'd to update the config with a new option and make another call to GitHub after the api.merge call succeeds:

https://github.com/chdsbd/kodiak/blob/232f1415bdac166582cbf0c3c6960417ea1f6933/bot/kodiak/evaluation.py#L1047-L1052

I think the config could be something like:

merge.merged_label = "PR merged!"

although that might be too easy to confuse with the automerge_label option

Also you could probably get away with a GitHub action to label the PR when it's merged in the meantime.

sbdchd avatar Feb 12 '21 19:02 sbdchd

@sbdchd Thanks

maybe its better to have the config

merge.post_merged_label = "PR merged!"

abhijithvijayan-kubric avatar Feb 13 '21 05:02 abhijithvijayan-kubric