Conversation
fregante
commented
Apr 17, 2023
| features.unload(import.meta.url); | ||
|
|
||
| async function handler(event: DelegateEvent<MouseEvent, HTMLButtonElement>): Promise<void> { | ||
| event.delegateTarget.disabled = true; |
Member
Author
| import selectHas from '../helpers/select-has'; | ||
|
|
||
| const selectorForPushablePRNotice = '.merge-pr > .color-fg-muted:first-child'; | ||
| const canMerge = '.merge-pr > .color-fg-muted:first-child'; |
Member
Author
There was a problem hiding this comment.
I'm not seeing it in our own repo though 🤷♂️
| mergeabilityRow.prepend( | ||
|
|
||
| <div | ||
| className="branch-action-btn float-right js-immediate-updates js-needs-timeline-marker-header" |
Member
Author
There was a problem hiding this comment.
I don't know if these last 2 classes are useful, I just copied the native row and dropped every class and element I understood.
| icon: <CheckIcon/>, | ||
| iconClass: 'completeness-indicator-success', | ||
| heading: 'This branch has no conflicts with the base branch', | ||
| meta: 'Merging can be performed automatically.', |
Member
Author
There was a problem hiding this comment.
I added this meta line because without it it's a little misaligned, but I'm not totally sure it's a always true statement exactly as GitHub defines it.
Eventually this line will likely contain:
update-pr-from-base-branchupdate-pr-from-base-branch
fregante
commented
Apr 26, 2023
|
|
||
| - [](# "sync-pr-commit-title") 🔥 [Uses the PR’s title as the default squash commit title](https://github.com/refined-github/refined-github/issues/276) and [updates the PR’s title to match the commit title, if changed.](https://user-images.githubusercontent.com/1402241/51669708-9a712400-1ff7-11e9-913a-ac1ea1050975.png) | ||
| - [](# "update-pr-from-base-branch") [Adds a button to update a PR from the base branch to ensure it builds correctly before merging the PR itself.](https://user-images.githubusercontent.com/1402241/106494023-816d9a00-647f-11eb-8cb1-7c97aa8a5546.png) GitHub only adds it when the base branch is "protected". | ||
| - [](# "update-pr-from-base-branch") [Adds an "Update branch" button to every PR.](https://user-images.githubusercontent.com/1402241/234483592-4867cb2e-21cb-436d-9ea0-aedadf834f19.png) GitHub has the same feature, but it must be manually configured with protected branches. |
Member
Author
Member
Author
There was a problem hiding this comment.
The tooltip was added to clarify that this is a RGH feature, because it blends in way too well otherwise.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


update-pr-from-base-branch#6127TODO:
PR without conflicts
refined-github/sandbox#60
Draft PR without conflicts
refined-github/sandbox#61
Native "Update branch" button
#6531
(or pick a conflict-free PR from https://github.com/refined-github/refined-github/pulls?q=is%3Apr+is%3Aopen+sort%3Acreated-asc)
Native "Resolve conflicts" button
refined-github/sandbox#9