Skip to content

Commit 0c196b9

Browse files
authored
Merge pull request #437 from vshn/develop
πŸ”€ Merge develop into master (Release)
2 parents ff4e767 + 30c604f commit 0c196b9

File tree

25 files changed

+1066
-80
lines changed

25 files changed

+1066
-80
lines changed

β€Ž.cruft.jsonβ€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"template": "https://github.com/vshn/appcat-cookiecutter",
3-
"commit": "9e29b2c7a3cf60e3817dff61b8f39bbc811c64e7",
4-
"checkout": "master",
3+
"commit": "8f29fab7ec7458dacdc42e208806c5669162d87f",
4+
"checkout": null,
55
"context": {
66
"cookiecutter": {
77
"app_name": "appcat",
8+
"appcat_repo": "vshn/appcat",
89
"component_repo": "vshn/component-appcat",
910
"push_upbound": false,
1011
"push_package": true,
@@ -14,7 +15,7 @@
1415
".github/changelog-configuration.json"
1516
],
1617
"_template": "https://github.com/vshn/appcat-cookiecutter",
17-
"_commit": "9e29b2c7a3cf60e3817dff61b8f39bbc811c64e7"
18+
"_commit": "8f29fab7ec7458dacdc42e208806c5669162d87f"
1819
}
1920
},
2021
"directory": null

β€Ž.github/PULL_REQUEST_TEMPLATE.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
- [ ] Update tests.
99
- [ ] Link this PR to related issues.
10+
- [ ] Merge with `/merge` comment.
1011

1112
<!--
1213
Remove items that do not apply. For completed items, change [ ] to [x].

β€Ž.github/workflows/check.ymlβ€Ž

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Check
2+
3+
on:
4+
schedule:
5+
- cron: '0 7 * * *' # Every day at 07:00 UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
check-develop-ahead:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout full history
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Check if develop contains all commits from master
18+
run: |
19+
if [ -n "$(git rev-list origin/master ^origin/develop)" ]; then
20+
echo "❌ develop is missing commits from master:"
21+
git log origin/develop..origin/master --oneline
22+
exit 1
23+
else
24+
echo "βœ… develop includes all commits from master"
25+
fi
26+
27+
- name: Notify Rocket.Chat if develop is behind
28+
if: failure()
29+
run: |
30+
curl -X POST "$ROCKETCHAT_WEBHOOK_URL" \
31+
-H 'Content-Type: application/json' \
32+
-d "{
33+
\"text\": \"🚨 *develop is behind master* in \`${{ github.repository }}\`\nπŸ” Please merge \`master\` into \`develop\` to stay in sync.\",
34+
\"attachments\": [{
35+
\"title\": \"GitHub Workflow: ${{ github.workflow }}\",
36+
\"title_link\": \"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\",
37+
\"text\": \"Triggered by: ${{ github.actor }}\",
38+
\"color\": \"#ff0000\"
39+
}]
40+
}"
41+
env:
42+
ROCKETCHAT_WEBHOOK_URL: ${{ secrets.ROCKETCHAT_WEBHOOK_URL }}
43+

0 commit comments

Comments
Β (0)