-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathpr-e2e-codeowners-notification.yml
More file actions
37 lines (33 loc) · 1.15 KB
/
Copy pathpr-e2e-codeowners-notification.yml
File metadata and controls
37 lines (33 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: PR Codeowners Notification
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- '*.x'
jobs:
notify-codeowners:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Check for changes in CODEOWNERS paths
uses: dorny/paths-filter@v4.0.1
id: filter
with:
filters: |
owned_paths:
- 'e2e-cypress/**'
- 'e2e-spock-geb/**'
- 'e2e-etl-python/**'
- name: Post notification comment
if: steps.filter.outputs.owned_paths == 'true'
uses: actions/github-script@v9.0.0
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '⚠️ **Codeowners Notification**: Changes detected in paths owned by specific users. Please ensure the following reviewers are involved/notified:\n\n' +
'- @garcanam @roicarrera (for e2e-cypress, e2e-spock-geb, e2e-etl-python)\n'
});