forked from supabase/supabase
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 1.12 KB
/
external-pr-comment.yml
File metadata and controls
31 lines (27 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Comment on external PRs
on:
pull_request_target:
types: [opened]
permissions:
pull-requests: write
jobs:
comment-on-external-pr:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Comment on PR
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
with:
script: |
const commentBody = `
Thanks for contributing to Supabase! ❤️ Our team will review your PR.
A few tips for a smoother review process:
- If you have a local version of the repo, run \`pnpm run format\` to make sure formatting checks pass.
- Once we've reviewed your PR, please don't trivially merge master (don't click \`Update branch\` if there are no merge conflicts to be fixed). This invalidates any pre-merge checks we've run.
`;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: commentBody
});