https://github.com/dialpad/ping-on-pr
Pings a Dialpad channel using the public API when a pull request is assigned to a team.
https://github.com/dialpad/ping-on-pr
Last synced: about 1 year ago
JSON representation
Pings a Dialpad channel using the public API when a pull request is assigned to a team.
- Host: GitHub
- URL: https://github.com/dialpad/ping-on-pr
- Owner: dialpad
- License: mit
- Created: 2021-11-04T23:47:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-13T00:35:24.000Z (over 1 year ago)
- Last Synced: 2025-02-04T15:44:19.351Z (over 1 year ago)
- Language: JavaScript
- Size: 531 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
An action that sends a text message to a Dialpad channel when a PR is assigned to a review team.
This action uses the Dialpad public API (see: https://developers.dialpad.com). You must get an API key and create a github secret to use this.
This action should be called by a workflow on the pull_request review_requested event.
Building
```
ncc build index.js
```
Sample workflow
```
on:
pull_request:
types: [review_requested]
jobs:
ping_on_pr_job:
runs-on: ubuntu-latest
name: Ping on PR
steps:
- name: Ping on PR action step
uses: dialpad/ping-on-pr@v1.0
id: ping-on-pr
with:
api-key: ${{ secrets. }}
user-id: ''
review-teams-and-channels: '{"": ""}'
```