aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/git-sugapply.rs
AgeCommit message (Collapse)Author
2020-08-30git-suggestion-cli: Rename crate to `git-suggestion`Teddy Wing
Now that I'm using the name "git-suggestion" in a few places, and from a user perspective, it's more Git-oriented than GitHub-oriented, I think the crate should be renamed to reflect that.
2020-08-04Add license (GNU GPLv3+)Teddy Wing
2020-08-02Move suggestion arguments check to `Config::get`Teddy Wing
Since this check for suggestion arguments is in both binaries, we can move it to the common preflight function. Clean up other areas now that we moved the function.
2020-08-02git-sugapply: Copy over new logic from `git-sugpatch`Teddy Wing
Use the new logic from `git-sugpatch` to build a `Config` and run `apply()` on all suggestion input arguments.
2020-07-29Rename crate to 'github-suggestion'Teddy Wing
Didn't like the old name. Wanted to make the GitHub reference more explicit. I remember it as "suggestion", since that's the name of the GitHub feature, so "suggested" was confusing. The final "patch" seemed redundant or unnecessary.
2020-07-28Client::new(): Return a `Result`Teddy Wing
Wrap `Github` client errors.
2020-07-25Add git-sugapply binTeddy Wing
An executable to apply a suggested change to the appropriate file in the repo. Add a new `SuggestionUrl` type that allows us to extract the necessary data to fetch a suggestion comment from the GitHub API using a GitHub pull request comment URL.