Skip to content

Commit 7107cf1

Browse files
nsheapsclaude
andcommitted
fix: rename formula to git-wt and fix checkout credentials
- Rename formula from worktree-switcher to git-wt - Add persist-credentials: false to use GitHub App auth for push - Install binary as git-wt (renamed from worktree-switcher) Co-Authored-By: Claude Code (User Settings, in: ${CLAUDE_PROJECT_DIR}) <noreply@anthropic.com>
1 parent 0753c1c commit 7107cf1

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/release.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
runs-on: ubuntu-latest
6868
steps:
6969
- uses: actions/checkout@v4
70+
with:
71+
persist-credentials: false
7072

7173
- name: Get job context
7274
id: context
@@ -98,11 +100,11 @@ jobs:
98100
- name: Update formula
99101
run: |
100102
cd homebrew-devsetup
101-
cat > Formula/worktree-switcher.rb << FORMULA_EOF
103+
cat > Formula/git-wt.rb << FORMULA_EOF
102104
# typed: false
103105
# frozen_string_literal: true
104106
105-
class WorktreeSwitcher < Formula
107+
class GitWt < Formula
106108
desc "Interactive TUI for git worktree management"
107109
homepage "https://github.com/nsheaps/git-wt"
108110
url "https://github.com/nsheaps/git-wt/releases/download/${{ steps.release.outputs.tag }}/worktree-switcher"
@@ -120,19 +122,19 @@ jobs:
120122
121123
def install
122124
if build.head?
123-
bin.install "bin/worktree-switcher"
125+
bin.install "bin/worktree-switcher" => "git-wt"
124126
else
125-
bin.install "worktree-switcher"
127+
bin.install "worktree-switcher" => "git-wt"
126128
end
127129
end
128130
129131
test do
130-
assert_match "worktree-switcher", shell_output("#{bin}/worktree-switcher --help")
132+
assert_match "worktree-switcher", shell_output("#{bin}/git-wt --help")
131133
end
132134
end
133135
FORMULA_EOF
134136
# Remove leading whitespace from heredoc
135-
sed -i 's/^ //' Formula/worktree-switcher.rb
137+
sed -i 's/^ //' Formula/git-wt.rb
136138
137139
- name: Create PR to update formula with auto-merge
138140
env:
@@ -142,10 +144,10 @@ jobs:
142144
TAG: ${{ steps.release.outputs.tag }}
143145
run: |
144146
cd homebrew-devsetup
145-
BRANCH="bump-worktree-switcher-${VERSION}"
147+
BRANCH="bump-git-wt-${VERSION}"
146148
git checkout -b "$BRANCH"
147-
git add Formula/worktree-switcher.rb
148-
git commit -m "chore: update worktree-switcher to ${VERSION}"
149+
git add Formula/git-wt.rb
150+
git commit -m "chore: update git-wt to ${VERSION}"
149151
git push -u origin "$BRANCH"
150152
151153
# Create PR body file
@@ -157,7 +159,7 @@ jobs:
157159
echo "**Workflow:** ${JOB_URL}" >> /tmp/pr-body.md
158160
159161
PR_URL=$(gh pr create \
160-
--title "chore: update worktree-switcher to ${VERSION}" \
162+
--title "chore: update git-wt to ${VERSION}" \
161163
--body-file /tmp/pr-body.md \
162164
--base main)
163165
# Enable auto-merge with squash

0 commit comments

Comments
 (0)