Skip to content

Instantly share code, notes, and snippets.

@Na0ki
Created March 24, 2025 14:20
Show Gist options
  • Save Na0ki/f7f84a8baaa77f34d34be3ef07877bc0 to your computer and use it in GitHub Desktop.
Save Na0ki/f7f84a8baaa77f34d34be3ef07877bc0 to your computer and use it in GitHub Desktop.
sprint/xxxブランチからdevelopブランチへPRを作るやつ
#!/bin/bash
SPRINT_NUM="$(git branch --remote --list "origin/sprint/*" | awk -F '/' '{print $3}' | sort -n -r | head -1)"
echo "sprint/$SPRINT_NUM"
gh pr create --base develop --head "sprint/$SPRINT_NUM" --title "sprint/$SPRINT_NUM -> main" --body "検証反映"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment