Skip to content

Add repo update and create-from-template#103

Merged
cursor[bot] merged 6 commits into
mainfrom
cursor/repo-update-and-template-5723
Jul 26, 2026
Merged

Add repo update and create-from-template#103
cursor[bot] merged 6 commits into
mainfrom
cursor/repo-update-and-template-5723

Conversation

@lbrealdev

@lbrealdev lbrealdev commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

Implements two features tracked in #101 and #102:

  • repo updatePATCH /repos/{owner}/{repo} for description, homepage, visibility, default branch, archive state, rename via --new-name, and template status via --as-template / --no-template
  • repo create --template OWNER/REPOPOST /repos/{template_owner}/{template_repo}/generate, with optional --include-all-branches

Also removes CHANGELOG.md; release notes live in GitHub Releases (see CONTRIBUTING.md).

repo get table output now includes is_template so template status is visible without JSON.

CLI examples

github-rest-cli repo update --name my-repo --description "Updated" --private
github-rest-cli repo update --name my-repo --new-name renamed-repo
github-rest-cli repo update --name my-repo --as-template
github-rest-cli repo get --name my-repo
github-rest-cli repo update --name my-repo --no-template
github-rest-cli repo create --name my-app --template owner/template-repo --private

Notes

  • --template cannot be combined with --empty
  • Template create supports --public / --private only (not --internal)
  • --include-all-branches requires --template
  • --name is the current repository; --new-name renames it
  • --as-template / --no-template mark or unmark a repo as a template (distinct from create --template)
  • Docs updated in docs/cli.md and README

Testing

  • uv run pytest — green including is_template table field tests
  • ruff check / ruff format on touched files

Closes #101
Closes #102

Open in Web Open in Cursor 

Expose PATCH /repos/{owner}/{repo} via `repo update` and template
generation via `repo create --template OWNER/REPO`, with docs and tests.
Closes #101 and #102.

Co-authored-by: akae <lbrealdev@users.noreply.github.com>
@lbrealdev
lbrealdev marked this pull request as ready for review July 22, 2026 14:58
@cursor

cursor Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

cursoragent and others added 5 commits July 22, 2026 14:58
Drop the hand-maintained changelog and document releases via
GitHub Release notes instead.

Co-authored-by: akae <lbrealdev@users.noreply.github.com>
Map --new-name to the GitHub PATCH name field so repositories can be
renamed without colliding with --name (current repo).

Co-authored-by: akae <lbrealdev@users.noreply.github.com>
Allow marking or unmarking a repository as a GitHub template via
PATCH is_template, distinct from create --template OWNER/REPO.

Co-authored-by: akae <lbrealdev@users.noreply.github.com>
Include the field in the curated detail view so template status is
visible without switching to JSON.

Co-authored-by: akae <lbrealdev@users.noreply.github.com>
Apply I001 import sorting and RUF013 explicit Optional annotations
so CI Lint passes under current ruff.

Co-authored-by: akae <lbrealdev@users.noreply.github.com>
@cursor
cursor Bot merged commit 2e205f7 into main Jul 26, 2026
4 checks passed
@cursor
cursor Bot deleted the cursor/repo-update-and-template-5723 branch July 26, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create repositories from GitHub templates Add repo update command

2 participants