confirm-release - New feature#9049
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Refined GitHub feature that prompts for confirmation before publishing a GitHub release, reducing accidental publishes on release create/edit pages.
Changes:
- Add new
confirm-releasefeature that intercepts publishing and shows a native confirmation dialog. - Register the feature in the main feature entrypoint.
- Document the feature in the README feature list.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| source/refined-github.ts | Registers the new confirm-release feature so it runs with the extension. |
| source/features/confirm-release.tsx | Implements the publish confirmation behavior on release create/edit pages. |
| readme.md | Adds documentation entry for the new feature. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
confirm-releaseconfirm-release
confirm-releaseconfirm-release - New feature
fregante
left a comment
There was a problem hiding this comment.
Other than that, LGTM. I'll let @SunsetTechuila merge this after that condition is removed
Co-authored-by: Grigory <[email protected]>
|
Thanks for the heads up, addressed in 02baf2f |
|
What we've been trying to say:
|
|
It's not that easy - GitHub captures the submission event before us. I'll take it from there |
If GitHub actually triggers and awaits a real The code would look something like Also I just remembered we have |
|
I'm also ok with merging this as is and keep my changes as a wishlist. |
This doesn't work - they added a window-level listener with
|
Yes, we thought you get one chance at fat-fingering while filling that form. I guess the release page is longer and has more chances though. Good to go |
It doesn't 🤷♂️. Maybe it's because |
|
@jfagoagas Thank you |
Thank you both! Great review 🙌 |
|
I got asked 3 times and I hate it already. See #9169 |
Closes #9039
Adds a native confirmation dialog before publishing a release. Targets the
button[publish-release="true"]attribute so the "Save draft" button is not affected.Test URLs
Screenshot