Skip to content

Commit df2f75b

Browse files
Improve rebase workflow
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com> Generated-by: Cursor AI
1 parent d6d2755 commit df2f75b

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.claude/skills/test-pr.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ Verify that the che-code-rebase-bot pipeline works end-to-end by making a trivia
3636
gh pr create \
3737
--repo TARGET_REPO \
3838
--title "[rebase-bot]: test pipeline verification" \
39-
--body "Automated test PR created by che-code-rebase-bot to verify the pipeline works end-to-end. Safe to close."
39+
--body "Automated test PR created by che-code-rebase-bot to verify the pipeline works end-to-end. Safe to close.
40+
41+
### What issues does this PR fix?
42+
ISSUE_REF"
4043
```
4144

4245
6. **Print the result**: output the PR URL so the orchestrator can capture it.

.github/workflows/trigger-rebase.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
issue_comment:
1919
types: [created]
2020

21+
# Where the PR should be created (upstream repo)
22+
env:
23+
PR_TARGET_REPO: RomanNikitenko/che-code
24+
2125
jobs:
2226
trigger-rebase:
2327
if: >-
@@ -85,7 +89,8 @@ jobs:
8589
working-directory: dw-claude-runner
8690
env:
8791
PROJECT_URL: '"https://github.com/${{ github.repository }}.git"'
88-
TARGET_REPO: ${{ github.repository }}
92+
TARGET_REPO: ${{ env.PR_TARGET_REPO }}
93+
ISSUE_REF: "https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}"
8994
SKILL_SOURCE: target_project
9095
SKILL_PATH: .claude/skills/test-pr.md
9196
run: |

0 commit comments

Comments
 (0)