github

Automate GitHub pull request creation, squash-merging, and status checks with gh CLI.

10|Updated Jul 7, 2020
One-click install
npx skills add https://github.com/ghaerdi/dotfiles --skill github-ghaerdi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github
Source: https://github.com/ghaerdi/dotfiles/tree/main/opencode/.agents/skills/github
Command: npx skills add https://github.com/ghaerdi/dotfiles --skill github-ghaerdi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the problem of navigating complex GitHub workflows such as pull requests, stacked PRs, code review, and repository automation by using the gh CLI tool.

Core Features & Use Cases

  • Pull Request Management: Automate PR creation, squash merges, and status checking with gh CLI.
  • Stacked PR Workflow: Handle and merge stacked pull requests cleanly into the main branch.
  • Code Review Efficiency: Streamline the code review process with the gh CLI.

Quick Start

Automate the squash-merge of a pull request using the github skill with the following command: gh pr merge <PR_NUMBER> --squash --title "Merge PR <PR_NUMBER>"

Frequently Asked Questions about github

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

FAQPage Schema
How do I automate squash-merging a pull request with gh CLI?

To automate squash-merging a pull request with gh CLI, run `gh pr merge <PR_NUMBER> --squash --title "Merge PR <PR_NUMBER>"` to cleanly integrate the branch. This streamlines the code review workflow by automating the merge process directly from the command line.

What is the best way to manage stacked pull requests in GitHub?

The best way to manage stacked pull requests is using gh CLI commands to handle and merge them cleanly into the main branch. This approach automates the PR workflow and prevents common conflicts that arise from sequential code review dependencies.

Do I need gh CLI installed to automate GitHub pull request workflows?

Yes, you need the gh CLI tool installed on your system to automate GitHub pull request workflows. The Skill utilizes gh CLI commands to automate PR creation, status checking, and squash merges, requiring it as a system dependency.

Can I check the status of a pull request using gh CLI?

Yes, you can check the status of a pull request using gh CLI. The Skill automates GitHub pull request processes, including viewing PR status and streamlining code review efficiency directly within your repository workflow.

Why use gh CLI for code review instead of the GitHub web interface?

Using gh CLI for code review instead of the GitHub web interface allows developers to streamline PR workflows without leaving the terminal. It automates pull request creation, squash merges, and stacked PR handling for faster repository automation.

How do I create a pull request from the command line?

You can create a pull request from the command line by utilizing gh CLI commands. The Skill automates and simplifies GitHub pull request processes, allowing developers to generate PRs directly and streamline their code review workflows.