[llvm-branch-commits] [llvm] PR for llvm/llvm-project#80348 (PR #80585)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Feb 3 21:48:35 PST 2024


https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/80585

resolves llvm/llvm-project#80348

>From 705f5fb1af07ac52acb9c13375c9cea3a201440c Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Sat, 3 Feb 2024 21:42:40 -0800
Subject: [PATCH] [workflows] Only run code formatter on the main branch
 (#80348)

Modifying a cherry-picked patch to fix code formatting issues can be
risky, so we don't typically do this. Therefore, it's not necessary to
run this job on the release branches.

(cherry picked from commit 2193c95e2459887e7e6e4f9f4aacf9252e99858f)
---
 .github/workflows/pr-code-format.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/pr-code-format.yml b/.github/workflows/pr-code-format.yml
index 5223089ee8a93..c8fd541fd34db 100644
--- a/.github/workflows/pr-code-format.yml
+++ b/.github/workflows/pr-code-format.yml
@@ -1,5 +1,8 @@
 name: "Check code formatting"
 on: pull_request_target
+  branches:
+    - main
+
 permissions:
   pull-requests: write
 



More information about the llvm-branch-commits mailing list