Skip to content

Commit

Permalink
Rename push control fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kuychaco committed Nov 6, 2019
1 parent ba4f3ce commit d925751
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ export interface IAPIPushControl {
*
* Empty array if user is admin and branch is not admin-enforced
*/
statuses_required: Array<string>
required_status_checks: Array<string>

/**
* How many reviews are required before merging?
*
* 0 if user is admin and branch is not admin-enforced
*/
approving_reviews_required: number
required_approving_review_count: number

/**
* Is user permitted?
Expand All @@ -255,16 +255,16 @@ export interface IAPIPushControl {
* `false` if `Restrict who can push` is enable and user is not in list.
* `true` if `Restrict who can push` is not enabled.
*/
user_permitted: boolean
allow_actor: boolean

/**
* Currently unused properties
*/
pattern: string | null
signed_commits_required: boolean
linear_history_required: boolean
deletions_permitted: boolean
force_pushes_permitted: boolean
required_signatures: boolean
required_linear_history: boolean
allow_deletions: boolean
allow_force_pushes: boolean
}

/** Branch information returned by the GitHub API */
Expand Down

0 comments on commit d925751

Please sign in to comment.