diff --git a/.github/labels.yaml b/.github/labels.yaml index ed0eef8..93cf8ab 100644 --- a/.github/labels.yaml +++ b/.github/labels.yaml @@ -1,76 +1,60 @@ -¯\_(ツ)_/¯: - name: ¯\_(ツ)_/¯ - color: f9d0c4 - description: ¯\\\_(ツ)_/¯ -api: - name: api - color: 6f42c1 - description: Issues related to the GitHub API -bug: - name: bug - color: d73a4a - description: Something isn't working as expected -enhancement: - name: enhancement - color: 0dd8ac - description: New feature or improvement request -documentation: - name: documentation - color: 007bc7 - description: Issues related to documentation -help-wanted: - name: help-wanted - color: 7057ff - description: Contribution opportunities available -question: - name: question - color: ffb000 - description: Questions or need for further clarification -invalid: - name: invalid - color: e4e669 - description: Issue is no longer valid or applicable -duplicate: - name: duplicate - color: cfd3d7 - description: Issue already reported or duplicated -wontfix: - name: wontfix - color: a2eeef - description: Issue won't be fixed or addressed -feature-request: - name: feature-request - color: 61dafb - description: Request for a new feature or enhancement -critical: - name: critical - color: e00808 - description: Critical issue that requires immediate attention -high-priority: - name: high-priority - color: ff7b72 - description: Issue with high priority -low-priority: - name: low-priority - color: 8c8c8c - description: Issue with low priority -in-progress: - name: in-progress - color: 2a8b9d - description: Issue currently being worked on -resolved: - name: resolved - color: 28a745 - description: Issue has been resolved -feedback: - name: feedback - color: d4c5f9 - description: Feedback or suggestions for improvement -testing: - name: testing - color: 36bcef - description: Issues related to testing or test cases -hacktoberfest: - name: hacktoberfest - color: ff6b00 - description: Issues related to the Hacktoberfest event +- name: api + color: 6f42c1 + description: Issues related to the GitHub API +- name: enhancement + color: 0dd8ac + description: New feature or improvement request +- name: high-priority + color: ff7b72 + description: Issue with high priority +- name: question + color: ffb000 + description: Questions or need for further clarification +- name: test + color: ffffff + description: "Test label. \U0001F6A7" +- name: invalid + color: e4e669 + description: Issue is no longer valid or applicable +- name: duplicate + color: cfd3d7 + description: Issue already reported or duplicated +- name: feature-request + color: 61dafb + description: Request for a new feature or enhancement +- name: feedback + color: d4c5f9 + description: Feedback or suggestions for improvement +- name: help-wanted + color: 7057ff + description: Contribution opportunities available +- name: in-progress + color: 2a8b9d + description: Issue currently being worked on +- name: testing + color: 36bcef + description: Issues related to testing or test cases +- name: ¯\_(ツ)_/¯ + color: f9d0c4 + description: ¯\\\_(ツ)_/¯ +- name: critical + color: e00808 + description: Critical issue that requires immediate attention +- name: documentation + color: 007bc7 + description: Issues related to documentation +- name: hacktoberfest + color: ff6b00 + description: Issues related to the Hacktoberfest event +- name: resolved + color: 28a745 + description: Issue has been resolved +- name: bug + color: d73a4a + description: Something isn't working as expected +- name: low-priority + color: 8c8c8c + description: Issue with low priority +- name: wontfix + color: a2eeef + description: Issue won't be fixed or addressed diff --git a/.github/workflows/example.yaml b/.github/workflows/example.yaml index 7682c10..f887113 100644 --- a/.github/workflows/example.yaml +++ b/.github/workflows/example.yaml @@ -7,6 +7,10 @@ on: permissions: write-all +env: + OWNER: shanduur + REPO: ${{ github.event.repository.name }} + jobs: upload-labels: runs-on: ubuntu-latest @@ -28,6 +32,6 @@ jobs: - if: steps.labels-changed.outputs.changed == 'true' run: go install github.com/shanduur/labeler/cmd/labeler@main - if: steps.labels-changed.outputs.changed == 'true' - run: labeler upload --owner shanduur --repo labeler ./.github/labels.yaml + run: labeler upload --owner ${{ env.OWNER }} --repo ${{ env.REPO }} ./.github/labels.yaml env: LABELER_TOKEN: ${{ secrets.LABELER_TOKEN }} diff --git a/cmd/labeler/download/download.go b/cmd/labeler/download/download.go index 895bef8..556c203 100644 --- a/cmd/labeler/download/download.go +++ b/cmd/labeler/download/download.go @@ -112,7 +112,7 @@ func listAll(ctx context.Context, client *github.Client, owner, repo string) ([] func toYAML(ghl []*github.Label) ([]byte, error) { slog.Debug("transforming to YAML") - lbl := make(labels.Labels) + lbl := make(labels.LabelsMap) for _, l := range ghl { name := l.GetName() @@ -132,7 +132,7 @@ func toYAML(ghl []*github.Label) ([]byte, error) { slog.Debug("transforming to YAML complete") - out, err := yaml.Marshal(lbl) + out, err := yaml.Marshal(lbl.ToSlice()) if err != nil { return nil, fmt.Errorf("unable to marshall YAML: %w", err) } diff --git a/cmd/labeler/upload/upload.go b/cmd/labeler/upload/upload.go index 837f978..a14aecb 100644 --- a/cmd/labeler/upload/upload.go +++ b/cmd/labeler/upload/upload.go @@ -63,15 +63,15 @@ func New() *cli.Command { return fmt.Errorf("unable to open file: %w", err) } - lbls := make(labels.Labels) + var lbls labels.Labels err = yaml.NewDecoder(f).Decode(&lbls) if err != nil { return fmt.Errorf("unable to decode file: %w", err) } - for name, label := range lbls { - slog.Info("processing label", "label_name", name, "label.color", label.Color) + for _, label := range lbls { + slog.Info("processing label", "label_name", label.Name, "label.color", label.Color) err = uploadLabel(ctx.Context, client, owner, repo, label) if err != nil { diff --git a/examples/cli/cli/labels.yaml b/examples/cli/cli/labels.yaml index 513e391..487c31c 100644 --- a/examples/cli/cli/labels.yaml +++ b/examples/cli/cli/labels.yaml @@ -1,144 +1,180 @@ -accessibility: - name: accessibility - color: 9ce9f4 - description: "" -actions: - name: actions - color: f9e98b - description: "" -auth: - name: auth - color: 00517a - description: related to tokens, authentication state, or oauth -blocked: - name: blocked - color: ff5451 - description: "" -bug: - name: bug - color: d73a4a - description: Something isn't working -checks: - name: checks - color: 0e92d3 - description: "" -codespaces: - name: codespaces - color: DFA997 - description: "" -config: - name: config - color: f98d75 - description: "" -core: - name: core - color: e25944 - description: This issue is not accepting PRs from outside contributors -dependencies: - name: dependencies - color: 0366d6 - description: Pull requests that update a dependency file -discuss: - name: discuss - color: C9DC07 - description: Feature changes that require discussion primarily among the GitHub CLI team -docs: - name: docs - color: 6cafc9 - description: "" -enhancement: - name: enhancement - color: 0dd8ac - description: a request to improve CLI -extension idea: - name: extension idea - color: 257FDD - description: An idea that could make a good GitHub CLI extension -extensions: - name: extensions - color: DAB5B8 - description: "" -external: - name: external - color: 2700AF - description: pull request originating outside of the CLI core team -feedback: - name: feedback - color: d4c5f9 - description: "" -github_actions: - name: github_actions - color: "000000" - description: Pull requests that update GitHub Actions code -go: - name: go - color: 16e2e2 - description: Pull requests that update Go code -good first issue: - name: good first issue - color: d0f9a4 - description: "" -hackday: - name: hackday - color: 3ed1ac - description: PRs that came out of a Hack Day -hacktoberfest-accepted: - name: hacktoberfest-accepted - color: D93F0B - description: "" -help wanted: - name: help wanted - color: 98f9f0 - description: Contributions welcome -linux: - name: linux - color: 3eddb8 - description: "" -needs-design: - name: needs-design - color: 2db0bf - description: An engineering task needs design to proceed -needs-investigation: - name: needs-investigation - color: d45bd8 - description: CLI team needs to investigate -needs-triage: - name: needs-triage - color: D6393F - description: needs to be reviewed -needs-user-input: - name: needs-user-input - color: 830eb5 - description: "" -p1: - name: p1 - color: e00808 - description: Affects a large population and inhibits work -p2: - name: p2 - color: FFA501 - description: Affects more than a few users but doesn't prevent core functions -p3: - name: p3 - color: eded04 - description: Affects a small number of users or is largely cosmetic -packaging: - name: packaging - color: 56efa8 - description: "" -platform: - name: platform - color: 6E4A8E - description: Problems with the GitHub platform rather than the CLI client -tech debt: - name: tech debt - color: c9f26a - description: A chore that addresses technical debt -tracking issue: - name: tracking issue - color: ffa8da - description: "" -windows: - name: windows - color: "0258e2" - description: "" +- name: config + color: f98d75 + description: "" +- name: gh-codespace + color: 373A15 + description: relating to the gh codespace command +- name: gh-gist + color: 7C8651 + description: relating to the gh gist command +- name: gh-ruleset + color: BAD70C + description: relating to the gh ruleset command +- name: tech-debt + color: c9f26a + description: A chore that addresses technical debt +- name: gh-completion + color: 77223B + description: relating to the gh completion command +- name: gh-help + color: 1C2917 + description: relating to the gh help command +- name: discuss + color: C9DC07 + description: Feature changes that require discussion primarily among the GitHub CLI team +- name: gh-api + color: 92486D + description: relating to the gh api command +- name: gh-extension + color: 50145A + description: relating to the gh extension command +- name: gh-workflow + color: 09630E + description: relating to the gh workflow command +- name: project + color: 23C12F + description: "" +- name: needs-triage + color: D6393F + description: needs to be reviewed +- name: accessibility + color: 9ce9f4 + description: "" +- name: core + color: e25944 + description: This issue is not accepting PRs from outside contributors +- name: extension-idea + color: 257FDD + description: An idea that could make a good GitHub CLI extension +- name: gh-cache + color: 969D60 + description: relating to the gh cache command +- name: gh-org + color: 48009B + description: relating to the gh org command +- name: gh-search + color: C2825C + description: relating to the gh search command +- name: gh-status + color: 0DD095 + description: relating to the gh status command +- name: needs-design + color: 2db0bf + description: An engineering task needs design to proceed +- name: platform + color: 6E4A8E + description: Problems with the GitHub platform rather than the CLI client +- name: blocked + color: ff5451 + description: "" +- name: good first issue + color: d0f9a4 + description: "" +- name: gh-variable + color: 47D124 + description: relating to the gh variable command +- name: p3 + color: eded04 + description: Affects a small number of users or is largely cosmetic +- name: windows + color: "0258e2" + description: "" +- name: dependencies + color: 0366d6 + description: Pull requests that update a dependency file +- name: extensions + color: DAB5B8 + description: "" +- name: gh-project + color: d93f0b + description: relating to the gh project command +- name: needs-user-input + color: 830eb5 + description: "" +- name: packaging + color: 56efa8 + description: "" +- name: actions + color: f9e98b + description: "" +- name: gh-secret + color: FCD15D + description: relating to the gh secret command +- name: needs-investigation + color: d45bd8 + description: CLI team needs to investigate +- name: cli.github.com + color: A4DEDC + description: "" +- name: external + color: 2700AF + description: pull request originating outside of the CLI core team +- name: gh-issue + color: "430568" + description: relating to the gh issue command +- name: gh-ssh-key + color: 32B90C + description: relating to the gh ssh-key command +- name: go + color: 16e2e2 + description: Pull requests that update Go code +- name: p2 + color: FFA501 + description: Affects more than a few users but doesn't prevent core functions +- name: auth + color: 00517a + description: related to tokens, authentication state, or oauth +- name: github_actions + color: "000000" + description: Pull requests that update GitHub Actions code +- name: p1 + color: e00808 + description: Affects a large population and inhibits work +- name: docs + color: 6cafc9 + description: "" +- name: gh-alias + color: 0052cc + description: related to the gh alias command +- name: gh-gpg-key + color: 4892F0 + description: relating to the gh gpg-key command +- name: gh-label + color: E6691F + description: relating to the gh label command +- name: feedback + color: d4c5f9 + description: "" +- name: gh-browse + color: 3595BB + description: relating to the gh browse command +- name: gh-config + color: A86333 + description: relating to the gh config command +- name: gh-pr + color: DD04FD + description: relating to the gh pr command +- name: gh-run + color: 1B818A + description: relating to the gh run command +- name: bug + color: d73a4a + description: Something isn't working +- name: enhancement + color: 0dd8ac + description: a request to improve CLI +- name: gh-auth + color: 9A3D69 + description: relating to the gh auth command +- name: gh-repo + color: d4c5f9 + description: relating to the gh repo command +- name: help wanted + color: 98f9f0 + description: Contributions welcome +- name: codespaces + color: DFA997 + description: "" +- name: gh-release + color: B242E9 + description: relating to the gh release command diff --git a/examples/kubernetes/kubernetes/labels.yaml b/examples/kubernetes/kubernetes/labels.yaml index 828810a..746af10 100644 --- a/examples/kubernetes/kubernetes/labels.yaml +++ b/examples/kubernetes/kubernetes/labels.yaml @@ -1,734 +1,536 @@ -¯\_(ツ)_/¯: - name: ¯\_(ツ)_/¯ - color: f9d0c4 - description: ¯\\\_(ツ)_/¯ -api-review: - name: api-review - color: e11d21 - description: Categorizes an issue or PR as actively needing an API review. -approved: - name: approved - color: 0ffa16 - description: Indicates a PR has been approved by an approver from all required OWNERS files. -area/HA: - name: area/HA - color: 0052cc -area/admin: - name: area/admin - color: 0052cc - description: Indicates an issue on admin area. -area/admission-control: - name: area/admission-control - color: 0052cc -area/api: - name: area/api - color: 0052cc - description: Indicates an issue on api area. -area/apiserver: - name: area/apiserver - color: 0052cc -area/app-lifecycle: - name: area/app-lifecycle - color: 0052cc -area/artifacts: - name: area/artifacts - color: 0052cc - description: Issues or PRs related to the hosting of release artifacts for subprojects -area/audit: - name: area/audit - color: 0052cc -area/batch: - name: area/batch - color: 0052cc -area/build-release: - name: area/build-release - color: 0052cc -area/cadvisor: - name: area/cadvisor - color: 0052cc -area/client-libraries: - name: area/client-libraries - color: 0052cc -area/cloudprovider: - name: area/cloudprovider - color: 0052cc -area/code-generation: - name: area/code-generation - color: 0052cc - description: "" -area/code-organization: - name: area/code-organization - color: 0052cc - description: Issues or PRs related to kubernetes code organization -area/community-meeting: - name: area/community-meeting - color: 0052cc - description: Issues or PRs that should potentially be discussed in a Kubernetes community meeting. -area/configmap-api: - name: area/configmap-api - color: 0052cc -area/conformance: - name: area/conformance - color: 0052cc - description: Issues or PRs related to kubernetes conformance tests -area/controller-manager: - name: area/controller-manager - color: 0052cc -area/custom-resources: - name: area/custom-resources - color: 0052cc -area/declarative-configuration: - name: area/declarative-configuration - color: 0052cc -area/deflake: - name: area/deflake - color: 0052cc - description: Issues or PRs related to deflaking kubernetes tests -area/dependency: - name: area/dependency - color: 0052cc - description: Issues or PRs related to dependency changes -area/dns: - name: area/dns - color: 0052cc -area/docker: - name: area/docker - color: 0052cc -area/downward-api: - name: area/downward-api - color: 0052cc -area/e2e-test-framework: - name: area/e2e-test-framework - color: 0052cc - description: Issues or PRs related to refactoring the kubernetes e2e test framework -area/ecosystem: - name: area/ecosystem - color: 0052cc -area/etcd: - name: area/etcd - color: 0052cc -area/example: - name: area/example - color: 0052cc -area/example/cassandra: - name: area/example/cassandra - color: 0052cc -area/extensibility: - name: area/extensibility - color: 0052cc -area/federation: - name: area/federation - color: 0052cc -area/hw-accelerators: - name: area/hw-accelerators - color: 0052cc -area/images-registry: - name: area/images-registry - color: 0052cc -area/ingress: - name: area/ingress - color: 0052cc -area/introspection: - name: area/introspection - color: 0052cc -area/ipv6: - name: area/ipv6 - color: 0052cc -area/ipvs: - name: area/ipvs - color: 0052cc -area/isolation: - name: area/isolation - color: 0052cc -area/kube-proxy: - name: area/kube-proxy - color: 0052cc -area/kubeadm: - name: area/kubeadm - color: 0052cc -area/kubectl: - name: area/kubectl - color: 0052cc -area/kubelet: - name: area/kubelet - color: 0052cc -area/kubelet-api: - name: area/kubelet-api - color: 0052cc -area/logging: - name: area/logging - color: 0052cc -area/monitoring: - name: area/monitoring - color: 0052cc -area/network-policy: - name: area/network-policy - color: 0052cc - description: Issues or PRs related to Network Policy subproject -area/node-e2e: - name: area/node-e2e - color: 0052cc -area/node-lifecycle: - name: area/node-lifecycle - color: 0052cc -area/nodecontroller: - name: area/nodecontroller - color: 0052cc -area/os/coreos: - name: area/os/coreos - color: d4c5f9 -area/os/fedora: - name: area/os/fedora - color: d4c5f9 -area/os/ubuntu: - name: area/os/ubuntu - color: d4c5f9 -area/platform/gce: - name: area/platform/gce - color: d4c5f9 -area/platform/mesos: - name: area/platform/mesos - color: d4c5f9 -area/platform/vagrant: - name: area/platform/vagrant - color: d4c5f9 -area/provider/aws: - name: area/provider/aws - color: 0052cc - description: Issues or PRs related to aws provider -area/provider/azure: - name: area/provider/azure - color: 0052cc - description: Issues or PRs related to azure provider -area/provider/digitalocean: - name: area/provider/digitalocean - color: 0052cc - description: Issues or PRs related to digitalocean provider -area/provider/gcp: - name: area/provider/gcp - color: 0052cc - description: Issues or PRs related to gcp provider -area/provider/ibmcloud: - name: area/provider/ibmcloud - color: 0052cc - description: Issues or PRs related to ibmcloud provider -area/provider/openstack: - name: area/provider/openstack - color: 0052cc - description: Issues or PRs related to openstack provider -area/provider/vmware: - name: area/provider/vmware - color: 0052cc - description: Issues or PRs related to vmware provider -area/release-eng: - name: area/release-eng - color: 0052cc - description: Issues or PRs related to the Release Engineering subproject -area/reliability: - name: area/reliability - color: 0052cc -area/rkt: - name: area/rkt - color: 0052cc -area/secret-api: - name: area/secret-api - color: 0052cc -area/security: - name: area/security - color: d93f0b -area/stable-metrics: - name: area/stable-metrics - color: 0052cc - description: Issues or PRs involving stable metrics -area/stateful-apps: - name: area/stateful-apps - color: 0052cc -area/swagger: - name: area/swagger - color: 0052cc -area/system-requirement: - name: area/system-requirement - color: 0052cc -area/teardown: - name: area/teardown - color: 0052cc -area/test: - name: area/test - color: 0052cc -area/test-infra: - name: area/test-infra - color: 0052cc -area/ui: - name: area/ui - color: 0052cc -area/upgrade: - name: area/upgrade - color: 0052cc -area/usability: - name: area/usability - color: 0052cc -area/workload-api/cronjob: - name: area/workload-api/cronjob - color: 0052cc -area/workload-api/daemonset: - name: area/workload-api/daemonset - color: 0052cc -area/workload-api/deployment: - name: area/workload-api/deployment - color: 0052cc -area/workload-api/job: - name: area/workload-api/job - color: 0052cc -area/workload-api/replicaset: - name: area/workload-api/replicaset - color: 0052cc -cherry-pick-approved: - name: cherry-pick-approved - color: fef2c0 - description: Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. -'cncf-cla: no': - name: 'cncf-cla: no' - color: e11d21 - description: Indicates the PR's author has not signed the CNCF CLA. -'cncf-cla: yes': - name: 'cncf-cla: yes' - color: bfe5bf - description: Indicates the PR's author has signed the CNCF CLA. -committee/code-of-conduct: - name: committee/code-of-conduct - color: c0ff4a - description: Denotes an issue or PR intended to be handled by the code of conduct committee. -committee/security-response: - name: committee/security-response - color: c0ff4a - description: Denotes an issue or PR intended to be handled by the product security committee. -committee/steering: - name: committee/steering - color: c0ff4a - description: Denotes an issue or PR intended to be handled by the steering committee. -dependencies: - name: dependencies - color: 0366d6 - description: Pull requests that update a dependency file -do-not-merge: - name: do-not-merge - color: e11d21 - description: DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. -do-not-merge/blocked-paths: - name: do-not-merge/blocked-paths - color: e11d21 - description: Indicates that a PR should not merge because it touches files in blocked paths. -do-not-merge/cherry-pick-not-approved: - name: do-not-merge/cherry-pick-not-approved - color: e11d21 - description: Indicates that a PR is not yet approved to merge into a release branch. -do-not-merge/contains-merge-commits: - name: do-not-merge/contains-merge-commits - color: e11d21 - description: Indicates a PR which contains merge commits. -do-not-merge/hold: - name: do-not-merge/hold - color: e11d21 - description: Indicates that a PR should not merge because someone has issued a /hold command. -do-not-merge/invalid-commit-message: - name: do-not-merge/invalid-commit-message - color: e11d21 - description: Indicates that a PR should not merge because it has an invalid commit message. -do-not-merge/invalid-owners-file: - name: do-not-merge/invalid-owners-file - color: e11d21 - description: Indicates that a PR should not merge because it has an invalid OWNERS file in it. -do-not-merge/needs-kind: - name: do-not-merge/needs-kind - color: e11d21 - description: Indicates a PR lacks a `kind/foo` label and requires one. -do-not-merge/needs-sig: - name: do-not-merge/needs-sig - color: e11d21 - description: Indicates an issue or PR lacks a `sig/foo` label and requires one. -do-not-merge/release-note-label-needed: - name: do-not-merge/release-note-label-needed - color: e11d21 - description: Indicates that a PR should not merge because it's missing one of the release note labels. -do-not-merge/work-in-progress: - name: do-not-merge/work-in-progress - color: e11d21 - description: Indicates that a PR should not merge because it is a work in progress. -good first issue: - name: good first issue - color: 7057ff - description: Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. -help wanted: - name: help wanted - color: 006b75 - description: Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. -kind/api-change: - name: kind/api-change - color: e11d21 - description: Categorizes issue or PR as related to adding, removing, or otherwise changing an API -kind/bug: - name: kind/bug - color: e11d21 - description: Categorizes issue or PR as related to a bug. -kind/cleanup: - name: kind/cleanup - color: c7def8 - description: Categorizes issue or PR as related to cleaning up code, process, or technical debt. -kind/deprecation: - name: kind/deprecation - color: e11d21 - description: Categorizes issue or PR as related to a feature/enhancement marked for deprecation. -kind/design: - name: kind/design - color: c7def8 - description: Categorizes issue or PR as related to design. -kind/documentation: - name: kind/documentation - color: c7def8 - description: Categorizes issue or PR as related to documentation. -kind/failing-test: - name: kind/failing-test - color: e11d21 - description: Categorizes issue or PR as related to a consistently or frequently failing test. -kind/feature: - name: kind/feature - color: c7def8 - description: Categorizes issue or PR as related to a new feature. -kind/flake: - name: kind/flake - color: f7c6c7 - description: Categorizes issue or PR as related to a flaky test. -kind/regression: - name: kind/regression - color: e11d21 - description: Categorizes issue or PR as related to a regression from a prior release. -kind/support: - name: kind/support - color: d455d0 - description: Categorizes issue or PR as a support question. -lgtm: - name: lgtm - color: 15dd18 - description: Indicates that a PR is ready to be merged. -lifecycle/active: - name: lifecycle/active - color: 8fc951 - description: Indicates that an issue or PR is actively being worked on by a contributor. -lifecycle/frozen: - name: lifecycle/frozen - color: d3e2f0 - description: Indicates that an issue or PR should not be auto-closed due to staleness. -lifecycle/rotten: - name: lifecycle/rotten - color: "604460" - description: Denotes an issue or PR that has aged beyond stale and will be auto-closed. -lifecycle/stale: - name: lifecycle/stale - color: "795548" - description: Denotes an issue or PR has remained open with no activity and has become stale. -milestone/incomplete-labels: - name: milestone/incomplete-labels - color: ededed -milestone/needs-approval: - name: milestone/needs-approval - color: ededed -milestone/needs-attention: - name: milestone/needs-attention - color: ededed -milestone/removed: - name: milestone/removed - color: ededed -needs-kind: - name: needs-kind - color: ededed - description: Indicates a PR lacks a `kind/foo` label and requires one. -needs-ok-to-test: - name: needs-ok-to-test - color: b60205 - description: Indicates a PR that requires an org member to verify it is safe to test. -needs-priority: - name: needs-priority - color: ededed - description: Indicates a PR lacks a `priority/foo` label and requires one. -needs-rebase: - name: needs-rebase - color: e11d21 - description: Indicates a PR cannot be merged because it has merge conflicts with HEAD. -needs-sig: - name: needs-sig - color: ededed - description: Indicates an issue or PR lacks a `sig/foo` label and requires one. -needs-triage: - name: needs-triage - color: ededed - description: Indicates an issue or PR lacks a `triage/foo` label and requires one. -official-cve-feed: - name: official-cve-feed - color: 0052cc - description: Issues or PRs related to CVEs officially announced by Security Response Committee (SRC) -ok-to-test: - name: ok-to-test - color: 15dd18 - description: Indicates a non-member PR verified by an org member that is safe to test. -priority/awaiting-more-evidence: - name: priority/awaiting-more-evidence - color: fef2c0 - description: Lowest priority. Possibly useful, but not yet enough support to actually get it done. -priority/backlog: - name: priority/backlog - color: fbca04 - description: Higher priority than priority/awaiting-more-evidence. -priority/critical-urgent: - name: priority/critical-urgent - color: e11d21 - description: Highest priority. Must be actively worked on as someone's top priority right now. -priority/important-longterm: - name: priority/important-longterm - color: eb6420 - description: Important over the long term, but may not be staffed and/or may need multiple releases to complete. -priority/important-soon: - name: priority/important-soon - color: eb6420 - description: Must be staffed and worked on either currently, or very soon, ideally in time for the next release. -release-blocker: - name: release-blocker - color: d93f0b -release-note: - name: release-note - color: c2e0c6 - description: Denotes a PR that will be considered when it comes time to generate release notes. -release-note-action-required: - name: release-note-action-required - color: c2e0c6 - description: Denotes a PR that introduces potentially breaking changes that require user action. -release-note-none: - name: release-note-none - color: c2e0c6 - description: Denotes a PR that doesn't merit a release note. -sig/api-machinery: - name: sig/api-machinery - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG API Machinery. -sig/apps: - name: sig/apps - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Apps. -sig/architecture: - name: sig/architecture - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Architecture. -sig/auth: - name: sig/auth - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Auth. -sig/autoscaling: - name: sig/autoscaling - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Autoscaling. -sig/cli: - name: sig/cli - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG CLI. -sig/cloud-provider: - name: sig/cloud-provider - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Cloud Provider. -sig/cluster-lifecycle: - name: sig/cluster-lifecycle - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. -sig/contributor-experience: - name: sig/contributor-experience - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Contributor Experience. -sig/docs: - name: sig/docs - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Docs. -sig/instrumentation: - name: sig/instrumentation - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Instrumentation. -sig/k8s-infra: - name: sig/k8s-infra - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG K8s Infra. -sig/multicluster: - name: sig/multicluster - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Multicluster. -sig/network: - name: sig/network - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Network. -sig/node: - name: sig/node - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Node. -sig/release: - name: sig/release - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Release. -sig/scalability: - name: sig/scalability - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Scalability. -sig/scheduling: - name: sig/scheduling - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Scheduling. -sig/security: - name: sig/security - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Security. -sig/service-catalog: - name: sig/service-catalog - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Service Catalog. -sig/storage: - name: sig/storage - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Storage. -sig/testing: - name: sig/testing - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Testing. -sig/ui: - name: sig/ui - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG UI. -sig/usability: - name: sig/usability - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Usability. -sig/windows: - name: sig/windows - color: d2b48c - description: Categorizes an issue or PR as relevant to SIG Windows. -size/L: - name: size/L - color: ee9900 - description: Denotes a PR that changes 100-499 lines, ignoring generated files. -size/M: - name: size/M - color: eebb00 - description: Denotes a PR that changes 30-99 lines, ignoring generated files. -size/S: - name: size/S - color: 77bb00 - description: Denotes a PR that changes 10-29 lines, ignoring generated files. -size/XL: - name: size/XL - color: ee5500 - description: Denotes a PR that changes 500-999 lines, ignoring generated files. -size/XS: - name: size/XS - color: "009900" - description: Denotes a PR that changes 0-9 lines, ignoring generated files. -size/XXL: - name: size/XXL - color: ee0000 - description: Denotes a PR that changes 1000+ lines, ignoring generated files. -status/approved-for-milestone: - name: status/approved-for-milestone - color: ededed -tide/merge-blocker: - name: tide/merge-blocker - color: e11d21 - description: Denotes an issue that blocks the tide merge queue for a branch while it is open. -tide/merge-method-merge: - name: tide/merge-method-merge - color: ffaa00 - description: Denotes a PR that should use a standard merge by tide when it merges. -tide/merge-method-rebase: - name: tide/merge-method-rebase - color: ffaa00 - description: Denotes a PR that should be rebased by tide when it merges. -tide/merge-method-squash: - name: tide/merge-method-squash - color: ffaa00 - description: Denotes a PR that should be squashed by tide when it merges. -triage/accepted: - name: triage/accepted - color: 8fc951 - description: Indicates an issue or PR is ready to be actively worked on. -triage/duplicate: - name: triage/duplicate - color: d455d0 - description: Indicates an issue is a duplicate of other open issue. -triage/needs-information: - name: triage/needs-information - color: d455d0 - description: Indicates an issue needs more information in order to work on it. -triage/not-reproducible: - name: triage/not-reproducible - color: d455d0 - description: Indicates an issue can not be reproduced as described. -triage/unresolved: - name: triage/unresolved - color: d455d0 - description: Indicates an issue that can not or will not be resolved. -ug/big-data: - name: ug/big-data - color: d2b48c - description: Categorizes an issue or PR as relevant to ug-big-data. -ug/vmware: - name: ug/vmware - color: d2b48c - description: Categorizes an issue or PR as relevant to ug-vmware. -wg/api-expression: - name: wg/api-expression - color: d2b48c - description: Categorizes an issue or PR as relevant to WG API Expression. -wg/batch: - name: wg/batch - color: d2b48c - description: Categorizes an issue or PR as relevant to WG Batch. -wg/cluster-api: - name: wg/cluster-api - color: d2b48c - description: Categorizes an issue or PR as relevant to wg-cluster-api. -wg/component-standard: - name: wg/component-standard - color: d2b48c - description: Categorizes an issue or PR as relevant to WG Component Standard. -wg/data-protection: - name: wg/data-protection - color: d2b48c - description: Categorizes an issue or PR as relevant to WG Data Protection. -wg/iot-edge: - name: wg/iot-edge - color: d2b48c - description: Categorizes an issue or PR as relevant to WG IOT Edge. -wg/lts: - name: wg/lts - color: d2b48c - description: Categorizes an issue or PR as relevant to WG LTS. -wg/machine-learning: - name: wg/machine-learning - color: d2b48c - description: Categorizes an issue or PR as relevant to WG Machine Learning. -wg/multitenancy: - name: wg/multitenancy - color: d2b48c - description: Categorizes an issue or PR as relevant to WG Multitenancy. -wg/naming: - name: wg/naming - color: d2b48c - description: Categorizes an issue or PR as relevant to WG Naming. -wg/policy: - name: wg/policy - color: d2b48c - description: Categorizes an issue or PR as relevant to WG Policy. -wg/reliability: - name: wg/reliability - color: d2b48c - description: Categorizes an issue or PR as relevant to WG Reliability -wg/security-audit: - name: wg/security-audit - color: d2b48c - description: Categorizes an issue or PR as relevant to WG Security Audit. -wg/structured-logging: - name: wg/structured-logging - color: d2b48c - description: Categorizes an issue or PR as relevant to WG Structured Logging. +- name: kind/documentation + color: c7def8 + description: Categorizes issue or PR as related to documentation. +- name: sig/docs + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Docs. +- name: size/XL + color: ee5500 + description: Denotes a PR that changes 500-999 lines, ignoring generated files. +- name: size/XS + color: "009900" + description: Denotes a PR that changes 0-9 lines, ignoring generated files. +- name: wg/security-audit + color: d2b48c + description: Categorizes an issue or PR as relevant to WG Security Audit. +- name: area/controller-manager + color: 0052cc +- name: area/example + color: 0052cc +- name: do-not-merge/contains-merge-commits + color: e11d21 + description: Indicates a PR which contains merge commits. +- name: area/network-policy + color: 0052cc + description: Issues or PRs related to Network Policy subproject +- name: dependencies + color: 0366d6 + description: Pull requests that update a dependency file +- name: kind/cleanup + color: c7def8 + description: Categorizes issue or PR as related to cleaning up code, process, or technical debt. +- name: area/ipv6 + color: 0052cc +- name: sig/service-catalog + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Service Catalog. +- name: priority/critical-urgent + color: e11d21 + description: Highest priority. Must be actively worked on as someone's top priority right now. +- name: sig/windows + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Windows. +- name: area/usability + color: 0052cc +- name: do-not-merge/blocked-paths + color: e11d21 + description: Indicates that a PR should not merge because it touches files in blocked paths. +- name: lifecycle/rotten + color: "604460" + description: Denotes an issue or PR that has aged beyond stale and will be auto-closed. +- name: area/cloudprovider + color: 0052cc +- name: area/conformance + color: 0052cc + description: Issues or PRs related to kubernetes conformance tests +- name: needs-kind + color: ededed + description: Indicates a PR lacks a `kind/foo` label and requires one. +- name: sig/node + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Node. +- name: size/M + color: eebb00 + description: Denotes a PR that changes 30-99 lines, ignoring generated files. +- name: area/images-registry + color: 0052cc +- name: area/teardown + color: 0052cc +- name: sig/network + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Network. +- name: triage/unresolved + color: d455d0 + description: Indicates an issue that can not or will not be resolved. +- name: area/swagger + color: 0052cc +- name: sig/cloud-provider + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Cloud Provider. +- name: sig/instrumentation + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Instrumentation. +- name: sig/ui + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG UI. +- name: area/rkt + color: 0052cc +- name: committee/code-of-conduct + color: c0ff4a + description: Denotes an issue or PR intended to be handled by the code of conduct committee. +- name: kind/deprecation + color: e11d21 + description: Categorizes issue or PR as related to a feature/enhancement marked for deprecation. +- name: kind/bug + color: e11d21 + description: Categorizes issue or PR as related to a bug. +- name: needs-sig + color: ededed + description: Indicates an issue or PR lacks a `sig/foo` label and requires one. +- name: official-cve-feed + color: 0052cc + description: Issues or PRs related to CVEs officially announced by Security Response Committee (SRC) +- name: sig/release + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Release. +- name: area/e2e-test-framework + color: 0052cc + description: Issues or PRs related to refactoring the kubernetes e2e test framework +- name: area/federation + color: 0052cc +- name: area/kubeadm + color: 0052cc +- name: ug/big-data + color: d2b48c + description: Categorizes an issue or PR as relevant to ug-big-data. +- name: kind/api-change + color: e11d21 + description: Categorizes issue or PR as related to adding, removing, or otherwise changing an API +- name: area/platform/gce + color: d4c5f9 +- name: sig/security + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Security. +- name: sig/cli + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG CLI. +- name: do-not-merge/hold + color: e11d21 + description: Indicates that a PR should not merge because someone has issued a /hold command. +- name: help wanted + color: 006b75 + description: Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. +- name: milestone/needs-approval + color: ededed +- name: area/kube-proxy + color: 0052cc +- name: wg/reliability + color: d2b48c + description: Categorizes an issue or PR as relevant to WG Reliability +- name: area/community-meeting + color: 0052cc + description: Issues or PRs that should potentially be discussed in a Kubernetes community meeting. +- name: size/S + color: 77bb00 + description: Denotes a PR that changes 10-29 lines, ignoring generated files. +- name: triage/needs-information + color: d455d0 + description: Indicates an issue needs more information in order to work on it. +- name: priority/important-longterm + color: eb6420 + description: Important over the long term, but may not be staffed and/or may need multiple releases to complete. +- name: wg/iot-edge + color: d2b48c + description: Categorizes an issue or PR as relevant to WG IOT Edge. +- name: area/code-organization + color: 0052cc + description: Issues or PRs related to kubernetes code organization +- name: area/custom-resources + color: 0052cc +- name: area/provider/vmware + color: 0052cc + description: Issues or PRs related to vmware provider +- name: milestone/incomplete-labels + color: ededed +- name: do-not-merge/release-note-label-needed + color: e11d21 + description: Indicates that a PR should not merge because it's missing one of the release note labels. +- name: do-not-merge/invalid-owners-file + color: e11d21 + description: Indicates that a PR should not merge because it has an invalid OWNERS file in it. +- name: 'cncf-cla: no' + color: e11d21 + description: Indicates the PR's author has not signed the CNCF CLA. +- name: area/admin + color: 0052cc + description: Indicates an issue on admin area. +- name: area/code-generation + color: 0052cc + description: "" +- name: area/dependency + color: 0052cc + description: Issues or PRs related to dependency changes +- name: area/downward-api + color: 0052cc +- name: api-review + color: e11d21 + description: Categorizes an issue or PR as actively needing an API review. +- name: kind/design + color: c7def8 + description: Categorizes issue or PR as related to design. +- name: release-note-action-required + color: c2e0c6 + description: Denotes a PR that introduces potentially breaking changes that require user action. +- name: lifecycle/active + color: 8fc951 + description: Indicates that an issue or PR is actively being worked on by a contributor. +- name: area/kubectl + color: 0052cc +- name: area/os/coreos + color: d4c5f9 +- name: area/provider/aws + color: 0052cc + description: Issues or PRs related to aws provider +- name: area/provider/ibmcloud + color: 0052cc + description: Issues or PRs related to ibmcloud provider +- name: committee/security-response + color: c0ff4a + description: Denotes an issue or PR intended to be handled by the product security committee. +- name: area/example/cassandra + color: 0052cc +- name: area/kubelet-api + color: 0052cc +- name: sig/apps + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Apps. +- name: area/build-release + color: 0052cc +- name: cherry-pick-approved + color: fef2c0 + description: Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. +- name: lgtm + color: 15dd18 + description: '"Looks good to me", indicates that a PR is ready to be merged.' +- name: sig/contributor-experience + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Contributor Experience. +- name: ¯\_(ツ)_/¯ + color: f9d0c4 + description: ¯\\\_(ツ)_/¯ +- name: area/upgrade + color: 0052cc +- name: area/stateful-apps + color: 0052cc +- name: area/test + color: 0052cc +- name: area/workload-api/cronjob + color: 0052cc +- name: priority/awaiting-more-evidence + color: fef2c0 + description: Lowest priority. Possibly useful, but not yet enough support to actually get it done. +- name: sig/architecture + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Architecture. +- name: sig/k8s-infra + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG K8s Infra. +- name: area/extensibility + color: 0052cc +- name: triage/accepted + color: 8fc951 + description: Indicates an issue or PR is ready to be actively worked on. +- name: sig/storage + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Storage. +- name: wg/component-standard + color: d2b48c + description: Categorizes an issue or PR as relevant to WG Component Standard. +- name: area/batch + color: 0052cc +- name: area/logging + color: 0052cc +- name: area/workload-api/replicaset + color: 0052cc +- name: milestone/removed + color: ededed +- name: sig/autoscaling + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Autoscaling. +- name: area/cadvisor + color: 0052cc +- name: area/HA + color: 0052cc +- name: tide/merge-method-rebase + color: ffaa00 + description: Denotes a PR that should be rebased by tide when it merges. +- name: kind/failing-test + color: e11d21 + description: Categorizes issue or PR as related to a consistently or frequently failing test. +- name: wg/data-protection + color: d2b48c + description: Categorizes an issue or PR as relevant to WG Data Protection. +- name: area/admission-control + color: 0052cc +- name: area/isolation + color: 0052cc +- name: area/stable-metrics + color: 0052cc + description: Issues or PRs involving stable metrics +- name: area/hw-accelerators + color: 0052cc +- name: wg/machine-learning + color: d2b48c + description: Categorizes an issue or PR as relevant to WG Machine Learning. +- name: sig/etcd + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Etcd. +- name: area/declarative-configuration + color: 0052cc +- name: needs-ok-to-test + color: b60205 + description: Indicates a PR that requires an org member to verify it is safe to test. +- name: area/app-lifecycle + color: 0052cc +- name: 'cncf-cla: yes' + color: bfe5bf + description: Indicates the PR's author has signed the CNCF CLA. +- name: kind/regression + color: e11d21 + description: Categorizes issue or PR as related to a regression from a prior release. +- name: sig/usability + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Usability. +- name: triage/duplicate + color: d455d0 + description: Indicates an issue is a duplicate of other open issue. +- name: ug/vmware + color: d2b48c + description: Categorizes an issue or PR as relevant to ug-vmware. +- name: do-not-merge + color: e11d21 + description: DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. +- name: do-not-merge/needs-sig + color: e11d21 + description: Indicates an issue or PR lacks a `sig/foo` label and requires one. +- name: kind/feature + color: c7def8 + description: Categorizes issue or PR as related to a new feature. +- name: area/kubelet + color: 0052cc +- name: area/node-e2e + color: 0052cc +- name: area/security + color: d93f0b +- name: area/test-infra + color: 0052cc +- name: triage/not-reproducible + color: d455d0 + description: Indicates an issue can not be reproduced as described. +- name: approved + color: 0ffa16 + description: Indicates a PR has been approved by an approver from all required OWNERS files. +- name: area/artifacts + color: 0052cc + description: Issues or PRs related to the hosting of release artifacts for subprojects +- name: area/provider/gcp + color: 0052cc + description: Issues or PRs related to gcp provider +- name: area/monitoring + color: 0052cc +- name: size/XXL + color: ee0000 + description: Denotes a PR that changes 1000+ lines, ignoring generated files. +- name: sig/auth + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Auth. +- name: wg/multitenancy + color: d2b48c + description: Categorizes an issue or PR as relevant to WG Multitenancy. +- name: area/apiserver + color: 0052cc +- name: area/client-libraries + color: 0052cc +- name: area/os/fedora + color: d4c5f9 +- name: area/ingress + color: 0052cc +- name: area/release-eng + color: 0052cc + description: Issues or PRs related to the Release Engineering subproject +- name: area/ui + color: 0052cc +- name: release-note-none + color: c2e0c6 + description: Denotes a PR that doesn't merit a release note. +- name: needs-priority + color: ededed + description: Indicates a PR lacks a `priority/foo` label and requires one. +- name: area/audit + color: 0052cc +- name: area/secret-api + color: 0052cc +- name: do-not-merge/cherry-pick-not-approved + color: e11d21 + description: Indicates that a PR is not yet approved to merge into a release branch. +- name: sig/scheduling + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Scheduling. +- name: tide/merge-method-merge + color: ffaa00 + description: Denotes a PR that should use a standard merge by tide when it merges. +- name: area/system-requirement + color: 0052cc +- name: do-not-merge/work-in-progress + color: e11d21 + description: Indicates that a PR should not merge because it is a work in progress. +- name: wg/structured-logging + color: d2b48c + description: Categorizes an issue or PR as relevant to WG Structured Logging. +- name: area/dns + color: 0052cc +- name: priority/important-soon + color: eb6420 + description: Must be staffed and worked on either currently, or very soon, ideally in time for the next release. +- name: wg/batch + color: d2b48c + description: Categorizes an issue or PR as relevant to WG Batch. +- name: tide/merge-method-squash + color: ffaa00 + description: Denotes a PR that should be squashed by tide when it merges. +- name: wg/lts + color: d2b48c + description: Categorizes an issue or PR as relevant to WG LTS. +- name: wg/policy + color: d2b48c + description: Categorizes an issue or PR as relevant to WG Policy. +- name: area/reliability + color: 0052cc +- name: priority/backlog + color: fbca04 + description: Higher priority than priority/awaiting-more-evidence. +- name: status/approved-for-milestone + color: ededed +- name: do-not-merge/needs-kind + color: e11d21 + description: Indicates a PR lacks a `kind/foo` label and requires one. +- name: sig/multicluster + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Multicluster. +- name: sig/testing + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Testing. +- name: area/api + color: 0052cc + description: Indicates an issue on api area. +- name: area/docker + color: 0052cc +- name: area/platform/vagrant + color: d4c5f9 +- name: needs-rebase + color: e11d21 + description: Indicates a PR cannot be merged because it has merge conflicts with HEAD. +- name: wg/cluster-api + color: d2b48c + description: Categorizes an issue or PR as relevant to wg-cluster-api. +- name: area/ipvs + color: 0052cc +- name: area/workload-api/deployment + color: 0052cc +- name: committee/steering + color: c0ff4a + description: Denotes an issue or PR intended to be handled by the steering committee. +- name: needs-triage + color: ededed + description: Indicates an issue or PR lacks a `triage/foo` label and requires one. +- name: sig/scalability + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Scalability. +- name: area/introspection + color: 0052cc +- name: area/node-lifecycle + color: 0052cc +- name: area/platform/mesos + color: d4c5f9 +- name: area/os/ubuntu + color: d4c5f9 +- name: kind/support + color: d455d0 + description: Categorizes issue or PR as a support question. +- name: ok-to-test + color: 15dd18 + description: Indicates a non-member PR verified by an org member that is safe to test. +- name: sig/api-machinery + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG API Machinery. +- name: area/provider/openstack + color: 0052cc + description: Issues or PRs related to openstack provider +- name: do-not-merge/invalid-commit-message + color: e11d21 + description: Indicates that a PR should not merge because it has an invalid commit message. +- name: kind/flake + color: f7c6c7 + description: Categorizes issue or PR as related to a flaky test. +- name: area/workload-api/job + color: 0052cc +- name: good first issue + color: 7057ff + description: Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. +- name: milestone/needs-attention + color: ededed +- name: area/configmap-api + color: 0052cc +- name: release-blocker + color: d93f0b +- name: sig/cluster-lifecycle + color: d2b48c + description: Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. +- name: size/L + color: ee9900 + description: Denotes a PR that changes 100-499 lines, ignoring generated files. +- name: tide/merge-blocker + color: e11d21 + description: Denotes an issue that blocks the tide merge queue for a branch while it is open. +- name: wg/naming + color: d2b48c + description: Categorizes an issue or PR as relevant to WG Naming. +- name: area/etcd + color: 0052cc +- name: lifecycle/frozen + color: d3e2f0 + description: Indicates that an issue or PR should not be auto-closed due to staleness. +- name: lifecycle/stale + color: "795548" + description: Denotes an issue or PR has remained open with no activity and has become stale. +- name: area/workload-api/daemonset + color: 0052cc +- name: area/provider/digitalocean + color: 0052cc + description: Issues or PRs related to digitalocean provider +- name: release-note + color: c2e0c6 + description: Denotes a PR that will be considered when it comes time to generate release notes. +- name: area/provider/azure + color: 0052cc + description: Issues or PRs related to azure provider +- name: area/nodecontroller + color: 0052cc +- name: area/deflake + color: 0052cc + description: Issues or PRs related to deflaking kubernetes tests +- name: area/ecosystem + color: 0052cc +- name: wg/api-expression + color: d2b48c + description: Categorizes an issue or PR as relevant to WG API Expression. diff --git a/examples/moby/moby/labels.yaml b/examples/moby/moby/labels.yaml index e96d987..eebd069 100644 --- a/examples/moby/moby/labels.yaml +++ b/examples/moby/moby/labels.yaml @@ -1,469 +1,345 @@ -area/api: - name: area/api - color: fbca04 -area/builder: - name: area/builder - color: fbca04 -area/builder/buildkit: - name: area/builder/buildkit - color: fbca04 - description: Issues affecting buildkit -area/builder/classic-builder: - name: area/builder/classic-builder - color: fbca04 - description: Issues affecting the classic builder -area/cgroup2: - name: area/cgroup2 - color: fbca04 - description: cgroup v2 -area/cli: - name: area/cli - color: fbca04 -area/contrib: - name: area/contrib - color: fbca04 - description: "" -area/daemon: - name: area/daemon - color: fbca04 -area/distribution: - name: area/distribution - color: fbca04 -area/docs: - name: area/docs - color: fbca04 -area/images: - name: area/images - color: fbca04 -area/kernel: - name: area/kernel - color: fbca04 -area/lcow: - name: area/lcow - color: fbca04 - description: Issues and PR's related to the experimental LCOW feature -area/logging: - name: area/logging - color: fbca04 -area/networking: - name: area/networking - color: fbca04 -area/networking/d/bridge: - name: area/networking/d/bridge - color: FBCA04 - description: "" -area/networking/d/ipvlan: - name: area/networking/d/ipvlan - color: FBCA04 - description: "" -area/networking/d/macvlan: - name: area/networking/d/macvlan - color: FBCA04 - description: "" -area/networking/d/overlay: - name: area/networking/d/overlay - color: fbcA04 - description: "" -area/networking/dns: - name: area/networking/dns - color: FBCA04 - description: "" -area/networking/firewalld: - name: area/networking/firewalld - color: FBCA04 - description: "" -area/networking/firewalling: - name: area/networking/firewalling - color: fbca04 - description: "" -area/networking/ipam: - name: area/networking/ipam - color: FBCA04 - description: "" -area/networking/ipv6: - name: area/networking/ipv6 - color: fbca04 - description: Issues related to ipv6 -area/networking/portmapping: - name: area/networking/portmapping - color: FBCA04 - description: "" -area/networking/proxy: - name: area/networking/proxy - color: fbca04 - description: "" -area/networking/tc: - name: area/networking/tc - color: FBCA04 - description: "" -area/packaging: - name: area/packaging - color: fbca04 - description: "" -area/performance: - name: area/performance - color: fbca04 - description: "" -area/plugins: - name: area/plugins - color: fbca04 -area/project: - name: area/project - color: fbca04 -area/rootless: - name: area/rootless - color: fbca04 - description: Rootless mode -area/runtime: - name: area/runtime - color: fbca04 -area/security: - name: area/security - color: fbca04 -area/security/apparmor: - name: area/security/apparmor - color: fbca04 -area/security/seccomp: - name: area/security/seccomp - color: fbca04 -area/security/selinux: - name: area/security/selinux - color: fbca04 -area/security/trust: - name: area/security/trust - color: fbca04 -area/security/userns: - name: area/security/userns - color: fbca04 -area/stack: - name: area/stack - color: fbca04 - description: "" -area/storage: - name: area/storage - color: FBCA04 -area/storage/aufs: - name: area/storage/aufs - color: fbca04 -area/storage/btrfs: - name: area/storage/btrfs - color: fbca04 -area/storage/devicemapper: - name: area/storage/devicemapper - color: FBCA04 -area/storage/overlay: - name: area/storage/overlay - color: fbca04 -area/storage/zfs: - name: area/storage/zfs - color: fbca04 -area/swarm: - name: area/swarm - color: fbca04 -area/systemd: - name: area/systemd - color: fbca04 -area/testing: - name: area/testing - color: fbca04 -area/ux: - name: area/ux - color: fbca04 - description: "" -area/volumes: - name: area/volumes - color: fbca04 -containerd-integration: - name: containerd-integration - color: 586FE8 - description: Issues and PRs related to containerd integration -dco/no: - name: dco/no - color: f7c6c7 - description: Automatically set by a bot when one of the commits lacks proper signature -docs/revisit: - name: docs/revisit - color: "000000" -exp/beginner: - name: exp/beginner - color: 3B8686 -exp/expert: - name: exp/expert - color: 3B8686 -exp/intermediate: - name: exp/intermediate - color: 3B8686 -impact/api: - name: impact/api - color: bfe5bf -impact/changelog: - name: impact/changelog - color: bfe5bf -impact/cli: - name: impact/cli - color: bfe5bf -impact/deprecation: - name: impact/deprecation - color: bfe5bf -impact/dockerfile: - name: impact/dockerfile - color: bfe5bf -impact/documentation: - name: impact/documentation - color: bfe5bf -invalid: - name: invalid - color: ededed -kind/bug: - name: kind/bug - color: FF8C94 - description: Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. -kind/bugfix: - name: kind/bugfix - color: d9faea - description: PR's that fix bugs -kind/duplicate: - name: kind/duplicate - color: "808919" - description: "" -kind/enhancement: - name: kind/enhancement - color: E8CAAF - description: Enhancements are not bugs or new features but can improve usability or performance. -kind/epic: - name: kind/epic - color: F212F9 - description: Epics to track work on related tickets -kind/experimental: - name: kind/experimental - color: bfdadc -kind/feature: - name: kind/feature - color: AAB3AB - description: Functionality or other elements that the project doesn't currently have. Features are new and shiny -kind/question: - name: kind/question - color: EBEFC9 -kind/refactor: - name: kind/refactor - color: d9faea - description: PR's that refactor, or clean-up code -kind/regression: - name: kind/regression - color: FF8C94 - description: "" -platform/arm: - name: platform/arm - color: F6FBFF -platform/desktop: - name: platform/desktop - color: F6FBFF -platform/freebsd: - name: platform/freebsd - color: F6FBFF -platform/ibm-power: - name: platform/ibm-power - color: F6FBFF -platform/ibm-z: - name: platform/ibm-z - color: F6FBFF -platform/mac: - name: platform/mac - color: F6FBFF -platform/windows: - name: platform/windows - color: F6FBFF -priority/P0: - name: priority/P0 - color: e11d21 - description: 'Urgent: Security, critical bugs, blocking issues. drop everything until this issue is addressed.' -priority/P1: - name: priority/P1 - color: eb6420 - description: 'Important: P1 issues are a top priority and a must-have for the next release.' -priority/P2: - name: priority/P2 - color: fad8c7 - description: 'Normal priority: default priority applied.' -priority/P3: - name: priority/P3 - color: fef2c0 - description: 'Best effort: those are nice to have / minor issues.' -process/cherry-pick: - name: process/cherry-pick - color: a98bf3 -process/cherry-pick/20.10: - name: process/cherry-pick/20.10 - color: a98bf3 - description: "" -process/cherry-pick/23.0: - name: process/cherry-pick/23.0 - color: a98bf3 - description: "" -process/cherry-picked: - name: process/cherry-picked - color: bfe5bf -process/merged-to-master: - name: process/merged-to-master - color: bfe5bf -roadmap: - name: roadmap - color: eb6420 -status/0-triage: - name: status/0-triage - color: EEEEEE - description: "" -status/1-design-review: - name: status/1-design-review - color: fef2c0 - description: "" -status/2-code-review: - name: status/2-code-review - color: fad8c7 -status/3-docs-review: - name: status/3-docs-review - color: c7def8 -status/4-merge: - name: status/4-merge - color: d4c5f9 -status/accepted: - name: status/accepted - color: c2e0c6 -status/claimed: - name: status/claimed - color: fef2c0 -status/confirmed: - name: status/confirmed - color: c2e0c6 -status/failing-ci: - name: status/failing-ci - color: "888888" - description: Indicates that the PR in its current state fails the test suite -status/more-info-needed: - name: status/more-info-needed - color: C6A49A -status/needs-attention: - name: status/needs-attention - color: e11d21 - description: Calls for a collective discussion during a review session -status/needs-vendoring: - name: status/needs-vendoring - color: bfdadc -version/1.0: - name: version/1.0 - color: ededed -version/1.1: - name: version/1.1 - color: ededed -version/1.2: - name: version/1.2 - color: ededed -version/1.3: - name: version/1.3 - color: ededed -version/1.4: - name: version/1.4 - color: ededed -version/1.5: - name: version/1.5 - color: ededed -version/1.6: - name: version/1.6 - color: ededed -version/1.7: - name: version/1.7 - color: ededed -version/1.8: - name: version/1.8 - color: ededed -version/1.9: - name: version/1.9 - color: ededed -version/1.10: - name: version/1.10 - color: ededed -version/1.11: - name: version/1.11 - color: ededed -version/1.12: - name: version/1.12 - color: ededed -version/1.13: - name: version/1.13 - color: ededed -version/17.03: - name: version/17.03 - color: ededed -version/17.04: - name: version/17.04 - color: ededed -version/17.05: - name: version/17.05 - color: ededed -version/17.06: - name: version/17.06 - color: ededed -version/17.07: - name: version/17.07 - color: ededed -version/17.09: - name: version/17.09 - color: ededed -version/17.10: - name: version/17.10 - color: ededed -version/17.11: - name: version/17.11 - color: ededed -version/17.12: - name: version/17.12 - color: ededed -version/18.01: - name: version/18.01 - color: ededed -version/18.02: - name: version/18.02 - color: ededed - description: "" -version/18.03: - name: version/18.03 - color: eeeeee - description: "" -version/18.04: - name: version/18.04 - color: eeeeee - description: "" -version/18.05: - name: version/18.05 - color: ededed - description: "" -version/18.06: - name: version/18.06 - color: ededed - description: "" -version/18.09: - name: version/18.09 - color: ededed - description: "" -version/19.03: - name: version/19.03 - color: ededed - description: "" -version/20.10: - name: version/20.10 - color: ededed - description: "" -version/23.0: - name: version/23.0 - color: ededed - description: "" -version/24.0: - name: version/24.0 - color: ededed - description: "" -version/master: - name: version/master - color: ededed -version/unsupported: - name: version/unsupported - color: ededed +- name: version/18.06 + color: ededed + description: "" +- name: kind/bugfix + color: d9faea + description: PR's that fix bugs +- name: status/accepted + color: c2e0c6 +- name: status/confirmed + color: c2e0c6 +- name: version/1.9 + color: ededed +- name: version/unsupported + color: ededed +- name: platform/ibm-power + color: F6FBFF +- name: area/networking/d/macvlan + color: FBCA04 + description: "" +- name: process/cherry-pick + color: a98bf3 +- name: version/1.3 + color: ededed +- name: version/1.7 + color: ededed +- name: version/18.09 + color: ededed + description: "" +- name: area/builder/buildkit + color: fbca04 + description: Issues affecting buildkit +- name: area/networking/firewalld + color: FBCA04 + description: "" +- name: area/plugins + color: fbca04 +- name: status/1-design-review + color: fef2c0 + description: "" +- name: status/needs-attention + color: e11d21 + description: Calls for a collective discussion during a review session +- name: version/18.05 + color: ededed + description: "" +- name: area/lcow + color: fbca04 + description: Issues and PR's related to the experimental LCOW feature +- name: area/networking/firewalling + color: fbca04 + description: "" +- name: docs/revisit + color: "000000" +- name: kind/duplicate + color: "808919" + description: "" +- name: priority/P3 + color: fef2c0 + description: 'Best effort: those are nice to have / minor issues.' +- name: area/contrib + color: fbca04 + description: "" +- name: impact/cli + color: bfe5bf +- name: version/1.6 + color: ededed +- name: area/security/seccomp + color: fbca04 +- name: invalid + color: ededed +- name: area/metrics/prometheus + color: fbca04 + description: "" +- name: area/networking/ipv6 + color: fbca04 + description: Issues related to ipv6 +- name: area/runtime + color: fbca04 +- name: version/1.8 + color: ededed +- name: area/builder/classic-builder + color: fbca04 + description: Issues affecting the classic builder +- name: impact/documentation + color: bfe5bf +- name: version/17.05 + color: ededed +- name: version/20.10 + color: ededed + description: "" +- name: area/packaging + color: fbca04 + description: "" +- name: area/ux + color: fbca04 + description: "" +- name: exp/expert + color: 3B8686 +- name: impact/api + color: bfe5bf +- name: kind/feature + color: AAB3AB + description: Functionality or other elements that the project doesn't currently have. Features are new and shiny +- name: platform/freebsd + color: F6FBFF +- name: status/more-info-needed + color: C6A49A +- name: version/1.4 + color: ededed +- name: area/kernel + color: fbca04 +- name: impact/dockerfile + color: bfe5bf +- name: process/merged-to-master + color: bfe5bf +- name: version/17.12 + color: ededed +- name: area/networking/proxy + color: fbca04 + description: "" +- name: area/performance + color: fbca04 + description: "" +- name: area/networking/ipam + color: FBCA04 + description: "" +- name: kind/bug + color: FF8C94 + description: Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. +- name: platform/mac + color: F6FBFF +- name: roadmap + color: eb6420 +- name: version/17.11 + color: ededed +- name: area/security/trust + color: fbca04 +- name: area/security/selinux + color: fbca04 +- name: version/1.2 + color: ededed +- name: version/17.04 + color: ededed +- name: area/networking + color: fbca04 +- name: platform/desktop + color: F6FBFF +- name: kind/regression + color: FF8C94 + description: "" +- name: area/security/apparmor + color: fbca04 +- name: process/cherry-picked + color: bfe5bf +- name: area/metrics/otel + color: fbca04 + description: "" +- name: platform/arm + color: F6FBFF +- name: platform/ibm-z + color: F6FBFF +- name: priority/P2 + color: fad8c7 + description: 'Normal priority: default priority applied.' +- name: version/1.13 + color: ededed +- name: version/17.06 + color: ededed +- name: version/18.03 + color: eeeeee + description: "" +- name: version/24.0 + color: ededed + description: "" +- name: area/networking/d/ipvlan + color: FBCA04 + description: "" +- name: status/2-code-review + color: fad8c7 +- name: version/1.0 + color: ededed +- name: area/rootless + color: fbca04 + description: Rootless mode +- name: process/cherry-pick/23.0 + color: a98bf3 + description: "" +- name: area/volumes + color: fbca04 +- name: area/swarm + color: fbca04 +- name: impact/deprecation + color: bfe5bf +- name: status/3-docs-review + color: c7def8 +- name: version/1.11 + color: ededed +- name: version/1.12 + color: ededed +- name: version/19.03 + color: ededed + description: "" +- name: area/networking/d/bridge + color: FBCA04 + description: "" +- name: area/docs + color: fbca04 +- name: kind/epic + color: F212F9 + description: Epics to track work on related tickets +- name: kind/experimental + color: bfdadc +- name: area/distribution + color: fbca04 +- name: version/1.1 + color: ededed +- name: version/18.04 + color: eeeeee + description: "" +- name: version/23.0 + color: ededed + description: "" +- name: kind/enhancement + color: E8CAAF + description: Enhancements are not bugs or new features but can improve usability or performance. +- name: area/storage/btrfs + color: fbca04 +- name: area/storage/overlay + color: fbca04 +- name: kind/question + color: EBEFC9 +- name: platform/windows + color: F6FBFF +- name: process/cherry-pick/24.0 + color: a98bf3 + description: "" +- name: status/4-merge + color: d4c5f9 +- name: status/failing-ci + color: "888888" + description: Indicates that the PR in its current state fails the test suite +- name: area/security + color: fbca04 +- name: version/17.03 + color: ededed +- name: area/storage + color: FBCA04 +- name: kind/refactor + color: d9faea + description: PR's that refactor, or clean-up code +- name: priority/P1 + color: eb6420 + description: 'Important: P1 issues are a top priority and a must-have for the next release.' +- name: process/cherry-pick/20.10 + color: a98bf3 + description: "" +- name: version/17.07 + color: ededed +- name: version/17.09 + color: ededed +- name: area/stack + color: fbca04 + description: "" +- name: containerd-integration + color: 586FE8 + description: Issues and PRs related to containerd integration +- name: status/claimed + color: fef2c0 +- name: version/17.10 + color: ededed +- name: version/master + color: ededed +- name: area/logging + color: fbca04 +- name: area/builder + color: fbca04 +- name: area/daemon + color: fbca04 +- name: area/security/userns + color: fbca04 +- name: exp/beginner + color: 3B8686 +- name: version/1.10 + color: ededed +- name: area/api + color: fbca04 +- name: area/cli + color: fbca04 +- name: area/metrics + color: fbca04 + description: "" +- name: area/networking/tc + color: FBCA04 + description: "" +- name: dco/no + color: f7c6c7 + description: Automatically set by a bot when one of the commits lacks proper signature +- name: exp/intermediate + color: 3B8686 +- name: area/authentication + color: fbca04 + description: "" +- name: area/project + color: fbca04 +- name: status/needs-vendoring + color: bfdadc +- name: version/18.01 + color: ededed +- name: area/networking/dns + color: FBCA04 + description: "" +- name: area/networking/d/overlay + color: fbcA04 + description: "" +- name: area/networking/portmapping + color: FBCA04 + description: "" +- name: area/storage/aufs + color: fbca04 +- name: area/storage/devicemapper + color: FBCA04 +- name: area/storage/zfs + color: fbca04 +- name: area/testing + color: fbca04 +- name: priority/P0 + color: e11d21 + description: 'Urgent: Security, critical bugs, blocking issues. drop everything until this issue is addressed.' +- name: area/cgroup2 + color: fbca04 + description: cgroup v2 +- name: version/1.5 + color: ededed +- name: version/18.02 + color: ededed + description: "" +- name: status/0-triage + color: EEEEEE + description: "" +- name: area/systemd + color: fbca04 +- name: impact/changelog + color: bfe5bf +- name: area/images + color: fbca04 diff --git a/labels/labels.go b/labels/labels.go index 33ea24a..2477e26 100644 --- a/labels/labels.go +++ b/labels/labels.go @@ -38,4 +38,26 @@ func (l *Label) ToGitHub() *github.Label { } } -type Labels map[string]Label +type Labels []Label + +func (ls Labels) ToMap() LabelsMap { + lm := make(LabelsMap) + + for _, l := range ls { + lm[l.Name] = l + } + + return lm +} + +type LabelsMap map[string]Label + +func (lm LabelsMap) ToSlice() Labels { + ls := Labels{} + + for _, l := range lm { + ls = append(ls, l) + } + + return ls +}