This commit is contained in:
Harsh Shandilya 2023-01-12 16:43:15 +05:30
parent 0f6f3b7893
commit 22111dd3bd
No known key found for this signature in database
1 changed files with 6 additions and 2 deletions

View File

@ -22,5 +22,9 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require('.github/check-pr-base.js')
await script({github, context})
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`,
});