From 985a8e980a187d55e5684e0aa0a20d427e9de6a7 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 22 Sep 2023 20:11:02 +0200 Subject: [PATCH] ci: only apply labels when opening a PR The problem with the default behavior is that it's simply too aggressive. It will re-apply a label that a maintianer have removed every time the PR is updated, making it impossible to manually adjust labels that doesn't fit exactly according to the labeler rules. --- .github/workflows/label.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index b29e0f70..49e90d61 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -8,7 +8,9 @@ # For inspiration see: https://github.com/NixOS/nixpkgs/blob/master/.github/workflows/labels.yml name: Labeler -on: [pull_request_target] +on: + pull_request_target: + types: [opened] jobs: label: