refactor: Converted PolicyTypeId from const to enum.

Signed-off-by: Marley Powell <Marley.Powell@exclaimer.com>
This commit is contained in:
Marley Powell
2021-12-01 08:28:53 +00:00
parent b2d87cc0a0
commit a89ada59cf
2 changed files with 16 additions and 16 deletions
+8 -8
View File
@@ -217,32 +217,32 @@ export enum PolicyType {
MergeStrategy = 'MergeStrategy',
}
export const PolicyTypeId = {
export enum PolicyTypeId {
/**
* This policy will require a successful build has been performed before updating protected refs.
*/
Build: '0609b952-1397-4640-95ec-e00a01b2c241',
Build = '0609b952-1397-4640-95ec-e00a01b2c241',
/**
* This policy will require a successful status to be posted before updating protected refs.
*/
Status: 'cbdc66da-9728-4af8-aada-9a5a32e4a226',
Status = 'cbdc66da-9728-4af8-aada-9a5a32e4a226',
/**
* This policy will ensure that a minimum number of reviewers have approved a pull request before completion.
*/
MinimumReviewers: 'fa4e907d-c16b-4a4c-9dfa-4906e5d171dd',
MinimumReviewers = 'fa4e907d-c16b-4a4c-9dfa-4906e5d171dd',
/**
* Check if the pull request has any active comments.
*/
Comments: 'c6a1889d-b943-4856-b76f-9e46bb6b0df2',
Comments = 'c6a1889d-b943-4856-b76f-9e46bb6b0df2',
/**
* This policy will ensure that required reviewers are added for modified files matching specified patterns.
*/
RequiredReviewers: 'fd2167ab-b0be-447a-8ec8-39368250530e',
RequiredReviewers = 'fd2167ab-b0be-447a-8ec8-39368250530e',
/**
* This policy ensures that pull requests use a consistent merge strategy.
*/
MergeStrategy: 'fa4e907d-c16b-4a4c-9dfa-4916e5d171ab',
};
MergeStrategy = 'fa4e907d-c16b-4a4c-9dfa-4916e5d171ab',
}
export enum PullRequestVoteStatus {
Approved = 10,