[llvm] [github] Make branch workflow more robust (PR #66781)

Danila Malyutin via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 07:48:29 PDT 2023


https://github.com/danilaml created https://github.com/llvm/llvm-project/pull/66781

Avoid false positives by requiring space after `/branch` command so the action won't trigger on diffs that include filenames like `.../BranchProbabilityInfo.cpp`.

>From d2f2c07089f2c67c9203587793634c11d757be26 Mon Sep 17 00:00:00 2001
From: Danila Malyutin <danilaml at users.noreply.github.com>
Date: Tue, 19 Sep 2023 17:29:16 +0300
Subject: [PATCH] [github] Make branch workflow more robust

Avoid false positives by requiring space after `/branch` command so the action won't trigger on diffs that include filenames like `.../BranchProbabilityInfo.cpp`.
---
 .github/workflows/issue-release-workflow.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml
index bd6d09cc65e0857..b09ef6555fa9017 100644
--- a/.github/workflows/issue-release-workflow.yml
+++ b/.github/workflows/issue-release-workflow.yml
@@ -70,7 +70,7 @@ jobs:
     if: >-
       (github.repository == 'llvm/llvm-project') &&
       !startswith(github.event.comment.body, '<!--IGNORE-->') &&
-      contains(github.event.comment.body, '/branch')
+      contains(github.event.comment.body, '/branch ')
 
     steps:
       - name: Fetch LLVM sources



More information about the llvm-commits mailing list