forked from vtex-apps/search-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5714156
commit 77f3ed6
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
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
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. | ||