diff --git a/pull_request_template.md b/.github/pull_request_template.md similarity index 100% rename from pull_request_template.md rename to .github/pull_request_template.md diff --git a/.github/workflows/validate_pr.yml b/.github/workflows/validate_pr.yml new file mode 100644 index 0000000..69320ba --- /dev/null +++ b/.github/workflows/validate_pr.yml @@ -0,0 +1,29 @@ +--- +# Workflow to validate Pull Request branches +name: PR Validation + +# Trigger on PR creation +on: + pull_request: + types: + - opened + - reopened + - ready_for_review + +permissions: + pull-requests: write + +jobs: + validate_pr: + if: github.event.pull_request.head.repo.owner.login == 'LabKey' + runs-on: ubuntu-latest + + steps: + - name: Validate PR Branches + uses: LabKey/gitHubActions/validate-pr@develop + with: + pr_base: ${{ github.event.pull_request.base.ref }} + pr_head: ${{ github.event.pull_request.head.ref }} + pr_number: ${{ github.event.pull_request.number }} + pr_title: ${{ github.event.pull_request.title }} + github_token: ${{ secrets.GITHUB_TOKEN }}