Skip to content

Commit d73d3b7

Browse files
authored
Merge pull request #264 from fluxcd/sync-labels
ci: Add `sync-labels` workflow and backport label
2 parents 5bed368 + 1378aef commit d73d3b7

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/dependabot.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: 2
22

33
updates:
44
- package-ecosystem: "gomod"
5+
labels: ["dependencies"]
56
directory: "/"
67
schedule:
78
interval: "monthly"
@@ -20,6 +21,7 @@ updates:
2021
- dependency-name: "k8s.io/*"
2122
- dependency-name: "sigs.k8s.io/*"
2223
- package-ecosystem: "github-actions"
24+
labels: ["dependencies"]
2325
directory: "/"
2426
schedule:
2527
interval: "monthly"
@@ -28,6 +30,7 @@ updates:
2830
patterns:
2931
- "*"
3032
- package-ecosystem: "docker"
33+
labels: ["dependencies"]
3134
directory: "/"
3235
schedule:
3336
interval: "monthly"

.github/labels.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Configuration file to declaratively configure labels
2+
# Ref: https://github.com/EndBug/label-sync#Config-files
3+
4+
- name: area/generator
5+
description: Artifact generation related issues and pull requests
6+
color: '#00b140'
7+
- name: area/storage
8+
description: Artifact storage related issues and pull requests
9+
color: '#4b0082'
10+
- name: backport:release/v2.0.x
11+
description: To be backported to release/v2.0.x
12+
color: '#ffd700'
13+

.github/workflows/labels-sync.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: sync-labels
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- .github/labels.yaml
9+
jobs:
10+
sync-labels:
11+
permissions:
12+
issues: write
13+
contents: read
14+
uses: fluxcd/gha-workflows/.github/workflows/labels-sync.yaml@v0.0.1

0 commit comments

Comments
 (0)