-
Notifications
You must be signed in to change notification settings - Fork 30k
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
tools: update create-release-proposal
workflow
#56054
Conversation
Review requested:
|
Tested with https://github.com/aduh95/node/actions/runs/12096176457/job/33730174026, which created aduh95#30 |
-f "ref=refs/heads/$HEAD_BRANCH" -f "sha=$HEAD_SHA" | ||
|
||
# Create the proposal PR | ||
PR_URL="$(gh api \ |
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.
Why not gh pr create
as its the "official" way to create PR using gh
?
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.
I don’t think gh
is more official than the REST API. I find this way more straightforward (no need for git push --force
– no need for git push
even), and I don’t think there’s a simpler way to create a signed commit from gha.
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.
oh noes, I'm strongly -1 to this, as I don't think this is straightforward at all, the GitHub cli is super user-friendly and we already have people pushed away from contributing to this very script from the fact it's not using gh
anymore: #56128 (comment)
This comment was marked as spam.
This comment was marked as spam.
b71ec72
to
0035942
Compare
Landed in 60e9c6f |
PR-URL: #56054 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
PR-URL: #56054 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
PR-URL: #56054 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
PR-URL: #56054 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
PR-URL: #56054 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
We can remove the permission for the repo to
git push
, and instead use acreateCommitOnBranch
API call to create the release commit, which has the upside of being signed.I've also use this PR as an opportunity to tidy things up (e.g. we don't need a JENKINS_TOKEN, or to fetch the whole repo)