-
Notifications
You must be signed in to change notification settings - Fork 17
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
Showing
13 changed files
with
249 additions
and
54 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,6 @@ | ||
## Description | ||
|
||
## References | ||
### QA-test: | ||
### Jira-link: | ||
### Artifact URL: |
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
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
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,54 @@ | ||
name: Send message to Teams (regression PR) | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
[regression] | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Send a message to Microsoft Teams | ||
uses: VirtoCommerce/vc-github-actions/msteams-send-message@master | ||
with: | ||
body: '{ | ||
"@type": "MessageCard", | ||
"@context": "http://schema.org/extensions", | ||
"themeColor": "0076D7", | ||
"summary": "On ${{github.repository}} repository", | ||
"sections": [ | ||
{ | ||
"activityTitle": "Regression PR created/updated", | ||
"activitySubtitle": "By [${{ github.event.pull_request.user.login }}](${{ github.event.pull_request.user.url }}) on **[${{github.repository}}](${{github.server_url}}/${{github.repository}})** repository", | ||
"activityImage":"${{ github.event.pull_request.user.avatar_url }}", | ||
"facts": [ | ||
{ | ||
"name": "Repository", | ||
"value": "[${{github.repository}}](${{github.server_url}}/${{github.repository}})" | ||
}, | ||
{ | ||
"name": "Pull request", | ||
"value": "[${{ github.event.pull_request.number }}](${{ github.event.pull_request._links.html.href }})" | ||
}, | ||
{ | ||
"name": "Pull request title", | ||
"value": "${{ github.event.pull_request.title }}" | ||
} | ||
], | ||
"markdown": true | ||
} | ||
], | ||
"potentialAction": [ { | ||
"@type": "OpenUri", | ||
"name": "View Pull Request", | ||
"targets": [{ | ||
"os": "default", | ||
"uri": "${{ github.event.pull_request._links.html.href }}" | ||
}] | ||
}] | ||
}' # the body of the message | ||
webhook_uri: ${{ secrets.PLATFORM_TEAMS_URI }} |
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
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
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
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
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
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
Oops, something went wrong.