Skip to content

Commit fc34876

Browse files
Add test skill
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com> Generated-by: Cursor AI
1 parent d1e61ba commit fc34876

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.claude/skills/test-pr.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Skill: Test PR
2+
3+
You are working inside a project repository at /projects/che-code.
4+
5+
## Goal
6+
7+
Verify that the che-code-rebase-bot pipeline works end-to-end by making a trivial change, pushing a branch, and opening a pull request.
8+
9+
## Steps
10+
11+
1. **Configure git identity** (if not already set):
12+
```bash
13+
git config user.name "che-code-rebase-bot"
14+
git config user.email "che-code-rebase-bot@noreply"
15+
```
16+
17+
2. **Create a new branch**:
18+
```bash
19+
git checkout -b test/rebase-bot-$(date +%Y%m%d-%H%M%S)
20+
```
21+
22+
3. **Make a trivial change** — create or update the file `.claude-test`:
23+
```bash
24+
echo "Pipeline test executed at $(date -u +%Y-%m-%dT%H:%M:%SZ)" > .claude-test
25+
```
26+
27+
4. **Commit and push**:
28+
```bash
29+
git add .claude-test
30+
git commit -m "[rebase-bot]: test pipeline verification"
31+
git push origin HEAD
32+
```
33+
34+
5. **Create a pull request**:
35+
```bash
36+
gh pr create \
37+
--repo TARGET_REPO \
38+
--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."
40+
```
41+
42+
6. **Print the result**: output the PR URL so the orchestrator can capture it.
43+
44+
## Important
45+
46+
- This is a test skill. The PR is safe to close without merging.
47+
- Do NOT modify any real project files — only `.claude-test`.
48+
- If push fails due to permissions, report the error clearly.

0 commit comments

Comments
 (0)