Skip to content

Commit 16dc216

Browse files
authored
chore(ci): rename benchmark/ branch prefix to chore/ (#1044)
The benchmark workflow was creating PR branches under a benchmark/ prefix that is not in the guard-git.sh allow-list, blocking local sessions from pushing fixes to those PRs without working around the hook. Rename all auto-generated branches to use the standard chore/ prefix (chore/bench-v${VERSION}-..., chore/embedding-bench-...) and drop benchmark/ from the commitlint allow-list since no workflow creates such branches anymore.
1 parent e9fd336 commit 16dc216

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
git config user.name "github-actions[bot]"
8383
git config user.email "github-actions[bot]@users.noreply.github.com"
8484
85-
BRANCH="benchmark/v${VERSION}-$(date +%Y%m%d-%H%M%S)"
85+
BRANCH="chore/bench-v${VERSION}-$(date +%Y%m%d-%H%M%S)"
8686
git checkout -b "$BRANCH"
8787
git add generated/benchmarks/BUILD-BENCHMARKS.md generated/benchmarks/QUERY-BENCHMARKS.md generated/benchmarks/INCREMENTAL-BENCHMARKS.md README.md
8888
git commit -m "docs: update performance benchmarks (${VERSION})"
@@ -249,9 +249,9 @@ jobs:
249249
git config user.email "github-actions[bot]@users.noreply.github.com"
250250
251251
if [ "$VERSION" = "dev" ]; then
252-
BRANCH="benchmark/embedding-dev-$(date +%Y%m%d-%H%M%S)"
252+
BRANCH="chore/embedding-bench-dev-$(date +%Y%m%d-%H%M%S)"
253253
else
254-
BRANCH="benchmark/embedding-v${VERSION}-$(date +%Y%m%d-%H%M%S)"
254+
BRANCH="chore/embedding-bench-v${VERSION}-$(date +%Y%m%d-%H%M%S)"
255255
fi
256256
git checkout -b "$BRANCH"
257257
git add generated/benchmarks/EMBEDDING-BENCHMARKS.md

.github/workflows/commitlint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
- name: Check branch name
3333
run: |
3434
BRANCH="${{ github.head_ref }}"
35-
PATTERN="^(feat|fix|docs|refactor|test|chore|ci|perf|build|release|dependabot|revert|benchmark)/"
35+
PATTERN="^(feat|fix|docs|refactor|test|chore|ci|perf|build|release|dependabot|revert)/"
3636
if [[ ! "$BRANCH" =~ $PATTERN ]]; then
3737
echo "::error::Branch name '$BRANCH' does not match the required pattern."
38-
echo "Branch names must start with one of: feat/, fix/, docs/, refactor/, test/, chore/, ci/, perf/, build/, release/, dependabot/, revert/, benchmark/"
38+
echo "Branch names must start with one of: feat/, fix/, docs/, refactor/, test/, chore/, ci/, perf/, build/, release/, dependabot/, revert/"
3939
exit 1
4040
fi
4141
echo "Branch name '$BRANCH' is valid."

0 commit comments

Comments
 (0)