cli / cli/cli

Feature Request: Add `--enable-release-immutability` flag to `gh repo edit`

Open
#13,818 7 comments 0 reactions 0 assignees View on GitHub
enhancement gh-repo
Dominant language
Go
Stars
46.3k
Forks
9k
Avg merge
2d 9h
Merged PRs (30d)
89

Description

### Clarification
Currently, the `gh repo edit` command allows users to enable or disable various repository features like issues, wikis, and projects. However, it lacks a flag to toggle the "Release Immutability" setting (`Settings > General > Releases > Enable release immutability`).

### Proposed Solution
Add a flag such as `--enable-release-immutability` to `gh repo edit`. This would allow organization administrators and automation scripts to enforce release immutability across an estate of repositories without needing to manually click through the web UI for each repository.

### Additional Context
Release immutability is a critical software supply chain security feature. Being able to automate its enablement alongside other repository settings would greatly improve the security posture of bulk-managed repositories.

Contributor guide

Open the contributing guide

Research direction

Start at the existing `gh repo edit` command and its repository-settings update path, then inspect how current feature-toggle flags map to the GitHub API. Confirm the release immutability setting is available to this command and determine the expected flag behavior. Done means the new flag can enable release immutability for a repository, with coverage alongside the existing edit settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, go
Domain
api, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.