username:password
Authorization: Basic *****************
true
to allow mark pr as merged manually, or false
to prevent it.true
to allow merging pull requests with a merge commit, or false
to prevent merging pull requests with merge commits.true
to allow rebase-merging pull requests, or false
to prevent rebase-merging.true
to allow rebase with explicit merge commits (--no-ff), or false
to prevent rebase with explicit merge commits.true
to allow updating pull request branch by rebase, or false
to prevent it.true
to allow squash-merging pull requests, or false
to prevent squash-merging.true
to archive this repository.true
to enable AutodetectManualMerge, or false
to prevent it. Note: In some special cases, misjudgments can occur.true
to allow edits from maintainers by defaulttrue
to delete pr branch after merge by defaultnumeric
, alphanumeric
, or regexp
true
to enable actions unit, or false
to disable them.true
to enable issues for this repository or false
to disable them.true
to enable packages unit, or false
to disable them.true
to enable project unit, or false
to disable them.true
to allow pull requests, or false
to prevent pull request.true
to enable releases unit, or false
to disable them.true
to enable the wiki for this repository or false
to disable it.true
to ignore whitespace for conflicts, or false
to not ignore whitespace.8h30m0s
to set the mirror interval timetrue
to make the repository private or false
to make it public.true
to make this repository a template or false
to make it a normal repository{
"allow_manual_merge": true,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_rebase_update": true,
"allow_squash_merge": true,
"archived": true,
"autodetect_manual_merge": true,
"default_allow_maintainer_edit": true,
"default_branch": "string",
"default_delete_branch_after_merge": true,
"default_merge_style": "string",
"description": "string",
"enable_prune": true,
"external_tracker": {
"external_tracker_format": "string",
"external_tracker_regexp_pattern": "string",
"external_tracker_style": "string",
"external_tracker_url": "string"
},
"external_wiki": {
"external_wiki_url": "string"
},
"has_actions": true,
"has_issues": true,
"has_packages": true,
"has_projects": true,
"has_pull_requests": true,
"has_releases": true,
"has_wiki": true,
"ignore_whitespace_conflicts": true,
"internal_tracker": {
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true,
"enable_time_tracker": true
},
"mirror_interval": "string",
"name": "string",
"private": true,
"template": true,
"website": "string"
}
curl --location --request PATCH '/repos//' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"allow_manual_merge": true,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_rebase_update": true,
"allow_squash_merge": true,
"archived": true,
"autodetect_manual_merge": true,
"default_allow_maintainer_edit": true,
"default_branch": "string",
"default_delete_branch_after_merge": true,
"default_merge_style": "string",
"description": "string",
"enable_prune": true,
"external_tracker": {
"external_tracker_format": "string",
"external_tracker_regexp_pattern": "string",
"external_tracker_style": "string",
"external_tracker_url": "string"
},
"external_wiki": {
"external_wiki_url": "string"
},
"has_actions": true,
"has_issues": true,
"has_packages": true,
"has_projects": true,
"has_pull_requests": true,
"has_releases": true,
"has_wiki": true,
"ignore_whitespace_conflicts": true,
"internal_tracker": {
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true,
"enable_time_tracker": true
},
"mirror_interval": "string",
"name": "string",
"private": true,
"template": true,
"website": "string"
}'
numeric
, alphanumeric
, or regexp
{
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_rebase_update": true,
"allow_squash_merge": true,
"archived": true,
"archived_at": "2019-08-24T14:15:22Z",
"avatar_url": "string",
"clone_url": "string",
"created_at": "2019-08-24T14:15:22Z",
"default_allow_maintainer_edit": true,
"default_branch": "string",
"default_delete_branch_after_merge": true,
"default_merge_style": "string",
"description": "string",
"empty": true,
"external_tracker": {
"external_tracker_format": "string",
"external_tracker_regexp_pattern": "string",
"external_tracker_style": "string",
"external_tracker_url": "string"
},
"external_wiki": {
"external_wiki_url": "string"
},
"fork": true,
"forks_count": 0,
"full_name": "string",
"has_actions": true,
"has_issues": true,
"has_packages": true,
"has_projects": true,
"has_pull_requests": true,
"has_releases": true,
"has_wiki": true,
"html_url": "string",
"id": 0,
"ignore_whitespace_conflicts": true,
"internal": true,
"internal_tracker": {
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true,
"enable_time_tracker": true
},
"language": "string",
"languages_url": "string",
"link": "string",
"mirror": true,
"mirror_interval": "string",
"mirror_updated": "2019-08-24T14:15:22Z",
"name": "string",
"open_issues_count": 0,
"open_pr_counter": 0,
"original_url": "string",
"owner": {
"active": true,
"avatar_url": "string",
"created": "2019-08-24T14:15:22Z",
"description": "string",
"email": "user@example.com",
"followers_count": 0,
"following_count": 0,
"full_name": "string",
"id": 0,
"is_admin": true,
"language": "string",
"last_login": "2019-08-24T14:15:22Z",
"location": "string",
"login": "string",
"login_name": "empty",
"prohibit_login": true,
"restricted": true,
"starred_repos_count": 0,
"visibility": "string",
"website": "string"
},
"parent": {},
"permissions": {
"admin": true,
"pull": true,
"push": true
},
"private": true,
"release_counter": 0,
"repo_transfer": {
"doer": {
"active": true,
"avatar_url": "string",
"created": "2019-08-24T14:15:22Z",
"description": "string",
"email": "user@example.com",
"followers_count": 0,
"following_count": 0,
"full_name": "string",
"id": 0,
"is_admin": true,
"language": "string",
"last_login": "2019-08-24T14:15:22Z",
"location": "string",
"login": "string",
"login_name": "empty",
"prohibit_login": true,
"restricted": true,
"starred_repos_count": 0,
"visibility": "string",
"website": "string"
},
"recipient": {
"active": true,
"avatar_url": "string",
"created": "2019-08-24T14:15:22Z",
"description": "string",
"email": "user@example.com",
"followers_count": 0,
"following_count": 0,
"full_name": "string",
"id": 0,
"is_admin": true,
"language": "string",
"last_login": "2019-08-24T14:15:22Z",
"location": "string",
"login": "string",
"login_name": "empty",
"prohibit_login": true,
"restricted": true,
"starred_repos_count": 0,
"visibility": "string",
"website": "string"
},
"teams": [
{
"can_create_org_repo": true,
"description": "string",
"id": 0,
"includes_all_repositories": true,
"name": "string",
"organization": {
"avatar_url": "string",
"description": "string",
"email": "string",
"full_name": "string",
"id": 0,
"location": "string",
"name": "string",
"repo_admin_change_team_access": true,
"username": "string",
"visibility": "string",
"website": "string"
},
"permission": "none",
"units": [
"repo.code",
"repo.issues",
"repo.ext_issues",
"repo.wiki",
"repo.pulls",
"repo.releases",
"repo.projects",
"repo.ext_wiki"
],
"units_map": {
"repo.code": "read",
"repo.ext_issues": "none",
"repo.ext_wiki": "none",
"repo.issues": "write",
"repo.projects": "none",
"repo.pulls": "owner",
"repo.releases": "none",
"repo.wiki": "admin"
}
}
]
},
"size": 0,
"ssh_url": "string",
"stars_count": 0,
"template": true,
"updated_at": "2019-08-24T14:15:22Z",
"url": "string",
"watchers_count": 0,
"website": "string"
}