cberg
Version:
Node.js Client for the Codeberg API
88 lines (80 loc) • 6.81 kB
Markdown
# EditRepoOption
EditRepoOption options when editing a repository\'s properties
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allow_fast_forward_only_merge** | **boolean** | either `true` to allow fast-forward-only merging pull requests, or `false` to prevent fast-forward-only merging. | [optional] [default to undefined]
**allow_manual_merge** | **boolean** | either `true` to allow mark pr as merged manually, or `false` to prevent it. | [optional] [default to undefined]
**allow_merge_commits** | **boolean** | either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. | [optional] [default to undefined]
**allow_rebase** | **boolean** | either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. | [optional] [default to undefined]
**allow_rebase_explicit** | **boolean** | either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. | [optional] [default to undefined]
**allow_rebase_update** | **boolean** | either `true` to allow updating pull request branch by rebase, or `false` to prevent it. | [optional] [default to undefined]
**allow_squash_merge** | **boolean** | either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. | [optional] [default to undefined]
**archived** | **boolean** | set to `true` to archive this repository. | [optional] [default to undefined]
**autodetect_manual_merge** | **boolean** | either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur. | [optional] [default to undefined]
**default_allow_maintainer_edit** | **boolean** | set to `true` to allow edits from maintainers by default | [optional] [default to undefined]
**default_branch** | **string** | sets the default branch for this repository. | [optional] [default to undefined]
**default_delete_branch_after_merge** | **boolean** | set to `true` to delete pr branch after merge by default | [optional] [default to undefined]
**default_merge_style** | **string** | set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", \"squash\", \"fast-forward-only\", \"manually-merged\", or \"rebase-update-only\". | [optional] [default to undefined]
**default_update_style** | **string** | set to a update style to be used by this repository: \"rebase\" or \"merge\" | [optional] [default to undefined]
**description** | **string** | a short description of the repository. | [optional] [default to undefined]
**enable_prune** | **boolean** | enable prune - remove obsolete remote-tracking references when mirroring | [optional] [default to undefined]
**external_tracker** | [**ExternalTracker**](ExternalTracker.md) | | [optional] [default to undefined]
**external_wiki** | [**ExternalWiki**](ExternalWiki.md) | | [optional] [default to undefined]
**globally_editable_wiki** | **boolean** | set the globally editable state of the wiki | [optional] [default to undefined]
**has_actions** | **boolean** | either `true` to enable actions unit, or `false` to disable them. | [optional] [default to undefined]
**has_issues** | **boolean** | either `true` to enable issues for this repository or `false` to disable them. | [optional] [default to undefined]
**has_packages** | **boolean** | either `true` to enable packages unit, or `false` to disable them. | [optional] [default to undefined]
**has_projects** | **boolean** | either `true` to enable project unit, or `false` to disable them. | [optional] [default to undefined]
**has_pull_requests** | **boolean** | either `true` to allow pull requests, or `false` to prevent pull request. | [optional] [default to undefined]
**has_releases** | **boolean** | either `true` to enable releases unit, or `false` to disable them. | [optional] [default to undefined]
**has_wiki** | **boolean** | either `true` to enable the wiki for this repository or `false` to disable it. | [optional] [default to undefined]
**ignore_whitespace_conflicts** | **boolean** | either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. | [optional] [default to undefined]
**internal_tracker** | [**InternalTracker**](InternalTracker.md) | | [optional] [default to undefined]
**mirror_interval** | **string** | set to a string like `8h30m0s` to set the mirror interval time | [optional] [default to undefined]
**name** | **string** | name of the repository | [optional] [default to undefined]
**_private** | **boolean** | either `true` to make the repository private or `false` to make it public. Note: you will get a 422 error if the organization restricts changing repository visibility to organization owners and a non-owner tries to change the value of private. | [optional] [default to undefined]
**template** | **boolean** | either `true` to make this repository a template or `false` to make it a normal repository | [optional] [default to undefined]
**website** | **string** | a URL with more information about the repository. | [optional] [default to undefined]
**wiki_branch** | **string** | sets the branch used for this repository\'s wiki. | [optional] [default to undefined]
## Example
```typescript
import { EditRepoOption } from 'berg';
const instance: EditRepoOption = {
allow_fast_forward_only_merge,
allow_manual_merge,
allow_merge_commits,
allow_rebase,
allow_rebase_explicit,
allow_rebase_update,
allow_squash_merge,
archived,
autodetect_manual_merge,
default_allow_maintainer_edit,
default_branch,
default_delete_branch_after_merge,
default_merge_style,
default_update_style,
description,
enable_prune,
external_tracker,
external_wiki,
globally_editable_wiki,
has_actions,
has_issues,
has_packages,
has_projects,
has_pull_requests,
has_releases,
has_wiki,
ignore_whitespace_conflicts,
internal_tracker,
mirror_interval,
name,
_private,
template,
website,
wiki_branch,
};
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)