Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adds GH action for MMI #23778

Merged
merged 39 commits into from
Apr 17, 2024
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
44a4829
chore: adds gh actions
zone-live Mar 27, 2024
92e94f5
chore: updates secret name to MMI_LABEL_SLACK_WEBHOOK_URL
zone-live Mar 28, 2024
9455a78
Merge branch 'develop' into MMI-4847-gh-action-autotag-mmi-team
zone-live Apr 1, 2024
9207c7a
Update .github/workflows/add-mmi-reviewer-and-notify.yml
zone-live Apr 2, 2024
1686f4c
chore: updates reviewers to team_reviewers
zone-live Apr 2, 2024
f762757
chore: test on pull_request
zone-live Apr 3, 2024
3c335d0
chore: test on pull_request
zone-live Apr 3, 2024
ab2aa1c
chore: test and update
zone-live Apr 3, 2024
0e05204
Merge branch 'develop' into MMI-4847-gh-action-autotag-mmi-team
zone-live Apr 3, 2024
24b4e15
chore: update
zone-live Apr 3, 2024
7fcff6e
chore: update
zone-live Apr 3, 2024
793d1c0
chore: update
zone-live Apr 3, 2024
b7d1ffb
chore: update action to use slackapi
zone-live Apr 3, 2024
e40e80d
chore: update action to use slackapi
zone-live Apr 3, 2024
907c7a1
chore: update action
zone-live Apr 3, 2024
adb968f
chore: use slackAPI version 007b2c3c751a190b6f0f040e47ed024deaa72844
zone-live Apr 3, 2024
dfb5e93
chore: just me sadly, for now
zone-live Apr 3, 2024
fffd2e0
chore: back to the team, because It cant be me alone
zone-live Apr 3, 2024
2f2dc4f
chore: test
zone-live Apr 4, 2024
2a32fae
chore: test
zone-live Apr 4, 2024
50c6334
chore: test
zone-live Apr 4, 2024
74fbe45
chore: test
zone-live Apr 4, 2024
73bed34
chore: test
zone-live Apr 4, 2024
051ff43
chore: test
zone-live Apr 4, 2024
6b8cd0f
chore: test
zone-live Apr 4, 2024
b5cb123
chore: test
zone-live Apr 4, 2024
e1b0a79
chore: test
zone-live Apr 4, 2024
d27db18
chore: test
zone-live Apr 4, 2024
5aa2859
chore: test notify step
zone-live Apr 12, 2024
3083fec
chore: test github.repository
zone-live Apr 12, 2024
293a8f5
chore: test github.repository
zone-live Apr 12, 2024
0825147
chore: test github.repository
zone-live Apr 12, 2024
b094f8f
chore: version fix
zone-live Apr 12, 2024
ea5fb3d
chore: clean up
zone-live Apr 12, 2024
66fd713
Merge branch 'develop' into MMI-4847-gh-action-autotag-mmi-team
zone-live Apr 12, 2024
4c56591
chore: passing url in payload text
zone-live Apr 15, 2024
fad9312
Merge branch 'MMI-4847-gh-action-autotag-mmi-team' of github.com:Meta…
zone-live Apr 15, 2024
f106a1e
Merge branch 'develop' into MMI-4847-gh-action-autotag-mmi-team
zone-live Apr 16, 2024
983c497
Update .github/workflows/add-mmi-reviewer-and-notify.yml
zone-live Apr 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/add-mmi-reviewer-and-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Notify MMI team via Slack

on:
pull_request_target:
branches:
- develop
types:
- opened
- reopened
- synchronize
- labeled

jobs:
process-label:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Notify MMI team via Slack
if: contains(github.event.pull_request.labels.*.name, 'team-mmi')
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844
with:
status: custom
fields: repo,message,commit,author,action
payload: |
{
"text": "A PR with label 'team-mmi' was added and requires review: ${{ github.event.pull_request.html_url }} in ${{ github.repository }}",
"attachments": [
{
"color": "#2eb886",
"fields": [
{
"title": "Repository",
"value": "${{ github.repository }}",
"short": true
},
{
"title": "PR",
"value": "#${{ github.event.pull_request.number }}",
"short": true
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.MMI_LABEL_SLACK_WEBHOOK_URL }}
Loading