Skip to content

Commit 8c5ea19

Browse files
authored
Add GH action to this repo. (#125)
1 parent 0d11dfb commit 8c5ea19

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

File renamed without changes.

.github/workflows/validate_pr.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
# Workflow to validate Pull Request branches
3+
name: PR Validation
4+
5+
# Trigger on PR creation
6+
on:
7+
pull_request:
8+
types:
9+
- opened
10+
- reopened
11+
- ready_for_review
12+
13+
permissions:
14+
pull-requests: write
15+
16+
jobs:
17+
validate_pr:
18+
if: github.event.pull_request.head.repo.owner.login == 'LabKey'
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Validate PR Branches
23+
uses: LabKey/gitHubActions/validate-pr@develop
24+
with:
25+
pr_base: ${{ github.event.pull_request.base.ref }}
26+
pr_head: ${{ github.event.pull_request.head.ref }}
27+
pr_number: ${{ github.event.pull_request.number }}
28+
pr_title: ${{ github.event.pull_request.title }}
29+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)