Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 10105f2

Browse files
committed
chore: add fork PR greeter workflow
1 parent 3d7fd3f commit 10105f2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/pr-greeter.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow greets PRs from forks with links to the Code of Conduct, Contributing Guide and other noteworthy information.
2+
3+
name: PR Greeter
4+
5+
on:
6+
pull_request:
7+
branches: [master]
8+
types: [opened]
9+
10+
jobs:
11+
greet-fork-pr:
12+
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
13+
runs-on: [ubuntu-latest]
14+
15+
steps:
16+
- name: Greet fork PR
17+
uses: unsplash/comment-on-pr@master
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
msg:
22+
"Thanks for your code contribution to serverless-next.js, @${{ github.actor }}! If you haven't already, please read the [Code of Conduct](https://github.com/serverless-nextjs/serverless-next.js/blob/master/CODE_OF_CONDUCT.md) and [Contributing Guide](https://github.com/serverless-nextjs/serverless-next.js/blob/master/CONTRIBUTING.md).
23+
24+
As this pull request is from a fork, it doesn't have the permissions needed to automatically run the end-to-end tests. Please wait for a maintainer to manually run them. Thanks!"
25+
check_for_duplicate_msg: true

0 commit comments

Comments
 (0)