You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
update-pr-from-base-branch - Enable on non-own repos #7478
Yes if I remember correctly. There's a chance that they have a slightly different DOM and the button is not being appended. I'll reopen as a bug report
changed the title [-]Offer sync fork/branch, if not enabled by repository owner[/-][+]`update-pr-from-base-branch` missing in cross-repo PRs[/+]on Jun 22, 2024
changed the title [-]`update-pr-from-base-branch` missing in cross-repo PRs[/-][+]`update-pr-from-base-branch` - Enable on non-own repos[/+]on Jun 23, 2024
I probably used that condition as a way to determine whether the user can merge the PR. This is not necessary, the condition should be "can the current user update the PR?"
If there's no other indicator, "can merge PR or is author" should be good enough. However there are cases where a repo collaborator can update PRs, but not merge them. Also the author can open a PR across repos that they don't own.
Activity
fregante commentedon Jun 22, 2024
jkroepke commentedon Jun 22, 2024
fregante commentedon Jun 22, 2024
Yes if I remember correctly. There's a chance that they have a slightly different DOM and the button is not being appended. I'll reopen as a bug report
[-]Offer sync fork/branch, if not enabled by repository owner[/-][+]`update-pr-from-base-branch` missing in cross-repo PRs[/+]jkroepke commentedon Jun 22, 2024
I can confirm, that there is no node with .merge-message
refined-github/source/features/update-pr-from-base-branch.tsx
Line 98 in d9ea198
cross-repo PRs (at least, if I do not have the merge permission on upstream)
Own Repo
Upstream Repo
fregante commentedon Jun 22, 2024
I see it on cross-repo PRs: refined-github/sandbox#13
But I don't see it if I don't have access to the repo where the PR is opened: cletusw/eslint-plugin-local-rules#23

That's because the selector is targeting the Merge button itself 🤔 I don't remember why
[-]`update-pr-from-base-branch` missing in cross-repo PRs[/-][+]`update-pr-from-base-branch` - Enable on non-own repos[/+]1 remaining item
fregante commentedon Jun 23, 2024
refined-github/source/features/update-pr-from-base-branch.tsx
Line 59 in d9ea198
I probably used that condition as a way to determine whether the user can merge the PR. This is not necessary, the condition should be "can the current user update the PR?"
I turned this back into a feature request.
jkroepke commentedon Jun 23, 2024
I guess, if the current user is the author would be a sufficient condition?
fregante commentedon Jun 23, 2024
If there's no other indicator, "can merge PR or is author" should be good enough. However there are cases where a repo collaborator can update PRs, but not merge them. Also the author can open a PR across repos that they don't own.
jkroepke commentedon Jun 23, 2024
Maybe this indicator (checkbox -> Allow edits) on right side could be treat as indicator
It may not hits
but, it present cases like that
fregante commentedon Aug 1, 2024
I think the solution is to just look for the "Close pull request" button 🤯
Users who can close it:
Seems obvious in retrospect. PR welcome
fregante commentedon Aug 2, 2024
Would you be able to test #7642?
jkroepke commentedon Aug 2, 2024
How I can test PRs?
fregante commentedon Aug 2, 2024
You'd have to check out the PR locally, build the extension and load it into your browser. If you're not familiar with npm and extensions it might be difficult. See: https://github.com/refined-github/refined-github/wiki/Contributing#workflow
Anyway I think I covered your case in my tests already
jkroepke commentedon Aug 2, 2024
Is there an reason, why one of the PR actions not building and upload the crx as artifact? Then, I could just download the crx from GHA.
On my projects, I'm doing this, for example: prometheus-community/windows_exporter#1543 (comment)
fregante commentedon Aug 2, 2024
We just haven't set that up for PRs, we only do in releases. PR welcome to add that 😅