docbrown/.github/workflows/pr.yml
Joe Doss 4504ac15ec
GitHub Action bug fixes (#11816)
* Update if statement w/r/t github.event.issue.pull_request conditional and update
cirrus-actions/rebase to 1.4.

* Fix running the PR comment workflow so it only runs if

github.event.pull_request.head.repo.full_name != github.repository

How neat!
2020-12-08 16:54:28 -06:00

24 lines
830 B
YAML

name: Comment on PR
on:
pull_request_target:
jobs:
pull_request_comment:
name: Comment on PR if coming from a forked repository
if: github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Add comment to PR if coming from third-party fork
uses: mshick/add-pr-comment@v1
with:
message: |
Thank you for opening this PR! We appreciate you!
For all pull requests coming from third-party forks we will need to
review the PR before we can process it through our CI pipelines.
A Forem Team member will review this contribution and get back to
you as soon as possible!
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: 'github-actions[bot]'