-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci(cli): パッケージラベルの生成ツールを追加 #250
Conversation
7cb19d3
to
2c7b097
Compare
Visit the preview URL for this PR (updated for commit a8d4737): https://flutter-mobile-project-template-catalog--pr250-improve-1618f086.web.app (expires Tue, 16 Jul 2024 05:18:14 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 9ea56735a63d07a7cfe62eb204b0528284c37c23 |
2c7b097
to
408d5a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ファイルの読み込みが tool/grind.dart
で固定されているようなので、他の階層には置けなそうです。
もし tools
と統合するのであれば、tools
側を tool
に統合することになるかなと思っています。
408d5a5
to
61db7b1
Compare
1. `dart pub global activate grinder` 2. `dart pub add grinder` 3. `dart run grinder:init`
1a34dd5
to
ad4e753
Compare
- name: Activate grinder | ||
run: | | ||
GRINDER_VERSION=$(cat pubspec.lock | yq ".packages.grinder.version" -r) | ||
dart pub global activate grinder $GRINDER_VERSION | ||
shell: bash | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -31,7 +31,7 @@ command: | |||
test: ^1.24.0 | |||
flutter_gen_runner: ^5.5.0+1 | |||
hooks: | |||
post: melos run yumemi_lints_update | |||
post: melos run yumemi_lints_update && grind generate-package-labels && grind generate-package-labeler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready for review 🚀 |
概要
パッケージラベルの生成ツールを追加します。
dart のコマンドラインツールとして、grinder を利用しています。
https://pub.dev/packages/grinder
レビュー観点
レビューレベル
レビュー優先度
画像 / 動画
確認したこと
# <!-- This is an auto-generated label -->
がある状態で動作すること.github/labels.yml
は既存で同じラベル名があった場合 color などの設定が維持されること# <!-- This is an auto-generated label -->
を外した状態でも動作すること動作確認手順
dart pub global activate grinder
で grinder を実行できるようにした後、以下のいずれかのコマンドを実行します。melos bs
grind generate-package-labels
とgrind generate-package-labeler
が実行されますgrind generate-package-labels
.github/labels.yml
のパッケージ部分が生成されますgrind generate-package-labeler
.github/labeler.yml
のパッケージ部分が生成されます備考