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

[action] Automatically add PR labels based on the modified files #10581

Closed
wants to merge 4 commits into from

Conversation

nicolo-ribaudo
Copy link
Member

Q                       A
Fixed Issues? babel/babel-bot#1
License MIT

This was an action I created a month ago and forgot to add to the repo 😅

Demo (private repo, sorry): https://github.com/babel/test-github-actions/pull/54

@buildsize
Copy link

buildsize bot commented Oct 19, 2019

File name Previous Size New Size Change
babel-preset-env.js 2.73 MB 2.73 MB 0 bytes (0%)
babel-preset-env.min.js 1.65 MB 1.65 MB 0 bytes (0%)
babel.js 2.92 MB 2.92 MB 0 bytes (0%)
babel.min.js 1.61 MB 1.61 MB 0 bytes (0%)
test262.tap 4.84 MB [deleted]

token: ${{ secrets.GITHUB_TOKEN }}
pull_number: ${{ github.event.pull_request.number }}
labels: >
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Could it be extracted as a dedicated JSON/yaml configuration? It could be similar to what it is done in Labeller.

By doing so It will benefit from better error check / prettier styling and I would expect it can be more visible to contributors.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh well, I could probably use Labeller directly

@nicolo-ribaudo
Copy link
Member Author

This is not going to work, because GitHub doesn't pass a token with the correct permissions to Actions run from a fork. Labeler has the same problem (WordPress/gutenberg#17324)

@nicolo-ribaudo nicolo-ribaudo deleted the pr-labels-auto branch January 14, 2020 00:22
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Apr 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: cli repo automation 🤖
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants