मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग21k · #10361

create-github-pr

यह क्या करती है

यह स्किल AI को उस branch से GitHub pull request खोलने देती है जो आप पहले ही push कर चुके हैं। यह उन योगदानकर्ताओं के लिए है जो अपना कोड समीक्षा और merge के लिए चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आपकी branch पर बदलाव पूरे हो गए हों और आप उन्हें GitHub पर समीक्षा के लिए भेजना चाहते हों।
  • ✓जब आपको ऐसा pull request चाहिए जो उस issue से जुड़ा हो जिसे वह बंद करता है।
  • ✓जब आप चाहते हों कि pull request खोलने से पहले आपका AI आपकी पहुँच और issue की मंज़ूरी जाँचे।

Skill का लिंक

https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/create-github-pr/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/create-github-pr/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी branch के लिए pull request खोलिए और उसे उस issue से जोड़िए जिसे वह ठीक करता है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI gh साइन-इन और प्रोजेक्ट के योगदान नियम जाँचता है, फिर प्रोजेक्ट के विवरण ढाँचे में एक कमांड से pull request बनाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Create GitHub Pull Request

Create pull requests on GitHub using the gh CLI.

Prerequisites

  • The gh CLI must be authenticated (gh auth status)
  • You must have commits on a branch that's pushed to the remote
  • Every PR must close an existing issue, except automated dependency updates and build or flaky-test fixes from authors with write access, as described in CONTRIBUTING.md. Follow Branch Names in CONTRIBUTING.md for contributor branch names.

Before Creating a PR

Verify Contributor Access and Issue Acceptance

Before pushing or creating a PR (including a draft), verify the author's access to the target repository, not their fork. For the authenticated gh user:

gh repo view OWNER/REPO --json nameWithOwner,viewerPermission
gh issue view ISSUE_NUMBER --repo OWNER/REPO --json number,url,labels

Authors with verified WRITE, MAINTAIN, or ADMIN access may proceed without state:accepted; keep the issue link and note the missing label. Everyone else must link at least one target-repository issue and have state:accepted on each. Otherwise, preserve local work and report which issue needs acceptance. A direct request, roadmap placement, other labels, or vouch status does not bypass this gate.

When acting for another author, verify their permissions. Resolve failed lookups before proceeding; retry sandbox network failures outside the sandbox before reporting an authentication problem. Vouch requirements still apply separately.

Check Config Documentation

If the branch changes gateway TOML parsing, [openshell.gateway] fields, [openshell.drivers.<name>] fields, driver config defaults, or Helm rendering of gateway.toml, verify that docs/how-it-works/gateways/configuration.mdx is updated in the same branch. If the change affects user-facing compute-driver setup, also update docs/how-it-works/sandboxes/runtimes.mdx or the relevant deployment docs.

Check Agent Infrastructure

Use the sync-agent-infra skill's maintenance map to identify related skill updates when the branch changes behavior, commands, or development workflows. Run its full consistency check when the branch adds, removes, or renames skills or crates; changes workflow relationships or skill coverage; modifies issue or PR templates; or changes agent cross-references. Resolve any drift before creating the PR.

Verify the Affected Areas

Use the verification guidance in CONTRIBUTING.md to select checks for the changed files and behavior. Guidance, skills, and template changes need applicable Markdown, YAML, link, and consistency checks. Run Rust or SDK suites when those components or their dependencies can be affected. Shared APIs, schemas, dependencies, and build changes may require broader checks even when component source files are unchanged.

mise run ci and mise run pre-commit are broad convenience tasks, not blanket PR prerequisites. Broaden validation only for a concrete remaining risk or failed check, and report what actually ran.

Verify Branch State

Before creating a PR, verify:

  1. You're not on main - Never create PRs directly from main:

    # Should NOT be "main"
    git branch --show-current
    
  2. Branch follows naming convention - Follow Branch Names in CONTRIBUTING.md, including the exceptions for generated branches and private security work.

    # Example: feat/1234-add-pagination/octocat
    git branch --show-current
    

Push Your Branch

Ensure your branch is pushed to the remote:

git push -u origin HEAD

Creating a PR

Basic PR creation (opens editor for description):

gh pr create

With title and body:

gh pr create --title "PR title" --body "PR description"

PR Title Format

PR titles must follow the conventional commit format:

<type>(<scope>): <description>

Types:

  • feat - New feature
  • fix - Bug fix
  • docs - Documentation only
  • refactor - Code change that neither fixes a bug nor adds a feature
  • test - Adding or updating tests
  • chore - Maintenance tasks (CI, build, dependencies)
  • perf - Performance improvement

Scope is typically the component name (e.g., evaluator, cli, sdk, jobs).

Examples:

  • feat(evaluator): add support for custom rubrics
  • fix(jobs): handle timeout errors gracefully
  • docs(sdk): update authentication examples
  • refactor(models): simplify deployment logic
  • `chore(ci): update Python version in pip
अक्सर पूछे जाने वाले सवाल

क्या पहले मेरी branch push होनी चाहिए?

हाँ। pull request बनने से पहले commits उस branch पर होने चाहिए जो पहले से remote पर है।

क्या हर pull request के लिए issue ज़रूरी है?

ज़्यादातर मामलों में हाँ। स्किल कहती है कि हर pull request एक मौजूदा issue बंद करे, कुछ अपवाद स्वचालित या रखरखाव अपडेट के लिए हैं।

अगर मेरे पास repository पर write पहुँच न हो तो?

स्किल पहले आपकी पहुँच जाँचती है। जिन योगदानकर्ताओं के पास write पहुँच नहीं है, उनके लिए एक जुड़ा issue चाहिए जिस पर स्वीकृत label हो।

जानकारी

लेखक का मूल विवरण

Create GitHub pull requests using the gh CLI. Use when the user wants to create a new PR, submit code for review, or open a pull request. Trigger keywords - create PR, pull request, new PR, submit for review, code review.

repo: NVIDIA/OpenShell

लोकप्रियता

GitHub स्टार
21k
रैंकिंग में स्थान
#10361
लाइसेंस
Apache-2.0
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills