Skip to content

Instantly share code, notes, and snippets.

@briantist
Created March 1, 2022 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briantist/42f09c9bf51bbdc34949902db9f8061c to your computer and use it in GitHub Desktop.
Save briantist/42f09c9bf51bbdc34949902db9f8061c to your computer and use it in GitHub Desktop.
a sample workflow for notifying on merged PRs of interest
---
name: Notify on docs of interest
on:
pull_request_target:
branches: [devel]
types: [closed]
paths:
- path1
- docs/**/some*pattern.rst
jobs:
notify:
name: Notify persons of interest
if: github.event.pull_request_target.merged
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Notify
uses: mshick/add-pr-comment@v1
with:
message: |
@githubuser doc stuff here!
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens
allow-repeats: false # This is the default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment