repositories

Manage GitHub repositories and branches with protection rules via API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation, modification, and deletion of GitHub repositories, along with the management of their branches and branch protection rules, directly from your workflow.

Core Features & Use Cases

  • Repository Management: Create new repositories, update existing ones (including visibility and archiving), and delete repositories.
  • Branch Operations: List branches, set up branch protection rules, and delete branches.
  • Use Case: A team lead needs to set up a new project repository, ensure the main branch has a required PR review, and create a develop branch for ongoing work.

Quick Start

Use the repositories skill to create a new private repository named 'new-project' and initialize it with a README.

Frequently Asked Questions about repositories

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

FAQPage Schema
How do I create a new GitHub repository and initialize it with a README?

To create a new GitHub repository, you can use repository management tools to create both public and private repositories, initialize them with a README file, and configure initial settings directly through the GitHub API.

Can I set up branch protection rules for the main branch to require pull request reviews?

Yes, you can set up branch protection rules for the main branch to require pull request reviews. Branch operations allow you to apply protection rules and delete existing protections to enforce your software engineering workflows.

What is the best way to manage GitHub repository visibility and archive old projects?

The best way to manage GitHub repository visibility and archive old projects is by using repository update operations. You can modify existing repository settings to change visibility status or archive repositories directly via API interactions.

How do I list and delete branches in a GitHub repository for version control?

You can list and delete branches in a GitHub repository by utilizing branch operations. These version control management tools interact with the GitHub API to list existing branches and execute branch deletions when cleaning up project workflows.

Why delete an entire GitHub repository instead of just archiving it?

Deleting an entire GitHub repository permanently removes the codebase and associated data, whereas archiving retains the repository in a read-only state. Use deletion operations when a project is completely obsolete and data retention is no longer required.