mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 02:06:56 -06:00
Slack notification on issue or pull requests
This commit is contained in:
20
.github/workflows/slack-notify-pr.yml
vendored
20
.github/workflows/slack-notify-pr.yml
vendored
@@ -1,20 +1,22 @@
|
|||||||
on:
|
on:
|
||||||
issues:
|
pull_request:
|
||||||
types: [opened, reopened, deleted, closed]
|
branches:
|
||||||
name: Slack Issue Notification
|
- master
|
||||||
|
types: [opened, reopened, closed]
|
||||||
|
name: Slack Pull Request Notification
|
||||||
jobs:
|
jobs:
|
||||||
slackNotification:
|
slackNotification:
|
||||||
name: Slack Notification Issue
|
name: Slack Notification PR
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Slack Notification Issue
|
- name: Slack Notification PR
|
||||||
uses: rtCamp/action-slack-notify@master
|
uses: rtCamp/action-slack-notify@master
|
||||||
env:
|
env:
|
||||||
SLACK_CHANNEL: partnereng-issues
|
SLACK_CHANNEL: partnereng-pullrequest
|
||||||
SLACK_COLOR: '#00A86B'
|
SLACK_COLOR: '#00A86B'
|
||||||
SLACK_ICON: https://pbs.twimg.com/profile_images/978188446178082817/86ulJdF0.jpg
|
SLACK_ICON: https://pbs.twimg.com/profile_images/978188446178082817/86ulJdF0.jpg
|
||||||
SLACK_TITLE: "[${{ github.event.issue.state}}] ${{ github.event.issue.title }} on ${{ github.repository }} :rocket:"
|
SLACK_TITLE: "[${{ github.event.pull_request.state}}] ${{ github.event.pull_request.title }} on ${{ github.repository }} :rocket:"
|
||||||
SLACK_MESSAGE: 'Link: ${{ github.event.issue.url }}'
|
SLACK_MESSAGE: 'Merging from ${{ github.head_ref }} to ${{ github.base_ref }} by ${{ github.actor }}. Link: ${{ github.event.pull_request._links.html.href }}'
|
||||||
SLACK_USERNAME: PartnerEngineers
|
SLACK_USERNAME: PartnerEngineers
|
||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_ISSUE_WEBHOOK }}
|
SLACK_WEBHOOK: ${{ secrets.SLACK_PR_WEBHOOK }}
|
||||||
Reference in New Issue
Block a user