بنقرة واحدة
create-pull-request
Create pull request. Use when the user asks to create a pull request after some refactor.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create pull request. Use when the user asks to create a pull request after some refactor.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Creates a plan to address a Jira issue. Use it when the user wants you to suggest how to address an issue or implement a feature.
Provides ready-to-use commands for git operations requiring user authentication (commits, push, PR creation).
Executes code quality checks. Use when the user asks to validate changes after a refactor or to report test coverage
| name | create-pull-request |
| description | Create pull request. Use when the user asks to create a pull request after some refactor. |
| disable-model-invocation | true |
Create a pull request for the current changes.
The agent cannot perform operations requiring user credentials:
For these operations, provide ready-to-use commands for the user to copy-paste.
make validate-all to ensure code quality checks pass. Fix any issues before proceeding.git add -ATitle: <ticket-id> | <type>: <description>
<ticket-id>: matches pattern ECOPROJECT-\d+<type>: one of: build, chore, ci, docs, feat, fix, perf, refactor, style, testNO-JIRA | <type>: <description>Body: bullet-list summarizing the changes (use - prefix)
Important: Do NOT use conventional commit format like
fix(scope):. Always useTICKET-ID | type:format.
git add -A && git commit -s -m '<ticket-id> | <type>: <description>
- Change 1
- Change 2
- Change 3'
Note: The
-sflag adds a Signed-off-by line (required).
git push -u origin <branch-name>
Use heredoc syntax to avoid shell escaping issues:
gh pr create --repo kubev2v/migration-planner-ui-app \
--title "<ticket-id> | <type>: <description>" \
--body "$(cat <<'EOF'
## Summary
- Change 1
- Change 2
Fixes [<TICKET-ID>](https://issues.redhat.com/browse/<TICKET-ID>)
## Test Plan
- [ ] Test step 1
- [ ] Test step 2
EOF
)"
After the PR is created, update the Jira issue:
The "Git Pull Request" custom field ID is: customfield_12310220
Use jira_update_issue tool:
{
"issue_key": "<TICKET-ID>",
"fields": {
"customfield_12310220": "<PR-URL>"
}
}
If the custom field update fails (field removed or changed), add the PR as a remote issue link:
{
"issue_key": "<TICKET-ID>",
"url": "<PR-URL>",
"title": "Pull Request #<PR-NUMBER>",
"summary": "<PR-TITLE>",
"relationship": "pull request",
"icon_url": "https://github.githubassets.com/favicons/favicon.svg"
}
The "Code Review" transition ID is: 61
Use jira_transition_issue tool:
{
"issue_key": "<TICKET-ID>",
"transition_id": "61",
"comment": "PR created: <PR-URL>"
}
If the transition fails (ID changed or not available for current status), use jira_get_transitions to find the correct ID:
{
"issue_key": "<TICKET-ID>"
}
Then look for the transition named "Code Review" in the response and use that ID.
1. jira_update_issue(
issue_key="ECOPROJECT-1234",
fields={"customfield_12310220": "https://github.com/kubev2v/migration-planner-ui-app/pull/371"}
)
If this fails, fallback to:
jira_create_remote_issue_link(
issue_key="ECOPROJECT-1234",
url="https://github.com/kubev2v/migration-planner-ui-app/pull/371",
title="Pull Request #371",
summary="ECOPROJECT-1234 | fix: Default report view to first cluster",
relationship="pull request",
icon_url="https://github.githubassets.com/favicons/favicon.svg"
)
2. jira_transition_issue(
issue_key="ECOPROJECT-1234",
transition_id="61",
comment="PR created: https://github.com/kubev2v/migration-planner-ui-app/pull/371"
)
If this fails, fallback to:
jira_get_transitions(issue_key="ECOPROJECT-1234")
→ Find "Code Review" in response, then retry with correct ID