Skip to content
Closed
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
30 changes: 1 addition & 29 deletions .github/workflows/merged-notification.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,2 @@
name: Merged notification

# **What it does**: When we merge an open-source pull request, we want to set expectations that deployment may take awhile.
# **Why we have it**: We deploy to production from docs-internal, not docs.
# **Who does it impact**: Open-source contributors.

on:
# Needed in lieu of `pull_request` so that the notification comment is posted to a PR from a fork.
pull_request_target:
types:
- 'closed'

permissions:
issues: write
pull-requests: write
contents: read

jobs:
comment:
if: github.repository == 'github/docs' && github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch && github.event.pull_request.user.login != 'docs-bot'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
with:
script: |
github.rest.issues.createComment({
...context.repo,
issue_number: context.payload.pull_request.number,
body: "Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our [help wanted issues](https://github.com/github/docs/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) :zap:"
})
https://github.com/Work-Overflow/workoverflow-desktop/blob/a41fa4e809836e26e49ec55ce3125d80f9d56c59/LEGACY/old-capitalistic-workoverflow.svg?short_path=9ad3117
Loading