Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/contribution-reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Contribution reminder

# Asks LeanCode organization members to confirm that their PR is meant to be
# public, since everything merged here is publicly visible.
#
# pull_request_target is safe here: the job never checks out or executes PR
# code. It only reads the event payload and posts a comment.

on:
pull_request_target:
types: [opened]

permissions:
pull-requests: write

jobs:
remind:
if: contains(fromJSON('["MEMBER", "OWNER"]'), github.event.pull_request.author_association)
runs-on: ubuntu-latest
steps:
- name: Comment with a public-visibility reminder
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
AUTHOR: ${{ github.event.pull_request.user.login }}
run: |
gh pr comment "$PR_URL" --body "Hi @${AUTHOR}! :wave: A quick check before this ships: **is this PR meant to be public?**

Everything merged here is publicly visible. If any of it should stay inside LeanCode, it doesn't belong in this repository.

If public is what you intended, just ignore this comment. :slightly_smiling_face:"
35 changes: 0 additions & 35 deletions .github/workflows/internal-contribution-reminder.yml

This file was deleted.

Loading