From df4f7da9cb25b9271a0443ca4f50f49483dcda5e Mon Sep 17 00:00:00 2001 From: Ammar-Ahmed-Butt Date: Tue, 16 Apr 2024 04:30:54 +0500 Subject: [PATCH] Update mergeable.yml --- .github/mergeable.yml | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/.github/mergeable.yml b/.github/mergeable.yml index 2dd217d3..9cb71a51 100644 --- a/.github/mergeable.yml +++ b/.github/mergeable.yml @@ -5,26 +5,24 @@ mergeable: - do: commit message: regex: '(?=.*(^((build:|chore:|ci:|docs:|feat:|fix:|perf:|refactor:|revert:|update:|create:|style:|test:)(( )|())([a-z]\w{1,72})))|(Merge (.*\s*)*)|(Initial commit$))(?=.*([A-z]+(-)[0-9]))' - message: Adhere to the branch naming convention described here - pass: - - do: checks # default pass case - status: 'success' # Can be: success, failure, neutral, cancelled, timed_out, or action_required - payload: - title: 'Mergeable Run has been Completed!' - summary: "All the validators have returned 'pass'! \n Here are some stats of the run: \n {{validationCount}} validations were ran" - fail: - - do: checks # default pass case - status: 'failure' # Can be: success, failure, neutral, cancelled, timed_out, or action_required - payload: - title: 'Mergeable Run has been Completed!' - summary: | - ### Status: {{toUpperCase validationStatus}} - Here are some stats of the run: - {{validationCount}} validations were ran. - {{passCount}} PASSED - {{failCount}} FAILED - - when: pull_request.*, pull_request_review.* - validate: + message: Adhere to the branch naming convention described here + pass: + - do: checks # default pass case + status: 'success' # Can be: success, failure, neutral, cancelled, timed_out, or action_required + payload: + title: 'Mergeable Run has been Completed!' + summary: "All the validators have returned 'pass'! \n Here are some stats of the run: \n {{validationCount}} validations were ran" + fail: + - do: checks # default pass case + status: 'failure' # Can be: success, failure, neutral, cancelled, timed_out, or action_required + payload: + title: 'Mergeable Run has been Completed!' + summary: | + ### Status: {{toUpperCase validationStatus}} + Here are some stats of the run: + {{validationCount}} validations were ran. + {{passCount}} PASSED + {{failCount}} FAILED - do: title must_include: regex: '(^[A-z]+(-| )[0-9]+(:|-| )(\w|\W)+$)' @@ -39,4 +37,4 @@ mergeable: payload: body: > :warning:

Please add Jira ticket id i.e. "JIRA-ID"

-

Check Fail Adhere to the branch naming convention described here

+

Check Fail Adhere to the branch naming convention described here

\ No newline at end of file