Skip to content

Commit

Permalink
Update mergeable.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ammar-ahmed-butt committed Apr 15, 2024
1 parent abc218a commit df4f7da
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/mergeable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="https://ammar-ahmed-butt.atlassian.net/wiki/spaces/PMP/pages/35232086/PR+Commits+Branching+Standards">here</a>
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 <a href="https://ammar-ahmed-butt.atlassian.net/wiki/spaces/PMP/pages/35232086/PR+Commits+Branching+Standards">here</a>
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)+$)'
Expand All @@ -39,4 +37,4 @@ mergeable:
payload:
body: >
:warning: <h2>Please add Jira ticket id i.e. "JIRA-ID"</h2>
<h3>Check Fail Adhere to the branch naming convention described <a href="https://ammar-ahmed-butt.atlassian.net/wiki/spaces/PMP/pages/35232086/PR+Commits+Branching+Standards">here</a></h3>
<h3>Check Fail Adhere to the branch naming convention described <a href="https://ammar-ahmed-butt.atlassian.net/wiki/spaces/PMP/pages/35232086/PR+Commits+Branching+Standards">here</a></h3>

1 comment on commit df4f7da

@vercel
Copy link

@vercel vercel bot commented on df4f7da Apr 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.