Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Addresses #134.
GH api doesn't seem to have the option to provide labels with the PR request endpoint, that seems to be in their graphql api.
Added
label
flag, and a request to add the label after the PR is opened successfully (similar to requesting reviewers)I have no idea how to write go, but I've added this since I looked at the code, and it looked similar to how you add reviewers to the pr, I've provided a description to why I'd like to use this in the issue I've opened, but if it doesn't suit the CLI's usecase I'll close this PR.
Oh, also I didn't really test it with code, I just made the changes, built it, ran it in my cli for some of my own repos, seems to work OK.
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Added the option to pass labels to the PRs