build(deps): bump github.com/golangci/golangci-lint from 1.59.1 to 1.60.1 in /.ci/tools #445
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: | |
SLACK_WEBHOOK_URL: ${{ secrets.FEED_SLACK_WEBHOOK_URL }} | |
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | |
jobs: | |
feed: | |
name: Slack Notifications | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Community Check | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
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@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0 | |
with: | |
payload: | | |
{ | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": ":merged: <${{ github.event.pull_request.merged_by.html_url }}|${{ github.event.pull_request.merged_by.login }}> merged <${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.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@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0 | |
with: | |
payload: | | |
{ | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": ":open: <${{ github.event.pull_request.user.html_url }}|${{ github.event.pull_request.user.login }}> opened <${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}>" | |
} | |
} | |
] | |
} | |
- name: Partner Pull Request Opened | |
if: | | |
github.event.action == 'opened' | |
&& steps.community_check.outputs.partner == 'true' | |
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0 | |
with: | |
payload: | | |
{ | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": ":open: :aws: contributor <${{ github.event.pull_request.user.html_url }}|${{ github.event.pull_request.user.login }}> opened <${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}>" | |
} | |
} | |
] | |
} |