mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-12 15:36:53 -05:00
feat(magit): replace github-review for code-review
This commit is contained in:
@@ -188,14 +188,23 @@ ensure it is built when we actually use Forge."
|
||||
(add-hook hook #'forge-bug-reference-setup)))))))
|
||||
|
||||
|
||||
(use-package! github-review
|
||||
(use-package! code-review
|
||||
:after magit
|
||||
:init
|
||||
;; TODO This needs to either a) be cleaned up or better b) better map things
|
||||
;; to fit
|
||||
(after! evil-collection-magit
|
||||
(dolist (binding evil-collection-magit-mode-map-bindings)
|
||||
(pcase-let* ((`(,states _ ,evil-binding ,fn) binding))
|
||||
(dolist (state states)
|
||||
(evil-collection-define-key state 'code-review-mode-map evil-binding fn))))
|
||||
(evil-set-initial-state 'code-review-mode evil-default-state))
|
||||
:config
|
||||
(transient-append-suffix 'magit-merge "i"
|
||||
'("y" "Review pull request" +magit/start-github-review))
|
||||
'("y" "Review pull request" +magit/start-code-review))
|
||||
(after! forge
|
||||
(transient-append-suffix 'forge-dispatch "c u"
|
||||
'("c r" "Review pull request" +magit/start-github-review))))
|
||||
'("c r" "Review pull request" +magit/start-code-review))))
|
||||
|
||||
|
||||
(use-package! magit-todos
|
||||
|
Reference in New Issue
Block a user