Skip to content

feat: replace curl/GITLAB_TOKEN with glab CLI in init script#20

Merged
h13 merged 1 commit intomainfrom
feat/glab-init
Mar 28, 2026
Merged

feat: replace curl/GITLAB_TOKEN with glab CLI in init script#20
h13 merged 1 commit intomainfrom
feat/glab-init

Conversation

@h13
Copy link
Copy Markdown
Owner

@h13 h13 commented Mar 28, 2026

Summary

  • scripts/init.sh の GitLab 側を curl + GITLAB_TOKEN から glab CLI に置換
  • GitHub(gh)と GitLab(glab)で対称的な構造に統一
  • GITLAB_TOKEN 環境変数の手動設定が不要に(glab auth login で認証管理)
  • README en/ja の init 手順を更新

Test plan

  • pnpm run check が通ること
  • GitLab リポで ./scripts/init.sh --title "test" --gcp-project 164302421095 が動作すること
  • GitHub リポでの init.sh が既存の gh ベースの動作を維持していること

- GitLab helpers now use glab CLI instead of curl + GITLAB_TOKEN
- Platform detection uses gh/glab auth status instead of URL pattern matching
- Replace eval with declare -g for dynamic variable assignment
- Deduplicate init.sh examples in README (en/ja)
@h13 h13 force-pushed the feat/glab-init branch from 1e85447 to a515c8d Compare March 28, 2026 02:10
@h13 h13 merged commit e26de82 into main Mar 28, 2026
4 checks passed
@h13 h13 deleted the feat/glab-init branch March 28, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant