summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2025-01-19 01:41:46 +0100
committerPeder Bergebakken Sundt <pbsds@hotmail.com>2025-01-20 12:35:38 +0100
commit8ed4f7b5a62b2e41606eb66b4c5f6d142f46370b (patch)
tree2cc1e00578b6377c5900f4eb856a7a251e494c58
parentmlx42: fix build with clang (#373838) (diff)
downloadnixpkgs-8ed4f7b5a62b2e41606eb66b4c5f6d142f46370b.tar.gz
workflows/labels: add a `sync-labels: false` step, migrate some rules
-rw-r--r--.github/labeler-no-sync.yml21
-rw-r--r--.github/labeler.yml22
-rw-r--r--.github/workflows/labels.yml6
3 files changed, 30 insertions, 19 deletions
diff --git a/.github/labeler-no-sync.yml b/.github/labeler-no-sync.yml
new file mode 100644
index 000000000000..12080d64b134
--- /dev/null
+++ b/.github/labeler-no-sync.yml
@@ -0,0 +1,21 @@
+# This file is used by .github/workflows/labels.yml
+# This version uses `sync-labels: false`, meaning that a non-match will NOT remove the label
+
+"6.topic: policy discussion":
+ - any:
+ - changed-files:
+ - any-glob-to-any-file:
+ - .github/**/*
+ - CONTRIBUTING.md
+ - pkgs/README.md
+ - nixos/README.md
+ - maintainers/README.md
+ - lib/README.md
+ - doc/README.md
+
+"8.has: documentation":
+ - any:
+ - changed-files:
+ - any-glob-to-any-file:
+ - doc/**/*
+ - nixos/doc/**/*
diff --git a/.github/labeler.yml b/.github/labeler.yml
index cf00b6e3e4b6..90b46911e74a 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -1,3 +1,6 @@
+# This file is used by .github/workflows/labels.yml
+# This version uses `sync-labels: true`, meaning that a non-match will remove the label
+
# NOTE: bsd, darwin and cross-compilation labels are handled by ofborg
"6.topic: agda":
- any:
@@ -387,18 +390,6 @@
- pkgs/test/php/default.nix
- pkgs/top-level/php-packages.nix
-"6.topic: policy discussion":
- - any:
- - changed-files:
- - any-glob-to-any-file:
- - .github/**/*
- - CONTRIBUTING.md
- - pkgs/README.md
- - nixos/README.md
- - maintainers/README.md
- - lib/README.md
- - doc/README.md
-
"6.topic: printing":
- any:
- changed-files:
@@ -572,13 +563,6 @@
- any-glob-to-any-file:
- nixos/doc/manual/release-notes/**/*
-"8.has: documentation":
- - any:
- - changed-files:
- - any-glob-to-any-file:
- - doc/**/*
- - nixos/doc/**/*
-
"8.has: module (update)":
- any:
- changed-files:
diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml
index 80a186bbfa62..0ae4ee09d5ca 100644
--- a/.github/workflows/labels.yml
+++ b/.github/workflows/labels.yml
@@ -22,4 +22,10 @@ jobs:
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
+ configuration-path: .github/labeler.yml # default
sync-labels: true
+ - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ configuration-path: .github/labeler-no-sync.yml
+ sync-labels: false