🎉 Smithery is now a part of Arcade.dev! Read more in our announcement here
Push branch and create GitHub PR
Get current feature from branch:
BRANCH=$(git rev-parse --abbrev-ref HEAD) NUM=$(echo "$BRANCH" | grep -oE 'alg-([0-9]+)' | grep -oE '[0-9]+')
Run verification:
npm run type-check --workspaces --if-present npm test --workspaces --if-present
If verification fails, stop and report errors. Do NOT proceed to create a PR with failing checks.
Push branch to remote:
git push -u origin $BRANCH
Generate PR title using Conventional Commits:
specs/alg-${NUM}-*/spec.md
feat(scope): short description
feat
fix
refactor
perf
docs
chore
feat(search):
fix(auth):
Create PR with gh CLI (following .github/PULL_REQUEST_TEMPLATE.md):
.github/PULL_REQUEST_TEMPLATE.md
gh pr create \ --title "${TITLE}" \ --body "## Summary Resolves [ALG-${NUM}](https://linear.app/algojuke/issue/ALG-${NUM}) See [spec.md](specs/alg-${NUM}-*/spec.md) for full specification. ## Changes $(git log main..HEAD --oneline) ## Verification - [x] Type check passes - [x] Tests pass "
Output the PR URL for the user.
gh pr create
gh pr view