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

Allow declarative configuration of GitHub labels #12

Merged
merged 2 commits into from
May 19, 2023
Merged

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented May 19, 2023

This is a simple 1:1 copy of the current default GitHub labels, but
sets the example of declaratively configuring them over defining
them by hand through the UI.

This makes use of https://github.com/EndBug/label-sync, which has
two advantages over e.g. https://github.com/micnncim/action-label-syncer.

  1. It allows the input of multiple config files, allowing a
    repository to inherit config from another repository. Instead of
    syncing from a central place, where a custom personal access
    token would be required to elevate permissions.
  2. It seems to be actively maintained.

@hiddeco hiddeco requested review from onedr0p, sabre1041 and devstein May 19, 2023 14:17
Copy link
Contributor

@onedr0p onedr0p left a comment

Choose a reason for hiding this comment

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

We could have this run when the file changes too.

@hiddeco
Copy link
Member Author

hiddeco commented May 19, 2023

Yes, was planning on adding this after manually confirming it runs correctly by hand. But happy to add it now.

hiddeco added 2 commits May 19, 2023 18:29
This is a simple 1:1 copy of the current default GitHub labels, but
sets the example of declaratively configuring them over defining
them by hand through the UI.

Signed-off-by: Hidde Beydals <[email protected]>
This makes use of https://github.com/EndBug/label-sync, which has
two advantages over e.g. https://github.com/micnncim/action-label-syncer.

1. It allows the input of multiple config files, allowing a
   repository to inherit config from another repository. Instead of
   syncing from a central place, where a custom personal access
   token would be required to elevate permissions.
2. It seems to be actively maintained.

Signed-off-by: Hidde Beydals <[email protected]>
@hiddeco hiddeco requested a review from onedr0p May 19, 2023 16:30
@hiddeco hiddeco merged commit 6ba998d into main May 19, 2023
@onedr0p onedr0p deleted the sync-labels branch May 19, 2023 16:33
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.

2 participants