Skip to content

Commit

Permalink
Adicionando arquivo notifier.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmiguelacct committed Mar 19, 2024
1 parent 5714156 commit 77f3ed6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/notifier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@


name: Revisão de Pull Request

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

jobs:
messageSlack:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Get repository name
id: repo_name
run: echo "::set-output name=name::${{ github.repository }}"

- name: Get pull request details
id: pr_details
run: echo "::set-output name=details::${{ toJson(github.event.pull_request) }}"

- name: Notification Slack
uses: rtCamp/action-slack-notify@v2.2.0
env:
SLACK_CHANNEL: securityreview-alarms
SLACK_USERNAME: BotCI
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_MESSAGE: |
Temos um novo PR para ser revisado no repositório ${{ steps.repo_name.outputs.name }}.
Pull Request: ${{ steps.pr_details.outputs.details.html_url }}
Autor: ${{ github.event.pull_request.user.login }}
Título: ${{ github.event.pull_request.title }}
Descrição: ${{ github.event.pull_request.body }}
Faça a validação assim que possível.

0 comments on commit 77f3ed6

Please sign in to comment.