pr-merge
यह क्या करती है
यह स्किल maintainer को pull requests के रूप में आए योगदानों की समीक्षा और merge में मार्गदर्शन देती है। यह उन प्रोजेक्ट मालिकों के लिए है जो चाहते हैं कि योगदानकर्ताओं का श्रेय बना रहे।
कब इस्तेमाल करें
- ✓जब आपके पास बाहरी योगदानकर्ताओं के कई खुले pull requests हों, जिन्हें समीक्षा और merge करना है।
- ✓जब किसी pull request में merge conflicts हों और आप योगदानकर्ता का काम दोबारा लिखे बिना उन्हें सुलझाना चाहते हैं।
- ✓जब आपको किसी pull request की केवल कुछ फ़ाइलें merge करनी हों।
Skill का लिंक
https://github.com/HKUDS/OpenHarness/blob/main/.claude/skills/pr-merge/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“कृपया हमारे repo के खुले pull requests देखिए, साफ़ वाले merge कीजिए, और हर लेखक का श्रेय बनाए रखिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट खुले pull requests की सूची बनाकर उन्हें छाँटता है। साफ़ वाले वह GitHub के ज़रिए merge करता है ताकि लेखक का नाम बना रहे, और कठिन वाले स्थानीय रूप से merge करके विरोध एक अलग बदलाव में सुलझाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
PR Merge — Contributor-First Pull Request Integration
Merge external pull requests while maximizing original author attribution. Core principle: merge first, resolve conflicts after — never rewrite a contributor's work from scratch.
Core Principles
- Preserve authorship — use
gh pr merge --squashfor clean PRs. For manual merges, use--author="Name <email>". - Merge first, fix after — accept the PR's approach even if it differs from local style. Fix conflicts in a separate commit.
- Selective merge is OK — exclude files with
--excludewhen a PR contains features already implemented locally. Document what was excluded. - Never
git apply+ self-commit — this loses author attribution entirely.
Workflow
1. Triage Open PRs
gh pr list --repo OWNER/REPO --state open \
--json number,title,author,additions,deletions,mergeable
Classify each PR: merge directly, merge with conflict resolution, selective merge, or close.
2. Merge Clean PRs via GitHub
Prefer gh pr merge — preserves author automatically:
gh pr merge NUMBER --repo OWNER/REPO --squash \
--subject "feat: description (#NUMBER)"
3. Handle Conflicting PRs Locally
git fetch origin pull/NUMBER/head:pr-NUMBER
git merge pr-NUMBER --no-edit
# Resolve conflicts keeping both sides where possible
git add -A && git commit --no-edit
4. Selective Merge (Skip Some Files)
When a PR contains features already implemented locally:
gh pr diff NUMBER --repo OWNER/REPO | \
git apply --exclude='path/to/skip.py' --exclude='CHANGELOG.md'
git commit --author="Author Name <author@email>" \
-m "feat: description (#NUMBER)
Cherry-picked from PR #NUMBER. Excluded: file.py (already implemented)."
5. Close Duplicate/Superseded PRs
gh pr close NUMBER --repo OWNER/REPO \
--comment "Fixed via PR #OTHER. Thank you for the contribution!"
6. Post-Merge Verification
python -m ruff check src/ tests/ # lint
python -m pytest tests/ -q # unit tests
git push origin main # push
Then run harness-eval for end-to-end verification on an unfamiliar codebase.
Attribution Checklist
Before pushing a merged PR:
- Original author appears in
git log(via--authoror GitHub squash merge) - Commit message references PR number (
#NUMBER) - If selectively merged, commit body explains exclusions
- Closed PRs have a comment thanking the contributor
- Duplicate PRs acknowledge the contributor's investigation
Common Pitfalls
git apply+ self-commit loses author- Rewriting from scratch instead of merging — merge their code, fix style after
- Force-pushing main after merge — may remove contributor commits
- Forgetting CHANGELOG conflicts — always exclude and handle manually
- Not testing after merge — clean merge doesn't mean working code
Additional Resources
Reference Files
references/merge-scenarios.md— Detailed examples for each merge scenario (clean, conflicting, selective, duplicate)
अक्सर पूछे जाने वाले सवाल
क्या योगदानकर्ता को अब भी श्रेय मिलेगा?
हाँ। स्किल GitHub merges को पसंद करती है और हाथ से merge करते समय लेखक सेट करती है, इसलिए श्रेय बना रहता है।
क्या यह योगदानकर्ता का कोड दोबारा लिखती है?
नहीं। स्किल कहती है कि पहले योगदानकर्ता का तरीका स्वीकार करें और विरोध बाद में अलग commit में सुलझाएँ।
क्या मैं किसी pull request की कुछ फ़ाइलें ही merge कर सकता हूँ?
हाँ। स्किल चुनिंदा merge की अनुमति देती है जो स्थानीय रूप से पहले से लागू फ़ाइलों को छोड़ देता है, और आपसे माँगती है कि क्या छोड़ा गया, यह नोट किया जाए।
जानकारी
लेखक का मूल विवरण
This skill should be used when the user asks to "merge a PR", "review and merge pull requests", "integrate external contributions", "handle PR conflicts", "cherry-pick from a PR", or needs to merge GitHub PRs while maximizing contributor attribution.
repo: HKUDS/OpenHarness
लोकप्रियता
- GitHub स्टार
- 16k
- रैंकिंग में स्थान
- #10803
- लाइसेंस
- MIT
- अपडेट की गई
- 3/6/2026
कमेंट
- …
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।