build(deps): bump actions/create-github-app-token from 1.11.0 to 1.11.1 #187
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Feed | |
on: | |
pull_request_target: | |
types: [opened, closed] | |
permissions: | |
contents: read | |
env: | |
PR_HTML_URL: ${{ github.event.pull_request.html_url }} | |
PR_TITLE: ${{ github.event.pull_request.title }} | |
jobs: | |
feed: | |
name: Slack Notifications | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Community Check | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
sparse-checkout: .github/actions/community_check | |
- name: Run Community Check | |
id: community_check | |
uses: ./.github/actions/community_check | |
with: | |
user_login: ${{ github.event.pull_request.user.login }} | |
maintainers: ${{ secrets.MAINTAINERS }} | |
partners: ${{ secrets.PARTNERS }} | |
- name: Pull Request Merged | |
if: github.event.pull_request.merged | |
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 | |
env: | |
MERGED_BY_URL: ${{ github.event.pull_request.merged_by.html_url }} | |
MERGED_BY_LOGIN: ${{ github.event.pull_request.merged_by.login }} | |
with: | |
webhook: ${{ secrets.FEED_SLACK_WEBHOOK_URL }} | |
webhook-type: incoming-webhook | |
payload: | | |
{ | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": ${{ toJSON(format(':merged: [AWSCC] <{0}|{1}> merged <{2}|{3}>', env.MERGED_BY_URL, env.MERGED_BY_LOGIN, env.PR_HTML_URL, env.PR_TITLE)) }} | |
} | |
} | |
] | |
} | |
- name: Maintainer Pull Request Opened | |
if: | | |
github.event.action == 'opened' | |
&& steps.community_check.outputs.maintainer == 'true' | |
&& github.actor != 'dependabot[bot]' | |
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 | |
env: | |
PR_AUTHOR_URL: ${{ github.event.pull_request.user.html_url }} | |
PR_AUTHOR_LOGIN: ${{ github.event.pull_request.user.login }} | |
with: | |
webhook: ${{ secrets.FEED_SLACK_WEBHOOK_URL }} | |
webhook-type: incoming-webhook | |
payload: | | |
{ | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": ${{ toJSON(format(':open: [AWSCC] <{0}|{1}> opened <{2}|{3}>', env.PR_AUTHOR_URL, env.PR_AUTHOR_LOGIN, env.PR_HTML_URL, env.PR_TITLE)) }} | |
} | |
} | |
] | |
} | |
- name: Partner Pull Request Opened | |
if: | | |
github.event.action == 'opened' | |
&& steps.community_check.outputs.partner == 'true' | |
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 | |
env: | |
PR_AUTHOR_URL: ${{ github.event.pull_request.user.html_url }} | |
PR_AUTHOR_LOGIN: ${{ github.event.pull_request.user.login }} | |
with: | |
webhook: ${{ secrets.FEED_SLACK_WEBHOOK_URL }} | |
webhook-type: incoming-webhook | |
payload: | | |
{ | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": ${{ toJSON(format(':open: [AWSCC] :aws: contributor <{0}|{1}> opened <{2}|{3}>', env.PR_AUTHOR_URL, env.PR_AUTHOR_LOGIN, env.PR_HTML_URL, env.PR_TITLE)) }} | |
} | |
} | |
] | |
} |