Bulk reviewing with embark #266
Replies: 1 comment
-
|
@oliverpauffley As you noted, this is likely not the best idea, but if you must here are some ideas you can try: 1- Use 2- define a new embark action to merge without loading PR: (defun consult-gh-embark-merge-pr-noload (cand)
"Merge the pull request in CAND without loading PR."
(when (stringp cand)
(consult-gh-with-host
(consult-gh--auth-account-host)
(funcall #'consult-gh-pr--merge-merge cand))))and bind that to your favorite key (e.g. (keymap-set consult-gh-embark-prs-edit-menu-map "M" '("merge pr without loading" . consult-gh-embark-merge-pr-noload))Then use the action you just defined with Keep in mind that using (defun consult-gh-embark-merge-pr-noload (cand)
"Merge the pull request in CAND without loading PR."
(when (stringp cand)
(consult-gh-with-host
(consult-gh--auth-account-host)
(funcall #'consult-gh-pr--merge-submit cand :merge t))))This should show error messages for the PRs that cannot be merged, but I am not sure if it then continues with the rest of the selected PRs or aborts the rest of the bulk merge as well! Obviously, I have not tested any of these (because merging PRs without reviewing them is probably not a great idea) so let me know how it goes if you end up testing them. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First off thanks for the great package!
I can successfully list PRs where I have been requested to review and using embark I can export the list. Is there a way to bulk approve PRs?
(This might not be the best idea but at work we have a 1000s of repos and often bots will raise PRs that are the same across all repos)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions