Skip to content
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

Create issues from TODOs via magit-forge #116

Open
jefftrull opened this issue Apr 21, 2021 · 5 comments
Open

Create issues from TODOs via magit-forge #116

jefftrull opened this issue Apr 21, 2021 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@jefftrull
Copy link

VSCode has a compelling feature that magit-todos + magit-forge almost provides: the ability to create Github issues directly from TODO comments. It would be cool to have this :)

See package description https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github and related tweet (with video) by Paige Bailey https://twitter.com/DynamicWebPaige/status/1377021900489113606

@jefftrull
Copy link
Author

"Enhancement" and low priority, obviously :)

@alphapapa
Copy link
Owner

Yeah, that'd be a really cool feature. I haven't looked at Forge's code in a long time. Would it be as simple as a single function call with a string argument?

@alphapapa alphapapa added the enhancement New feature or request label Jun 3, 2021
@jefftrull
Copy link
Author

It looks as though the exact API we need here is not provided - help from @tarsius is probably required - but I think one could put the contents of forge-create-issue into the shell of magit-todos-jump-to-item and it would work (though not be stable).

@tarsius
Copy link
Contributor

tarsius commented Jun 9, 2021

After calling forge-create-issue you can just insert text into the buffer that it displayed, which you should be able to do by creating a wrapper around that function and then your code. Of course there are complications -- the buffer may already contain other text for various reasons and you will have to decide what to do about that. There's really not much else I can say at this point.

@alphapapa alphapapa added the help wanted Extra attention is needed label Jun 9, 2021
@alphapapa
Copy link
Owner

Thanks, Jonas. Sounds like it should be pretty simple.

This would be nice to have, but it isn't a feature I plan to work on anytime soon, so marking as help-wanted.

@alphapapa alphapapa added this to the Future milestone Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants