- Notifications
You must be signed in to change notification settings - Fork2.7k
Updateremove_sub_issue
tool to use go-github#856
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Updateremove_sub_issue
tool to use go-github#856
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
Pull Request Overview
This PR migrates theremove_sub_issue
tool from making raw HTTP requests to using the go-github library's native API methods, taking advantage of the recently updated go-github v74 dependency.
- Replaces manual HTTP request construction with
client.SubIssue.Remove()
method call - Simplifies error handling by leveraging go-github's built-in response handling
- Removes manual JSON marshaling of request body and response parsing
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
cad048b
intogithub:mainUh oh!
There was an error while loading.Please reload this page.
Closes:#350
Overview
Now that go-github is on v74, we can use go-github to remove sub issues instead of making raw HTTP requests to the Github API. This PR updates the tool to use
go-github
Demo
