File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Validate Pull Request
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - synchronize
8+ - edited
9+ - reopened
10+ branches :
11+ - ' main'
12+ - ' release-**'
13+ - ' develop'
14+ - ' hotfix-**'
15+ # paths-ignore:
16+ # - 'docs/**'
17+ # - '.github/'
18+ # - 'CHANGELOG/'
19+ # - 'charts/'
20+ # - 'manifests/'
21+ # - 'sample-docker-templates/'
22+ jobs :
23+ validate-PR-issue :
24+ runs-on : ubuntu-latest
25+
26+ steps :
27+ - name : Checkout repository
28+ uses : actions/checkout@v2
29+
30+ - name : Set up jq (for parsing JSON)
31+ run : sudo apt-get install -y jq
32+
33+ - name : PR Validation Script
34+ env :
35+ PR_BODY : ${{ github.event.pull_request.body }}
36+ PRNUM : ${{ github.event.pull_request.number }}
37+ TITLE : ${{ github.event.pull_request.title }}
38+ GH_TOKEN : ${{ github.token }}
39+ GH_PR_VALIDATOR_TOKEN : ${{ secrets.GH_PR_VALIDATOR_TOKEN }}
40+ BASE_REPO : ${{ github.event.pull_request.base.repo.full_name }}
41+ HEAD_REPO : ${{ github.event.pull_request.head.repo.full_name }}
42+ run : |
43+ wget https://raw.githubusercontent.com/devtron-labs/utilities/feat/central-pr-validator/.github/workflows/validateIssue.sh
44+ chmod +x validateIssue.sh
45+ ./validateIssue.sh
You can’t perform that action at this time.
0 commit comments