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

meta: migrate labelling to actions (Discuss / WIP) #52695

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RedYetiDev
Copy link
Member

This pull request transitions the webhook and GitHub bot labeling and pinging system to a GitHub action, which I've configured at https://github.com/RedYetiDev/node-actions-runner/tree/main. However, this change has yet to be tested with the Node.js infrastructure, so it's a work in progress.

(This repo could also be moved to an internal one if need be)

Related to #51236

@nodejs/actions
@nodejs/github-bot

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/actions

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Apr 25, 2024
@RedYetiDev RedYetiDev added the discuss Issues opened for discussions and feedbacks. label Apr 25, 2024
- name: Initialize Pull Request
uses: redyetidev/node-actions-runner@v0.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Copy link
Member Author

Choose a reason for hiding this comment

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

Could this be GH_USER_TOKEN?

Copy link
Contributor

Choose a reason for hiding this comment

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

Forks don't have access to GH_USER_TOKEN, so no (and let's not go the pull_request_target way, it's not worth it because of the bad DX and the security aspects).

Copy link
Member

@richardlau richardlau left a comment

Choose a reason for hiding this comment

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

Labelling was already going through a GitHub action under the nodejs org: https://github.com/nodejs/node-pr-labeler

@RedYetiDev
Copy link
Member Author

RedYetiDev commented Apr 25, 2024

Labelling was already going through a GitHub action under the nodejs org: nodejs/node-pr-labeler

Yes, I'm aware. I figured I'd consolidate it into a single workflow while changing the on.pull_request.types[opened] action, as they both involve modifying the PR's contents (via commenting/labelling)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Issues opened for discussions and feedbacks. meta Issues and PRs related to the general management of the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants