Skip to content

Commit 3561d62

Browse files
committed
Merge branch 'release/5.31.0'
2 parents b37f382 + 28600f3 commit 3561d62

42 files changed

Lines changed: 1244 additions & 205 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/rebase-pr.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# @format
2+
3+
name: Automatic Rebase
4+
on:
5+
issue_comment:
6+
types: [created]
7+
jobs:
8+
rebase:
9+
name: Rebase
10+
runs-on: ubuntu-latest
11+
if: >-
12+
github.event.issue.pull_request != '' &&
13+
(
14+
contains(github.event.comment.body, '/rebase') ||
15+
contains(github.event.comment.body, '/autosquash')
16+
)
17+
steps:
18+
- name: Checkout the latest code
19+
uses: actions/checkout@v3
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
23+
- name: Automatic Rebase
24+
uses: cirrus-actions/rebase@1.8
25+
with:
26+
autosquash: ${{ contains(github.event.comment.body, '/autosquash') || contains(github.event.comment.body, '/rebase-autosquash') }}
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @format
22

3-
name: Validate PR Title
3+
name: Validate PR Format
44

55
on:
66
pull_request:
@@ -11,15 +11,38 @@ permissions:
1111
pull-requests: write
1212

1313
jobs:
14-
alidate-pr-title:
14+
validate-pr-title:
15+
name: Validate PR Title
1516
runs-on: ubuntu-latest
1617
steps:
1718
- uses: actions/checkout@v4
1819
with:
1920
fetch-depth: 0
2021

2122
- name: Install dependencies
22-
run: npm ci && npm install -D $(jq -r '.commitlint.extends//""' 'package.json' | tr -d "'[]:,\"")
23+
run: npm ci && npm install -D $(jq -r '.commitlint.extends[]' 'package.json' | sed 's/^gitmoji$/commitlint-config-gitmoji/' | tr '\n' ' ')
2324

24-
- name: Validate PR title
25+
- name: Commitlint PR title
2526
run: echo "${{ github.event.pull_request.title }}" | npx commitlint
27+
28+
- name: Validate PR title has emoji
29+
run: |
30+
PR_TITLE="${{ github.event.pull_request.title }}"
31+
# Use devmoji to check if the PR title has an emoji
32+
FORMATTED_TITLE=$(npx --yes devmoji --text "$PR_TITLE")
33+
34+
# If devmoji added an emoji, it means the original didn't have one
35+
if [ "$PR_TITLE" != "$FORMATTED_TITLE" ]; then
36+
echo "❌ PR title is missing an emoji!"
37+
echo "Original: $PR_TITLE"
38+
echo "Expected: $FORMATTED_TITLE"
39+
echo ""
40+
echo "Please add an emoji to your PR title. Use conventional commit format with emoji."
41+
echo "Example: 'feat: ✨ add new feature' or 'fix: 🐛 fix bug'"
42+
echo ""
43+
echo "Available emojis:"
44+
npx --yes devmoji --list
45+
exit 1
46+
else
47+
echo "✅ PR title contains an emoji!"
48+
fi
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# @format
2+
3+
name: Validate PR Secrets
4+
5+
on:
6+
pull_request:
7+
types: [opened, edited, reopened, synchronize]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
13+
jobs:
14+
gitleaks:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Run Gitleaks
22+
uses: gitleaks/gitleaks-action@v2
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,70 @@
22

33
# Changelog
44

5+
## 5.31.1 (2025-10-09)
6+
7+
_Commits from: v5.30.2..HEAD_
8+
9+
### 📂 Unscoped changes
10+
11+
#### Bug Fixes
12+
13+
- 🐛 correct typo in validate-pr-title job name and use standard PR validation action (#32) ([3a15569](https://github.com/tomgrv/devcontainer-features/commit/3a15569b5be5d48c9d990270203bbfa0e6809768))
14+
- 🐛 ensure upstream tracking when pushing CHANGELOG ([d6b68ca](https://github.com/tomgrv/devcontainer-features/commit/d6b68ca981b0dc5df85cfca74e0aea92aa5140db))
15+
- 🐛 update GitVersion command to use default config path if not specified ([6d424be](https://github.com/tomgrv/devcontainer-features/commit/6d424becfc8ce8dee9bb544f41df65b04f80ad42))
16+
17+
#### Features
18+
19+
- ✨ 🆕 add automatic rebase workflow ([f1601b5](https://github.com/tomgrv/devcontainer-features/commit/f1601b59349301824f4d5457ab2b0e74f2dca058))
20+
21+
#### Other changes
22+
23+
- ✨ Add validate-pr-secret workflow with gitleaks-action (#34) ([0d621cb](https://github.com/tomgrv/devcontainer-features/commit/0d621cbc97763bb04173f72ff5a5f7f913e6fffd))
24+
- Merge tag 'v5.30.0' into develop ([4792b33](https://github.com/tomgrv/devcontainer-features/commit/4792b330b10e25cbe81ff4b27c3fda1b889fe88a))
25+
- Merge tag 'v5.30.1' into develop ([05fcd5d](https://github.com/tomgrv/devcontainer-features/commit/05fcd5dd8486bbe27f70b206951160f9484b8d89))
26+
- Merge tag 'v5.30.2' into develop ([f30c1f4](https://github.com/tomgrv/devcontainer-features/commit/f30c1f4f3c105f26b68d09007699c895ecca185d))
27+
- ♻️ 🛠️ rename job and update workflow name for clarity ([1dec739](https://github.com/tomgrv/devcontainer-features/commit/1dec7390e9c5a1ac6ed45926457ade345fdcbc04))
28+
- ⚡️ update extensions ([2f1ef08](https://github.com/tomgrv/devcontainer-features/commit/2f1ef0859a492de9e429257b8eba252e16f4f678))
29+
30+
### 📦 common-utils changes
31+
32+
#### Features
33+
34+
- ✨ add zz*dist script to manage zz*\* utilities distribution (#30) ([c09d9da](https://github.com/tomgrv/devcontainer-features/commit/c09d9da4938c551ad9e712f2531a691819768c98))
35+
36+
### 📦 githooks changes
37+
38+
#### Other changes
39+
40+
- ♻️ remove checkout-version script ([921e944](https://github.com/tomgrv/devcontainer-features/commit/921e9444b4860fbb51582c15a8b913db5949d07c))
41+
42+
### 📦 gitutils changes
43+
44+
#### Bug Fixes
45+
46+
- 🐛 add missing flag to bump-changelog ([e796429](https://github.com/tomgrv/devcontainer-features/commit/e796429b1e1e354857f3d3b8068e2e1e42cf3cc0))
47+
- 🐛 set default branch ([a79d632](https://github.com/tomgrv/devcontainer-features/commit/a79d63283c86a2f9de51a90ee62099bfa5cf02c8))
48+
49+
#### Features
50+
51+
- ✨ add git fix date (#28) ([7de727c](https://github.com/tomgrv/devcontainer-features/commit/7de727cfb39bc8dc1f12a04f9dbcdf12d8fdfdaa))
52+
- ✨ add script to rebase commits from one branch to another ([9d22977](https://github.com/tomgrv/devcontainer-features/commit/9d22977e0be4ef2133e39db113fcfffc5d8b8cbe))
53+
54+
#### Other changes
55+
56+
- 📦️ 🆕 add automatic rebase action for pr via comments ([448bea2](https://github.com/tomgrv/devcontainer-features/commit/448bea2cd5ca8b78fb92449a44d6d2c8a00c29a3))
57+
- ♻️ 🧹 remove confirmation prompt ([720494a](https://github.com/tomgrv/devcontainer-features/commit/720494ace59083d714ffed2e53d6ac3a1fe20659))
58+
59+
### 📦 gitversion changes
60+
61+
#### Bug Fixes
62+
63+
- 🐛 correct minimal flag argument in bump version utility ([5b766b1](https://github.com/tomgrv/devcontainer-features/commit/5b766b1bd95cc84adbd152aa855ad1131d211e11))
64+
65+
#### Features
66+
67+
- ✨ 🆕 add initial .gitignore for Gitversion ([6881ee8](https://github.com/tomgrv/devcontainer-features/commit/6881ee8623a5384a8447a8dc9ba61000297aa799))
68+
569
## 5.30.2 (2025-10-02)
670

771
_Commits from: v5.30.1..HEAD_
@@ -241,4 +305,4 @@ _Commits from: v5.25.0..HEAD_
241305

242306
---
243307

244-
_Generated on 2025-10-02 by [tomgrv/devcontainer-features](https://github.com/tomgrv/devcontainer-features)_
308+
_Generated on 2025-10-09 by [tomgrv/devcontainer-features](https://github.com/tomgrv/devcontainer-features)_

package-lock.json

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tomgrv/devcontainer-features",
3-
"version": "5.30.2",
3+
"version": "5.31.1",
44
"description": "Configure dev environment with devcontainer, gitflow, gitversion, git aliases & hooks. Can be used a devcontainer features",
55
"keywords": [
66
"dev",

src/act/_act-reset.sh

100644100755
File mode changed.

src/act/_act-run.sh

100644100755
File mode changed.

src/act/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "act",
33
"name": "Nektos Act",
44
"description": "A tool for running GitHub Actions locally",
5-
"version": "5.30.2",
5+
"version": "5.31.1",
66
"dependsOn": {
77
"ghcr.io/devcontainers/features/docker-in-docker": {},
88
"ghcr.io/tomgrv/devcontainer-features/common-utils:5": {}

src/act/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tomgrv/act",
3-
"version": "5.30.2",
3+
"version": "5.31.1",
44
"description": "Nektos Act - GitHub Actions local runner integration",
55
"files": [
66
"_*.sh",

0 commit comments

Comments
 (0)