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

Commit 8f71731

Browse files
committed
test: v4 - FULL Slack notification with secret
1 parent ec9d676 commit 8f71731

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

‎.github/workflows/slack-test-v1.yml‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Step 3 - Multi-line script
11+
- name: Step 4 - Full Slack notification
1212
run: |
1313
TEAM="${{ github.event.requested_team.slug }}"
14-
echo "Team is $TEAM"
1514
if [ "$TEAM" = "docs-prs" ]; then
16-
echo "docs-prs was requested!"
15+
jq -n \
16+
--arg title "${{ github.event.pull_request.title }}" \
17+
--arg url "${{ github.event.pull_request.html_url }}" \
18+
--arg author "${{ github.event.pull_request.user.login }}" \
19+
--arg number "${{ github.event.pull_request.number }}" \
20+
--arg lines "${{ github.event.pull_request.additions + github.event.pull_request.deletions }}" \
21+
'{pr_title: $title, pr_url: $url, pr_author: $author, pr_number: $number, lines_changed: $lines}' \
22+
| curl -X POST "${{ secrets.SLACK_DOC_REVIEW_WEBHOOK_URL }}" \
23+
-H 'Content-Type: application/json' \
24+
--fail-with-body \
25+
-d @-
1726
fi

0 commit comments

Comments
 (0)