From 55bb078990f868ba14aac75ef5d27eda2f6b4c62 Mon Sep 17 00:00:00 2001 From: Peter Cihon <71285354+pcihon@users.noreply.github.com> Date: Mon, 28 Jun 2021 16:24:25 -0700 Subject: [PATCH] Create reminder for title changes to Site-Policy PRs prior to merging (#19968) * Create site-policy-reminder.yml * Update site-policy-reminder.yml * Update site-policy-reminder.yml * Fix prettier linting issues Co-authored-by: James M. Greene --- .github/workflows/site-policy-reminder.yml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/site-policy-reminder.yml diff --git a/.github/workflows/site-policy-reminder.yml b/.github/workflows/site-policy-reminder.yml new file mode 100644 index 0000000000..cd439f9641 --- /dev/null +++ b/.github/workflows/site-policy-reminder.yml @@ -0,0 +1,24 @@ +name: Site Policy Reminder + +# **What it does**: Automated comment reminder on a PR to change the title for public consumption before merging +# **Why we have it**: Titles of merged PRs to Site Policies are sent to the public site-policy repo +# **Who does it impact**: Docs team merging changes to Site Policies + +on: + pull_request: + types: [labeled] + +jobs: + run: + if: | + github.event.label.name == 'Site Policy' && + github.repository == 'github/docs-internal' + runs-on: ubuntu-latest + steps: + - uses: peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd + env: + GITHUB_TOKEN: ${{ secrets.API_TOKEN_SITEPOLICY }} + with: + issue-number: ${{ github.event.pull_request.number }} + body: | + Before merging, please remember to change the title of this PR to a description of its changes that is suitable for public viewing on github/site-policy.