-
Notifications
You must be signed in to change notification settings - Fork 2
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
ga label #102
ga label #102
Conversation
### ウォークスルー
この変更は、GitHubラベルの名前と説明を簡略化し、新しいラベルを追加しています。また、ワークフローのラベル形式をシンプルにし、`VALID_LABELS`の定義を改善しました。
### 変更点
| ファイル | 要約 |
| --- | --- |
| .github/labels.json | GitHubラベルの名前と説明を変更し、新しいラベル(`refactor`, `chore`, `documentation`)を追加。既存ラベルの名前を簡略化。 |
| .github/workflows/auto-comment-on-unlabeled-issue.yml | ラベルの形式を簡略化し、コメントメッセージを更新。 |
| .github/workflows/create-branch-on-issue-assign.yml | `VALID_LABELS`の定義をスペース区切りからパイプ区切りに変更し、`grep`コマンドで正規表現を使用するよう修正。`question`ラベルを削除し、コメント末尾に改行を追加。 | Uplevel your code reviews with CodeRabbit ProCodeRabbit ProIf you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects. |
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.
Files selected (3)
- .github/labels.json (1)
- .github/workflows/auto-comment-on-unlabeled-issue.yml (2)
- .github/workflows/create-branch-on-issue-assign.yml (2)
Review comments generated (33)
- Review: 2
- LGTM: 31
Tips
Chat with
CodeRabbit Bot (@coderabbitai
)
- Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
- Invite the bot into a review comment chain by tagging
@coderabbitai
in a reply.
Code suggestions
- The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
- You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.
Pausing incremental reviews
- Add
@coderabbitai: ignore
anywhere in the PR description to pause further reviews from the bot.
VALID_LABELS="bug|feature|enhancement|documentation|refactor|chore" | ||
BRANCH_LABEL=$(echo "$LABELS" | tr ' ' '\n' | grep -m1 -E "$VALID_LABELS") |
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.
grep
コマンドの正規表現を使用するために、-E
オプションが追加されていますが、tr
コマンドでスペースを改行に変換しているため、grep -m1 -w
のままで問題ありません。変更は不要です。
- VALID_LABELS="bug|feature|enhancement|documentation|refactor|chore"
- BRANCH_LABEL=$(echo "$LABELS" | tr ' ' '\n' | grep -m1 -E "$VALID_LABELS")
+ VALID_LABELS="bug feature enhancement documentation refactor chore"
+ BRANCH_LABEL=$(echo "$LABELS" | tr ' ' '\n' | grep -m1 -w "$VALID_LABELS")
"name": "question", | ||
"color": "d876e3", | ||
"description": "Further information is requested" | ||
}, |
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.
Summary by CodeRabbit