gitcode-create-pr

Create or update GitCode pull requests via the REST API.

104|9|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/yuanrong-proj/yuanrong --skill gitcode-create-pr-yuanrong-proj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitcode-create-pr
Source: https://github.com/yuanrong-proj/yuanrong/tree/main/.skills/gitcode-create-pr
Command: npx skills add https://github.com/yuanrong-proj/yuanrong --skill gitcode-create-pr-yuanrong-proj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of manually creating, updating, or formatting pull requests on GitCode by guiding you through the required inputs and API-ready request payload.

Core Features & Use Cases

  • GitCode PR creation via API: Creates a pull request for same-repo branches or cross-repo PRs from forks.
  • GitCode PR updating: Updates an existing PR title or body using the GitCode API.
  • Template-aligned PR bodies: Helps you format the PR body using the repository PR template located at .gitee/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.en.md.
  • Branch and URL correctness: Ensures the workflow includes pushing the source branch before opening the PR and returns the PR URL from the API response.

Quick Start

Tell the AI: create a GitCode pull request to merge feature-branch into master with the title and markdown body generated from the repository PR template, using GITCODE_APIKEY for authentication.

Frequently Asked Questions about gitcode-create-pr

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

FAQPage Schema
How do I create a GitCode pull request via API automation?

To create a GitCode pull request via API, you must provide the owner, repo, source branch, target branch, title, body, and GITCODE_APIKEY for authentication. The source branch must be pushed to the remote repository before the API request is sent.

How do I update an existing GitCode PR title or body?

You can update an existing GitCode PR title or body by sending a PATCH request to the GitCode REST API endpoint using your GITCODE_APIKEY. This allows you to modify PR metadata after the initial creation without starting a new request.

Can I open a pull request from a forked repository on GitCode?

Yes, you can open a cross-repo PR from a fork by providing the optional fork_path parameter in the API request payload. The Skill infers repository details from the remote URL or provided inputs to construct the correct fork-based PR.

Do I need to push my source branch before opening a GitCode PR?

Yes, pushing the source branch to the remote repository is a required workflow step before opening a GitCode PR. The API requires the branch to exist remotely to successfully create the pull request and return the PR URL.

How do I format a GitCode PR body using a markdown template?

You can format the PR body by aligning the content with the repository PR template located at .gitee/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.en.md. The Skill guides you to generate the markdown body using this template structure.

What do I need to authenticate a GitCode API request for branch management?

You need the GITCODE_APIKEY to authenticate GitCode API requests for branch management and PR operations. This key authorizes POST and PATCH operations to create or update pull requests within your workflow.