方法
submitコマンドに--title --bodyを加えることでプルリクエストのタイトルや内容を指定できます。
gs branch submit \
--title "Add user authentication" \
--body "This PR implements OAuth2 authentication for user login"
例
# 通常のPR作成
gs branch submit \
--title "Implement user profile API" \
--body "Add REST API endpoints for user profile management
Features:
- GET /api/profile - Get user profile
- PUT /api/profile - Update user profile
- Validation and error handling included"
# ドラフトPRとして作成
gs branch submit \
--title "WIP: Database migration" \
--body "Work in progress for user table schema updates" \
--draft
参考