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): define github labels as code #731

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

qdm12
Copy link
Collaborator

@qdm12 qdm12 commented Jan 3, 2025

Why this should be merged

Allow to track in source control the Github labels, and to easily migrate Github labels (i.e. renames).

How this works

New Github workflow .github/workflows/labels.yml using github/labels.yml as a source for the labels. All the label data was extracted from this API call to keep it the exact same.

Removed useless labels according to Darioush 😉

How this was tested

Dry run of labeler job on this PR

Need to be documented?

No

Need to update RELEASES.md?

No

@qdm12 qdm12 marked this pull request as ready for review January 3, 2025 18:31
@qdm12 qdm12 requested review from ceyonur, darioush and a team as code owners January 3, 2025 18:31
@qdm12 qdm12 force-pushed the qdm12/ci/github-labels branch from 615a118 to 51fd319 Compare January 3, 2025 18:31
darioush
darioush previously approved these changes Jan 3, 2025
.github/labels.yml Outdated Show resolved Hide resolved
.github/labels.yml Outdated Show resolved Hide resolved
.github/labels.yml Outdated Show resolved Hide resolved
.github/labels.yml Outdated Show resolved Hide resolved
.github/labels.yml Outdated Show resolved Hide resolved
.github/labels.yml Outdated Show resolved Hide resolved
.github/labels.yml Outdated Show resolved Hide resolved
.github/labels.yml Outdated Show resolved Hide resolved
@qdm12 qdm12 requested a review from darioush January 7, 2025 10:35
@qdm12 qdm12 force-pushed the qdm12/ci/github-labels branch from 188ec04 to d949aa3 Compare January 7, 2025 13:35
@qdm12 qdm12 enabled auto-merge (squash) January 7, 2025 13:36
@qdm12 qdm12 force-pushed the qdm12/ci/github-labels branch from d949aa3 to de8b544 Compare January 7, 2025 19:35
@qdm12 qdm12 force-pushed the qdm12/ci/github-labels branch from de8b544 to fc9d106 Compare January 8, 2025 08:37
.github/labels.yml Show resolved Hide resolved
@qdm12 qdm12 force-pushed the qdm12/ci/github-labels branch 4 times, most recently from cfc3742 to b95e6cf Compare January 10, 2025 09:38
darioush
darioush previously approved these changes Jan 13, 2025
.github/workflows/labels.yml Outdated Show resolved Hide resolved
@qdm12 qdm12 force-pushed the qdm12/ci/github-labels branch from c9572c1 to 7ecd91a Compare January 17, 2025 15:28
qdm12 added 3 commits January 17, 2025 18:03
Signed-off-by: Quentin McGaw <[email protected]>
Signed-off-by: Quentin McGaw <[email protected]>
@qdm12 qdm12 force-pushed the qdm12/ci/github-labels branch from 7ecd91a to f72eb01 Compare January 17, 2025 17:03
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crazy-max/ghaction-github-labeler@v5
Copy link
Collaborator

Choose a reason for hiding this comment

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

I will play the devils advocate here. I'm not sure if using an external action justifies the advantage (at least in daily usage). Maybe I'm not seeing the exact advantage here, but it seems to me that this can just be a 5 min operation if we ever wanted to fully rename all labels (through https://github.com/ava-labs/coreth/labels). Not sure if it's worth to run a 3rd party action in every push/pull. even though the action can be something secure it still adds to the CI overhead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The aim is to have source-controlled, reviewable (through PRs) Github labels. The rename part is only useful once, for example to rename default label names.

The action also runs in its own workflow only when labels yml files are changed, so it won't pollute on every commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants