pull-requests

Manage GitHub pull request creation, updates, reviews, and merging.

4|4|Updated Dec 30, 2024
One-click install
npx skills add https://github.com/purduehackers/wack-hacker --skill pull-requests-purduehackers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pull-requests
Source: https://github.com/purduehackers/wack-hacker/tree/main/src/lib/ai/agents/github/prompts/skills/pull-requests
Command: npx skills add https://github.com/purduehackers/wack-hacker --skill pull-requests-purduehackers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of creating, updating, reviewing, and merging pull requests on GitHub, making code collaboration more efficient.

Core Features & Use Cases

  • Create Pull Requests: Easily initiate new pull requests with specified branches, titles, and bodies.
  • Update Pull Requests: Modify existing pull requests, including changing their state to "closed".
  • Review and Merge: Facilitate code reviews by creating review comments, approving changes, or requesting modifications, and then merging approved pull requests.
  • Inspect Pull Requests: Examine pull request details such as changed files and review history.

Quick Start

Use the pull-requests skill to create a pull request from the 'feature-branch' to the 'main' branch with the title 'Implement new login flow'.

Frequently Asked Questions about pull-requests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a GitHub pull request from a feature branch to main?

To create a GitHub pull request, specify the source and target branches, title, and body. This skill initiates new pull requests and supports setting draft status to streamline code collaboration.

Can I approve or request changes on a GitHub pull request programmatically?

Yes, you can review pull requests by creating review comments, approving changes, or requesting modifications. This skill supports review events like APPROVE or REQUEST_CHANGES to facilitate code reviews.

How do I inspect changed files and review history on a pull request?

You can inspect pull request details by examining changed files and review history. This skill enables users to view specific PR files and past reviews to track version control changes.

What is the best way to manage the lifecycle of GitHub pull requests?

Managing pull requests involves creating, updating, reviewing, and merging them. This skill handles the entire lifecycle, allowing you to modify existing PRs or close them by changing their state.

How do I merge an approved pull request on GitHub?

To merge an approved pull request, facilitate code reviews first, then merge the pull request. This skill allows you to approve changes or request modifications before completing the merge.

Can I update an existing pull request to change its state or draft status?

Yes, you can update existing pull requests by modifying their draft status or closing them. This skill supports changing the PR state to closed and updating titles or bodies.