mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-15 17:46:12 +00:00
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Slack PR status
|
|
|
|
on:
|
|
pull_request_review:
|
|
types: [submitted, dismissed]
|
|
pull_request:
|
|
types: [closed, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
slack-pr-status:
|
|
# Secrets aren't available to workflows triggered from forks.
|
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: GitbookIO/slack-pr-status@main
|
|
with:
|
|
slack-token: ${{ secrets.SLAPR_SLACK_BOT_TOKEN }}
|
|
config: |
|
|
channels: [C01NXGWJELS]
|
|
approvalsRequired: 1
|
|
multiPr: aggregate
|
|
emojis:
|
|
commented: false
|
|
partiallyApproved: next_track_button
|
|
approved: pr-approved
|
|
changesRequested: construction
|
|
merged: merged
|
|
closed: no_entry_sign
|
|
partiallyReviewed: hourglass_flowing_sand
|