Skip to content
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

Create release as published #3

Open
malesci opened this issue Jun 1, 2021 · 1 comment
Open

Create release as published #3

malesci opened this issue Jun 1, 2021 · 1 comment
Labels
question Further information is requested

Comments

@malesci
Copy link

malesci commented Jun 1, 2021

It is possible to create release as published instead of draft?

@ecampidoglio ecampidoglio added the question Further information is requested label Jun 1, 2021
@ecampidoglio
Copy link
Owner

Yes.

However, while the GitHub REST API supports creating a release as published (see the github.ts file in ecampidoglio/auto-release-draft), GitReleaseManager takes a different approach:

While it would be possible to automatically publish a set of release notes in a single command, it is envisioned that some manual intervention is required to ensure that all release notes are valid, and any additional information is added to the release, prior to publishing. As a result, a second command is required to actually publish a release.

So, to publish a release, you'd have to extend the entrypoint.sh script to invoke the publish command after the create command:

dotnet gitreleasemanager publish \
--tagName $milestone_name \
--token $repo_token \
--owner $owner \
--repository $repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants