-
Notifications
You must be signed in to change notification settings - Fork 5k
29 lines (28 loc) · 1.04 KB
/
pr-reviews.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
name: '[Support] PR review comment card movements'
on:
pull_request_review_comment:
types:
- created
pull_request_review:
types:
- submitted
- dismissed
permissions: {}
# Avoid concurrency over the same issue
concurrency:
group: card-movement-${{ github.event.pull_request.number }}
jobs:
just-notice:
# This is a dummy workflow that triggers a workflow_run
runs-on: ubuntu-latest
steps:
- run: |
echo "::notice:: Comment on PR #${{ github.event.pull_request.number }}"
jq -n --arg issue '${{ github.event.pull_request.number }}' --arg state '${{ github.event.review != null && github.event.review.state || '' }}' '{"issue": {"number": $issue }, "review": { "state": $state }}' > pull_request_info.json
- name: Upload the PR info
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
with:
name: pull_request_info.json
path: ./pull_request_info.json