Skip to content
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

Merged
merged 1 commit into from
Jul 27, 2024
Merged

ga label #102

merged 1 commit into from
Jul 27, 2024

Conversation

ttizze
Copy link
Owner

@ttizze ttizze commented Jul 27, 2024

Summary by CodeRabbit

## リリースノート

### 変更内容

- Refactor: GitHubラベルの名前と説明を簡略化し、新しいラベル(`refactor`, `chore`, `documentation`)を追加しました。
- Chore: ユーザーに追加を促すラベルの形式を簡略化し、コメントメッセージを更新しました。
- Chore: `VALID_LABELS`の定義をスペース区切りからパイプ区切りに変更し、`grep`コマンドで正規表現を使用するように修正しました。`question`ラベルを削除し、コメントの末尾に改行を追加しました。

@ttizze ttizze merged commit 4e57b57 into main Jul 27, 2024
8 of 10 checks passed
@ttizze ttizze deleted the fix/autolabel branch July 27, 2024 08:16
@github-actions github-actions bot added the bug Something isn't working as expected label Jul 27, 2024
Copy link

github-actions bot commented Jul 27, 2024

Image description CodeRabbit

### ウォークスルー
この変更は、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 Pro

CodeRabbit Pro

If 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.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between 88c0169 and cffa813 commits.
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 Image description 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.

Comment on lines +47 to +48
VALID_LABELS="bug|feature|enhancement|documentation|refactor|chore"
BRANCH_LABEL=$(echo "$LABELS" | tr ' ' '\n' | grep -m1 -E "$VALID_LABELS")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

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")

Comment on lines +18 to 21
"name": "question",
"color": "d876e3",
"description": "Further information is requested"
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

questionラベルは削除されるべきですが、ここではまだ存在しています。.github/workflows/create-branch-on-issue-assign.ymlの変更と矛盾しています。

-        "name": "question",
-        "color": "d876e3",
-        "description": "Further information is requested"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant