Skip to content

Commit bb4ece6

Browse files
katgiadlaPerMac
authored andcommitted
.github: Add information about quarantine process to PR
Codeowners should be informed if their test configuration is added to quarantine. First step is information about quarantine process for author of pull request. Signed-off-by: Katarzyna Giądła <[email protected]>
1 parent 4fd9348 commit bb4ece6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Quarantine validation
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
- v*-branch
8+
paths:
9+
- '**/scripts/quarantine*.yaml'
10+
jobs:
11+
quarantine-info:
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- name: Add information about quarantine process
15+
run: |
16+
# Find existing comment
17+
comment_id=$(gh pr view ${{ github.event.pull_request.number }} --json comments --jq '.comments[] | select(.body | contains("Quarantine Process")) | .id' || echo "")
18+
if [[ -z "$comment_id" ]]; then
19+
# No comment - create new one
20+
gh pr comment "$PR_NUMBER" --body "$BODY"
21+
fi
22+
env:
23+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
GH_REPO: ${{ github.repository }}
25+
PR_NUMBER: ${{ github.event.pull_request.number }}
26+
BODY: >
27+
Since quarantine was modified, please make sure
28+
you are following the process described in
29+
[Quarantine Process](https://nordicsemi.atlassian.net/wiki/spaces/NCS/pages/1104576817/Quarantine).

0 commit comments

Comments
 (0)