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
Add command to create releases. #129
Merged
Merged
Changes from 6 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
77df81f
Add command to create releases.
calavera 6b38fec
Extract editor logic from the pull request commands.
calavera c98cb5b
Create a new release based on the local branch.
calavera 3a433ea
Add the release command do the help.
calavera 8633525
Move the editor the github package.
calavera c81119a
Add release creation and assets uploading.
calavera 3ba86a3
Read only part of the asset to detect the content type.
calavera 54bc22d
Invert flags order.
calavera a57b445
Remove double status output.
calavera 9a11e93
Use a more generic message when the edit fail.
calavera db71cf2
Write a message in the editor showing what you're doing.
calavera 26b32b7
Use WaitGroup to upload each asset in a different goroutine.
calavera 1f711d9
Remove double isDir helper.
calavera 4010d6f
Move `isEmptyDir` to the command utilities.
calavera 95e234a
Assert directory truthy.
calavera b436b8d
Do not double return errors.
calavera 248a204
Identify each message editor separatedly.
calavera 216f3ee
Update go-octokit.
calavera 1adffb9
Use the upload service in octokit.
calavera 309505c
Merge branch 'master' into gh_release
calavera ecf536f
Add upload indicator.
calavera e13b026
Add check for empty arguments.
calavera File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,7 @@ var GitHub = []*Command{ | |
cmdCiStatus, | ||
cmdBrowse, | ||
cmdCompare, | ||
cmdReleases, | ||
cmdRelease, | ||
cmdIssue, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
What do you think of merging the list and the create? Say
gh release
to list andgh release add
to create, by following the git conventionThere 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.
That's a good idea.
add
doesn't really sound right, maybegh release create
? or is it too long? maybe I'm just over thinking.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.
create
actually sounds more accurate. Good call