-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github: Add forge #11764
github: Add forge #11764
Conversation
Shouldn't |
Also, since |
I don't think they're entirely exclusive (see the comments here) but having both installed does seem redundant from spacemacs perspective. Maybe move both the (defvar git-forge-backend 'forge
"The backend to use for Magit integration with external Git forges like Github.
Possible values are `forge' and `magithub'. Leave nil to disable forge support.") with the corresponding :toggles in the package list. Not 100% sure but I believe the |
They do not completely overlap in functionality. For example, Magithub reports CI status, and Forge supports reading issues and posting and editing comments. The authors of the respective packages appear to be interested in the packages merging or morphing into complementary roles (see this reddit discussion involving the authors of Magithub and Forge).
Fair point. Counterpoint: The
I can do this, but Magithub's future is uncertain, and it appears that Magithub will likely change to fit a complementary role to Forge, or that they will somehow "come to a single solution" (see the above link to the related reddit discussion).
@robbyoconnor made #10684 to remove magit-gh-pulls, but |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't test but looks good to me :)
7fa5664
to
f68a4c4
Compare
Latest push configures Magithub not to inject issues and pull-requests sections if |
Note that Forge binds the ' key to the Forge dispatch popup, but evil-magit binds the ' key to the submodule dispatch popup (see emacs-evil/evil-magit#54), and evil-magit's key binding takes precedence with the vim editing style. Because Forge's key binding does not always work, it is omitted from the README. Note also that Magit binds the % key to its worktree dispatch popup, but Spacemacs binds the % key to the magit-gitflow popup, and Spacemacs's key binding takes precedence. Because there is no available key binding for the worktree dispatch popup, Forge's key binding under that dispatch popup is omitted from the README. * CHANGELOG.develop: * layers/+source-control/github/README.org: Update. * layers/+source-control/github/packages.el (github-packages): Add forge. (github/init-forge): Load forge after magit. Configure forge to use spacemacs-cache-directory. (github/init-magithub): Disabling injecting issues and pull-requests sections if forge is installed.
f68a4c4
to
8bc4bec
Compare
Pushed a small formatting fixup. |
The commands to create pull requests and issues cannot be accessed except through the Forge popup key |
This can also be included in the
|
Nice work, @Miciah ! I didn't know about I haven't tested this branch yet, but the PR seems good to me. I'm personally in favor of removing Magithub / magit-gh-pulls if Forge works as a replacement for both (as it seems to do). |
Are you able to check out PRs, or
And I am not sure if it's because of something I have.... |
Thank you ❤️! Hopefully that issue will be fixed upstream, merging right now as the PR checkout functionality is missing from magithub, and gh-pull-requests is unusable. Cherry-picked into develop branch, you can safely delete your branch. |
As of today, yes. I am able to do a |
Starting with today's update forge is working for me as well 🎉. It's still slower than the previous approaches but I have faith it will get better in the future. Anyway I'll update the Collaborator PR Guide to mention forge now and will add a note about the |
Debugger entered--Lisp error: (error "BUG: missing headers nil") The upstream bug bothers me very much. And it seems to be related with magit/ghub#81 |
Note that Forge binds the ' key to the Forge dispatch popup, but evil-magit binds the ' key to the submodule dispatch popup (see emacs-evil/evil-magit#54), and evil-magit's key binding takes precedence with the vim editing style. Because Forge's key binding does not always work, it is omitted from the README.
Note also that Magit binds the % key to its worktree dispatch popup, but Spacemacs binds the % key to the magit-gitflow popup, and Spacemacs's key binding takes precedence. Because there is no available key binding for the worktree dispatch popup, Forge's key binding under that dispatch popup is omitted from the README.
layers/+source-control/github/README.org
: Update.layers/+source-control/github/packages.el
(github-packages
): Addforge
.(
github/init-forge
): Loadforge
aftermagit
. Configureforge
to usespacemacs-cache-directory
.(
github/init-magithub
): Disabling injecting issues and pull-requests sections ifforge
is installed.