Support `.github` repo `label.yml` file
Would be great to support the .github repo style of deep merging the label.yml
So you could have default labels from organization. 👍
Hi @casz, thanks for your suggestion!
I had thought about integrating this feature but for the moment the scope of a GITHUB_TOKEN is not expanded to the org (yet?). The only way would be to use a GitHub PAT.
Considering this I think we should modify the YAML config to something like:
repos:
- "." # means current repo
- "myorgname/*"
- "myusername/*"
- "myusername/arepo"
labels:
- name: mylabel
color: "000000"
- ...
I could perhaps provide my own GitHub token that has the necessary access ? 😄
By definition the .github repo has to be public at least according to GitHub docs that would mean the default token should suffice.
https://docs.github.com/en/free-pro-team@latest/github/building-a-strong-community/creating-a-default-community-health-file#creating-a-repository-for-default-files
You can add default community health files to the root of a public repository called .github that is owned by an organization or user account.
Make sure the repository status is set to Public (a repository for default files cannot be private).