[llvm] [workflows] Delete user branches that are too long (PR #82845)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 17:19:31 PST 2024


================
@@ -0,0 +1,33 @@
+name: User Branch Rules
+
+permissions:
+  contents: read
+
+
+on:
+  push:
+    branches:
+      - 'users/**'
+
+
+jobs:
+  user-branch-rules:
+    if: github.repository_owner == 'llvm'
+    permissions:
+      contents: write
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check branch length
+        env:
+          GITHUB_TOKEN: ${{ github.token }}
+          MAX_BRANCH_LENGTH: 200
----------------
tstellar wrote:

Can you control the branch name at all or does it always add the commit summary?

https://github.com/llvm/llvm-project/pull/82845


More information about the llvm-commits mailing list