Skip to content

Commit 40fe7b3

Browse files
committed
chore: signal reviewer of migrations happening
Whane a new PR that touches migrations is made, an action is triggered to signal the reviewer: PRs that handle migrations should be merged carefully, as they need to run accordingly to the state of the repo. Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
1 parent e9902b5 commit 40fe7b3

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# This file is part of Edgehog.
3+
#
4+
# Copyright 2025 SECO Mind Srl
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
20+
21+
name: Migrations check
22+
23+
on:
24+
# Run on pull requests matching apps
25+
pull_request:
26+
paths:
27+
- "backend/priv/repo/migrations/**"
28+
- "backend/priv/resource_snapshots/**"
29+
- ".github/workflows/migrations-check.yaml"
30+
31+
jobs:
32+
comment:
33+
runs-on: ubuntu-latest
34+
permissions: write-all
35+
steps:
36+
- uses: mshick/add-pr-comment@v2
37+
with:
38+
message: |
39+
**⚠️ This PR chenges migrations and/or snapshots**
40+
Ensure that it is are based on the latest changes in the base branch before merging.

0 commit comments

Comments
 (0)