Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:8beeeaaat Touchdesigner mcp GitHub CLI

From Leeroopedia
Knowledge Sources
Domains Release_Management, CI_CD
Last Updated 2026-10-28 22:13 GMT

Overview

GitHub CLI (`gh`) with `pr create` and `pr edit` support, used to open and update release pull requests with body-file input and closing keywords.

Description

This environment is the GitHub command-line interface (`gh`), required by the `prepare-release` skill (Step 5) to open the release PR. The `gh` CLI must support:

  • `gh pr create --base main --title <version> --body-file <file>` — to create the release PR with a pre-built body file.
  • `gh pr edit <number> --body-file <file>` — to update an existing release PR body (for re-runs).
  • `gh issue list --state open` — to verify that closing keywords actually closed issues after merge.

The release skill deliberately builds the PR body in a file (`/tmp/release-pr-body.md`) and passes it via `--body-file` rather than `--body` inline. This is because the body contains closing keywords (`Closes #NNN`) that GitHub parses from the PR body but not reliably from a squashed commit message of 64+ KiB.

Usage

Use this environment for:

  • Opening release PRs: `gh pr create` with a pre-built body file containing the CHANGELOG entry and closing keywords.
  • Updating existing release PRs: `gh pr edit` when re-running the release skill.
  • Post-merge verification: `gh issue list --state open` to check that closing keywords fired.

System Requirements

Category Requirement Notes
OS Any (Linux, macOS, Windows) `gh` is cross-platform
Software GitHub CLI (`gh`) >= 2.0.0 Needs `--body-file` flag support
Network Internet access to github.com For API calls

Dependencies

System Packages

  • `gh` (GitHub CLI) >= 2.0.0

Prerequisites

  • `gh auth login` must be completed (authenticated session)
  • Push access to the repository (for `git push -u origin <branch>`)

Credentials

  • GitHub authentication token — configured via `gh auth login`. The token must have `repo` scope to create PRs and manage issues.

Quick Install

# Ubuntu/Debian
sudo apt-get install gh

# macOS
brew install gh

# Authenticate
gh auth login

# Verify
gh --version

Code Evidence

The `prepare-release` skill Step 5 creates the release PR with `gh pr create`:

From `.claude/skills/prepare-release/SKILL.md:222`:

gh pr create --base main --title "v$NEW_VERSION" --body-file /tmp/release-pr-body.md

For existing PRs, the body is updated via `gh pr edit`:

From `.claude/skills/prepare-release/SKILL.md:229`:

gh pr edit <number> --body-file /tmp/release-pr-body.md

Post-merge verification uses `gh issue list`:

From `.claude/skills/prepare-release/SKILL.md:244`:

gh issue list --state open

Common Errors

Error Message Cause Solution
`gh: command not found` GitHub CLI not installed Install via `brew install gh` (macOS) or `apt-get install gh` (Linux)
`Authentication required` `gh auth login` not completed Run `gh auth login` and authenticate with a token that has `repo` scope
`GraphQL: No commits found` Branch not pushed to remote Run `git push -u origin <release-branch>` before `gh pr create`
`Closes #NNN` keywords did not close issues Keywords in squashed commit message past 64 KiB cut-off Use `--body-file` for the PR body; GitHub parses keywords from the PR body separately

Compatibility Notes

  • `--body-file` support: Available since `gh` 2.0.0; older versions only support `--body` (inline string).
  • Enterprise GitHub: For GitHub Enterprise, set `GH_HOST` environment variable or use `gh config set hostname <host>`.
  • Closing keyword format: `Closes #226 and #228` does NOT work — GitHub closes only the first issue. Each issue needs its own `Closes #NNN` line.
  • Squash-merge body size: GitHub stops parsing closing keywords in squashed commit messages at approximately 64 KiB. The PR body is parsed separately and is not subject to this limit.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment