-
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
readmeの更新 #100
readmeの更新 #100
Conversation
- **ウォークスルー**: README.mdの内容が更新され、プロジェクトの概要と機能リストが修正されました。また、GitHub Actionsのワークフローに手動トリガー機能が追加され、ブランチ名からissue番号を抽出するロジックが改善されました。
- **変更点**:
| ファイル | 要約 |
| --- | --- |
| README.md | プロジェクトの概要と機能リストの修正、翻訳機能やインターフェースに関する説明の簡略化、新たな脚注や解説の追加。 |
| .github/workflows/link-pr-to-issue.yml | `ISSUE_NUMBER`の抽出失敗時のエラー無視、`workflow_dispatch`イベントの追加、手動トリガー時のプルリクエスト番号入力機能、ブランチ名からissue番号を抽出するロジックの更新。 | 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 (1)
- README.md (1)
Files skipped from review due to trivial changes (1)
- README.md
Review comments generated (0)
- Review: 0
- LGTM: 0
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.
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 (1)
- .github/workflows/link-pr-to-issue.yml (1)
Review comments generated (1)
- Review: 1
- LGTM: 0
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.
@@ -12,7 +12,7 @@ jobs: | |||
id: extract-issue | |||
run: | | |||
BRANCH_NAME="${{ github.head_ref }}" | |||
ISSUE_NUMBER=$(echo $BRANCH_NAME | grep -oP 'issue-\K\d+') | |||
ISSUE_NUMBER=$(echo $BRANCH_NAME | grep -oP 'issue-\K\d+' || true) |
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.
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 (1)
- .github/workflows/link-pr-to-issue.yml (2)
Review comments generated (2)
- Review: 1
- LGTM: 1
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.
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | ||
PR_NUMBER="${{ github.event.inputs.pr_number }}" | ||
BRANCH_NAME=$(gh pr view $PR_NUMBER --json headRefName -q .headRefName) | ||
else | ||
BRANCH_NAME="${{ github.head_ref }}" | ||
fi | ||
ISSUE_NUMBER=$(echo $BRANCH_NAME | grep -oP 'issue-\K\d+' || true) |
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.
gh pr view
コマンドの実行に失敗した場合、スクリプトがエラーで停止する可能性があります。これを防ぐために、エラーハンドリングを追加することをお勧めします。
+ set -e
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
PR_NUMBER="${{ github.event.inputs.pr_number }}"
+ BRANCH_NAME=$(gh pr view $PR_NUMBER --json headRefName -q .headRefName || echo "")
else
BRANCH_NAME="${{ github.head_ref }}"
fi
ISSUE_NUMBER=$(echo $BRANCH_NAME | grep -oP 'issue-\K\d+' || true)
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 (1)
- .github/workflows/link-pr-to-issue.yml (1)
Review comments generated (2)
- Review: 1
- LGTM: 1
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.
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
BRANCH_NAME="${{ github.head_ref }}" | ||
ISSUE_NUMBER=$(echo $BRANCH_NAME | grep -oP 'issue-\K\d+') | ||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | ||
PR_NUMBER="${{ github.event.inputs.pr_number }}" | ||
BRANCH_NAME=$(gh pr view $PR_NUMBER --json headRefName -q .headRefName) | ||
else | ||
BRANCH_NAME="${{ github.head_ref }}" | ||
fi |
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