Settings

Theme

Show HN: Squiddly, Disable the GitHub merge button based on checks or a label

github.com

1 points by joshcartme 4 months ago · 0 comments · 1 min read

Reader

I've been working on a hobby project in a private repo on Github. I'm not at the point where I want to convert to a Github team so I can't enforce branch protection rules. I did want to prevent merging if some CI check I have setup failed so I don't end up with type-errors in main.

To solve for this I made this extension which disables the Github merge button when checks are failing and/or a user defined label is on the PR.

There's a content script that uses a MutationObserver to know when to disable/enable. That content script also listens to chrome.storage.sync.onChanged to know the values set in the configuration pop-over.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection