-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (32 loc) · 1.13 KB
/
Copy pathaction.yml
File metadata and controls
37 lines (32 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Github action for Pull Request validations
name: Pull Request Check
on:
pull_request:
types: [opened, edited, reopened, synchronize, ready_for_review]
jobs:
# Pull Request title validation format
title-validation:
runs-on: ubuntu-latest
steps:
- uses: seferov/pr-lint-action@master
with:
title-regex: '^(?:\[IMPROVEMENT\]|\[FEATURE\]|\[BUGFIX\])\[([A-Z])+\-(\d+)\]\s(\w){1,}(\w|\s|\-|\.|\,|\:|\;|\/|\\){1,}$'
error-message: '*** Pull Request does not follow the Jira Format: [TYPE][JIRA-ID] Title description ***'
# Reviewers assignation
reviewers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set the Reviewers
# Devs
if: ${{ github.event.action == 'ready_for_review' }}
uses: uesteibar/reviewer-lottery@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# QA
- name: Set the Reviewers 2
if: ${{ github.event.action == 'opened' }}
uses: shufo/auto-assign-reviewer-by-issuer@v1.0.0
with:
config: '.github/qareviewers.yml'
token: ${{ secrets.GITHUB_TOKEN }}