-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #598 from fluxcd/sync-labels
Declaratively define (and sync) labels
- Loading branch information
Showing
3 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Configuration file to declaratively configure labels | ||
# Ref: https://github.com/EndBug/label-sync#Config-files | ||
|
||
- name: area/actions | ||
description: GitHub Actions related issues and pull requests | ||
color: '#00b140' | ||
- name: area/git | ||
description: Git and SSH related issues and pull requests | ||
color: '#863faf' | ||
- name: area/helm | ||
description: Helm related issues and pull requests | ||
color: '#1673b6' | ||
- name: area/http | ||
description: HTTP transport related issues and pull requests | ||
color: '#006b75' | ||
- name: area/oci | ||
description: OCI related issues and pull requests | ||
color: '#c739ff' | ||
- name: area/kustomize | ||
description: Kustomize related issues and pull requests | ||
color: '#00e54d' | ||
- name: area/runtime | ||
description: Controller runtime related issues and pull requests | ||
color: '#00e54d' | ||
- name: area/server-side-apply | ||
description: SSA related issues and pull requests | ||
color: '#2819CB' | ||
- name: area/testserver | ||
description: Test server related issues and pull requests | ||
color: '#006b75' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: sync-labels | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/labels.yaml | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
labels: | ||
name: Run sync | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
- uses: EndBug/label-sync@da00f2c11fdb78e4fae44adac2fdd713778ea3e8 # v2.3.2 | ||
with: | ||
# Configuration file | ||
config-file: | | ||
https://raw.githubusercontent.com/fluxcd/community/main/.github/standard-labels.yaml | ||
.github/labels.yaml | ||
# Strictly declarative | ||
delete-other-labels: true |