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

chore(ci): Bump actions/labeler from 4 to 5 #32644

Merged
merged 2 commits into from
Apr 4, 2024
Merged

Conversation

yin1999
Copy link
Member

@yin1999 yin1999 commented Mar 11, 2024

Description

Bump actions/labeler from 4 to 5.

The new input: sync-label is added to automatically remove unmatched labels (which is configured in label matching entries)

Motivation

All the actions which is running on Node 16 will be migrated to Node 20. And the actions/labeler@v4 is running on Node 16 which may not be supported in the future.

Related issues and pull requests

downstream PR: mdn/translated-content#18402

testings:

@yin1999 yin1999 requested a review from a team as a code owner March 11, 2024 14:13
@github-actions github-actions bot added system [PR only] Infrastructure and configuration for the project size/m [PR only] 51-500 LoC changed labels Mar 11, 2024
Comment on lines +58 to +74
- changed-files:
- all-globs-to-any-file:
- files/en-us/learn/**
- "!files/en-us/learn/accessibility/**"
- "!files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/**"
- "!files/en-us/learn/tools_and_testing/understanding_client-side_tools/**"
- "!files/en-us/learn/tools_and_testing/cross_browser_testing/**"
- "!files/en-us/learn/css/**"
- "!files/en-us/learn/server-side/django/**"
- "!files/en-us/learn/server-side/express_nodejs/**"
- "!files/en-us/learn/forms/**"
- "!files/en-us/learn/tools_and_testing/github/**"
- "!files/en-us/learn/html/**"
- "!files/en-us/learn/javascript/**"
- changed-files:
- any-glob-to-any-file:
- files/en-us/web/tutorials/**
Copy link
Member Author

@yin1999 yin1999 Mar 11, 2024

Choose a reason for hiding this comment

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

If any of the following condition matches, the label will be added:

  1. one of the changed files matches files/en-us/learn/** and also does not match any specified prefixes (accessibility, tools_and_testing/client-side_javascript_frameworks, etc.)
  2. one of the changed files matches files/en-us/web/tutorials/**

with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

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

LGTM, it's the same structural change as in https://github.com/mdn/translated-content/pull/18402/files, which is working as expected after landing. Thank you!

@yin1999
Copy link
Member Author

yin1999 commented Apr 4, 2024

Is there anything blocking this :)

@bsmth
Copy link
Member

bsmth commented Apr 4, 2024

Is there anything blocking this :)

I was waiting for core-dev to +1, but the changes look good (the test PRs are really helpful, ty). I think we can merge shortly!

@bsmth bsmth merged commit d2594e0 into mdn:main Apr 4, 2024
8 of 9 checks passed
@bsmth
Copy link
Member

bsmth commented Apr 4, 2024

Thank you @yin1999 for the improvements 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/m [PR only] 51-500 LoC changed system [PR only] Infrastructure and configuration for the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants