Skip to content

Commit 57e7eba

Browse files
authored
Merge pull request #10 from leancodepl/feat/internal-contribution-reminder
Remind LeanCode members to double-check public vs internal on PRs
2 parents 5b47e96 + 1ae265d commit 57e7eba

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Internal contribution reminder
2+
3+
# Asks LeanCode organization members whether their PR is intentionally public.
4+
# Everything merged here becomes publicly visible and is synced into
5+
# ai-plugins-internal, so internal-only content must not land in this repo.
6+
#
7+
# pull_request_target is safe here: the job never checks out or executes PR
8+
# code — it only reads the event payload and posts a comment.
9+
10+
on:
11+
pull_request_target:
12+
types: [opened]
13+
14+
permissions:
15+
pull-requests: write
16+
17+
jobs:
18+
remind:
19+
if: contains(fromJSON('["MEMBER", "OWNER"]'), github.event.pull_request.author_association)
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Comment with public-vs-internal reminder
23+
env:
24+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
PR_URL: ${{ github.event.pull_request.html_url }}
26+
AUTHOR: ${{ github.event.pull_request.user.login }}
27+
run: |
28+
gh pr comment "$PR_URL" --body "Hi @${AUTHOR}! :wave: You're a LeanCode member, so a quick sanity check before this ships: **is this PR meant for the public marketplace?**
29+
30+
Everything merged here becomes publicly visible and is automatically synced into \`ai-plugins-internal\`.
31+
32+
- Internal-only content (client-specific guidance, internal processes, backend/PMO plugins, anything not ready to be public) belongs in [ai-plugins-internal](https://github.com/leancodepl/ai-plugins-internal) instead.
33+
- Generally useful, public-ready content is right at home here — the internal repo will pick it up through the sync.
34+
35+
If public is what you intended, just ignore this comment. :slightly_smiling_face:"

0 commit comments

Comments
 (0)