Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Slack pr open notification

Actions
Use github actions to notify slack that a pull request has been opened
v1.0.0
Star (14)

Tags

 (1)

Slack pull request open notification

Use github actions to notify slack that a pull request has been opened.

example

Usage

Add the following yaml to your github actions new workflow.

name: Slack pull request open notification

on:
  pull_request:
    types: [opened, reopened]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Notify slack pr open
      env: 
        SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
        PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number }}
        PULL_REQUEST_TITLE : ${{ github.event.pull_request.title }}
        PULL_REQUEST_AUTHOR_NAME : ${{ github.event.pull_request.user.login }}
        PULL_REQUEST_AUTHOR_ICON_URL : ${{ github.event.pull_request.user.avatar_url }}
        PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }}
        PULL_REQUEST_BODY : ${{ github.event.pull_request.body }}
        PULL_REQUEST_COMPARE_BRANCH_NAME : ${{ github.event.pull_request.head.ref }}
        PULL_REQUEST_BASE_BRANCH_NAME : ${{ github.event.pull_request.base.ref }}
        IS_SEND_HERE_MENTION : true
      uses: jun3453/slack-pr-open-notification-action@v1.0.0

Arguments

SLACK_WEBHOOK_URL

Write slack incomming webhook url. Please Set your repository secrets.

PULL_REQUEST_*

See the following URL. https://developer.github.com/v3/pulls/

IS_SEND_HERE_MENTION

boolean. Whether to include a mention here when sending a message.

Slack pr open notification is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Use github actions to notify slack that a pull request has been opened
v1.0.0

Tags

 (1)

Slack pr open notification is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.