Skip to content

Implement publish command#105

Open
bboreham wants to merge 2 commits intogithub-release:masterfrom
bboreham:publish-command
Open

Implement publish command#105
bboreham wants to merge 2 commits intogithub-release:masterfrom
bboreham:publish-command

Conversation

@bboreham
Copy link

This is a rebase of #34

Original description:

It is not straightforward to use github-release edit to remove the 'draft' status from a release because you have to resupply all of the arguments that you don't want to change; this PR adds a github-release publish command which effectively implements the 'Publish release' button in the GitHub UI.

vprintf("release %v has id %v\n", tag, release.Id)

/* the release create struct works for editing releases as well */
params := ReleaseCreate{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a link to the Github docs where Github describes the types of these parameters and what they mean? Either here or on the ReleaseCreate object definition?

@kevinburke1
Copy link
Contributor

Could you add a short snippet to the README showing how to use this? There should be other examples there as well.

@bboreham
Copy link
Author

Sorry about delay. I modified the previous example since you need to know --draft before publish makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants