Skip to content

Commit

Permalink
feat: [SCRUM-41] update pull.request.opened.yml to notify slack
Browse files Browse the repository at this point in the history
  • Loading branch information
gavanlamb committed Jun 14, 2024
1 parent 39e9afd commit 2475cc9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/pull-request.opened.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/slack.notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Notify slack PR opened

on:
pull_request:
types:
- opened
- reopened

concurrency:
cancel-in-progress: false
group: pull-request-opened-${{ github.ref_name }}

jobs:
update:
name: Update slack
runs-on: ubuntu-latest
steps:
- uses: jun3453/slack-pr-open-notification-action@v1.3.0
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_OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
PULL_REQUEST_COMPARE_BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
PULL_REQUEST_BASE_BRANCH_OWNER: ${{ github.event.pull_request.base.repo.owner.login }}
PULL_REQUEST_BASE_BRANCH_NAME: ${{ github.event.pull_request.base.ref }}
IS_SEND_HERE_MENTION: true
MAKE_PRETTY: true

0 comments on commit 2475cc9

Please sign in to comment.