Skip to content
This repository was archived by the owner on Oct 6, 2026. It is now read-only.

Update releases.yml #100

Update releases.yml

Update releases.yml #100

name: Doc Review Slack Notifier

Check failure on line 1 in .github/workflows/docs-prs-review-slack.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docs-prs-review-slack.yml

Invalid workflow file

(Line: 12, Col: 14): Unexpected symbol: '+'. Located at position 37 within expression: github.event.pull_request.additions + github.event.pull_request.deletions
on:
pull_request:
types: [review_requested]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send notification if docs-prs requested
run: |
TEAM="${{ github.event.requested_team.slug }}"
if [ "$TEAM" = "docs-prs" ]; then
jq -n \
--arg title "${{ github.event.pull_request.title }}" \
--arg url "${{ github.event.pull_request.html_url }}" \
--arg author "${{ github.event.pull_request.user.login }}" \
--arg number "${{ github.event.pull_request.number }}" \
--arg lines "${{ github.event.pull_request.additions + github.event.pull_request.deletions }}" \
'{pr_title: $title, pr_url: $url, pr_author: $author, pr_number: $number, lines_changed: $lines}' \
| curl -X POST "${{ secrets.SLACK_DOC_REVIEW_WEBHOOK_URL }}" \
-H 'Content-Type: application/json' \
--fail-with-body \
-d @-
fi