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

tools: update create-release-proposal workflow #56054

Merged
merged 7 commits into from
Dec 5, 2024

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Nov 28, 2024

We can remove the permission for the repo to git push, and instead use a createCommitOnBranch 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)

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/actions

@nodejs-github-bot nodejs-github-bot added meta Issues and PRs related to the general management of the project. tools Issues and PRs related to the tools directory. labels Nov 28, 2024
@aduh95
Copy link
Contributor Author

aduh95 commented Nov 28, 2024

@aduh95 aduh95 requested a review from a team as a code owner November 30, 2024 12:02
-f "ref=refs/heads/$HEAD_BRANCH" -f "sha=$HEAD_SHA"

# Create the proposal PR
PR_URL="$(gh api \
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@ruyadorno ruyadorno Dec 6, 2024

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)

@Mariozisa1

This comment was marked as spam.

@aduh95 aduh95 force-pushed the create-release-proposal branch from b71ec72 to 0035942 Compare December 4, 2024 11:13
@aduh95 aduh95 added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Dec 5, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 5, 2024
@nodejs-github-bot nodejs-github-bot merged commit 60e9c6f into nodejs:main Dec 5, 2024
26 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 60e9c6f

@aduh95 aduh95 deleted the create-release-proposal branch December 5, 2024 20:36
targos pushed a commit that referenced this pull request Dec 6, 2024
PR-URL: #56054
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
aduh95 added a commit that referenced this pull request Dec 13, 2024
PR-URL: #56054
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
aduh95 added a commit that referenced this pull request Dec 13, 2024
PR-URL: #56054
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
aduh95 added a commit that referenced this pull request Dec 13, 2024
PR-URL: #56054
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
aduh95 added a commit that referenced this pull request Dec 18, 2024
PR-URL: #56054
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. meta Issues and PRs related to the general management of the project. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants