This commit is contained in:
parent
22111dd3bd
commit
c769d169a0
|
@ -1,8 +0,0 @@
|
|||
module.exports = async ({github, context}) => {
|
||||
octokit.rest.issues.createComment({
|
||||
owner: context.payload.repository.owner.login,
|
||||
repo: context.payload.repository.name,
|
||||
issue_number: context.payload.number,
|
||||
body: `This PR is targeting the 'main' branch but did not originate from 'staging', please make sure this intentional`,
|
||||
});
|
||||
}
|
|
@ -18,13 +18,11 @@ jobs:
|
|||
- name: Validate PR head and base branches
|
||||
if: "${{ github.base_ref == 'main' && github.head_ref != 'staging' }}"
|
||||
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
|
||||
id: validate-pr-base
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
github.rest.issues.createComment({
|
||||
owner: context.payload.repository.owner.login,
|
||||
repo: context.payload.repository.name,
|
||||
issue_number: context.payload.number,
|
||||
body: `This PR is targeting the 'main' branch but did not originate from 'staging', please make sure this intentional`,
|
||||
body: `This PR is targeting the main branch but did not originate from staging, please make sure this intentional`,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue