chore: try different way to raise PR in raise-rc-pr workflow#1441
chore: try different way to raise PR in raise-rc-pr workflow#1441onlyjackfrost merged 1 commit intomainfrom
Conversation
WalkthroughThe changes update the GitHub Actions workflow by adding new permissions and several steps. The workflow now shows the git status and diff to provide visibility into changes. It commits only if there are modifications and installs the GitHub CLI to create a pull request. A new step is added to verify branch differences before attempting PR creation, and a fallback PR creation step is provided if the new method fails. Changes
Sequence Diagram(s)sequenceDiagram
participant Workflow as GitHub Action Workflow
participant Git as Git CLI
participant GHCLI as GitHub CLI
participant PRSys as Pull Request System
Workflow ->> Git: Display git status & git diff
alt Changes detected
Workflow ->> Git: Commit changes (if any)
Workflow ->> GHCLI: Install and invoke GitHub CLI for PR creation
alt PR creation successful
GHCLI ->> PRSys: Create Pull Request
else PR creation fails
Workflow ->> PRSys: Fallback - Create Pull Request using original step
end
else No changes detected
Workflow ->> Workflow: Exit with error message
end
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
d1d23b3 to
1129428
Compare
fix release rc pr workflow
Summary by CodeRabbit