Skillpedia
برمجة عامة21k · #10361

create-github-pr

ما الذي تفعله

تتيح هذه المهارة للذكاء الاصطناعي فتح طلب سحب على GitHub من فرع رفعته بالفعل. وهي مخصصة للمساهمين الذين يريدون مراجعة كودهم ودمجه.

متى تستخدمها

  • ✓عندما تنتهي من تعديلات على فرع وتريد إرسالها للمراجعة على GitHub.
  • ✓عندما تحتاج إلى طلب سحب يربط المشكلة التي يحلها.
  • ✓عندما تريد أن يتحقق وكيلك من صلاحية وصولك وموافقة المشكلة قبل فتح طلب السحب.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/create-github-pr/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“افتح طلب سحب لفرعي، واربطه بالمشكلة التي يصلحها.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يتحقق الذكاء الاصطناعي من تسجيل دخول gh وقواعد المساهمة في المستودع، ثم ينشئ طلب السحب من فرع بأمر يستخدم صيغة وصف المشروع.

المحتوى التقني (ملف 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
الأسئلة الشائعة

هل يجب أن يكون الفرع مرفوعًا أولًا؟

نعم. يجب أن تكون التعديلات على فرع موجود مسبقًا في المستودع البعيد قبل إنشاء طلب السحب.

هل يحتاج كل طلب سحب إلى مشكلة؟

في أغلب الحالات نعم. تذكر المهارة أن كل طلب سحب يجب أن يغلق مشكلة موجودة، مع استثناءات لتحديثات آلية أو صيانة.

ماذا إذا لم تكن لدي صلاحية الكتابة إلى المستودع؟

تتحقق المهارة من صلاحيتك أولًا. والمساهمون بدون صلاحية كتابة يحتاجون إلى مشكلة مرتبطة معتمدة وفيها التسمية المقبولة.

التفاصيل

الوصف الأصلي من المؤلف

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

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة