Skip to content

Commit 4b1695e

Browse files
authored
chore: release prep for v1.24.5 (#150)
* chore: release prep for v1.24.5 * fix: added explicit permissions to branch-guard.yml
1 parent a723a39 commit 4b1695e

File tree

4 files changed

+1850
-57
lines changed

4 files changed

+1850
-57
lines changed

.github/workflows/branch-guard.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# .github/workflows/branch-guard.yml
2+
#
3+
# Copyright © 2025 Network Pro Strategies (Network Pro™)
4+
# SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5+
# This file is part of Network Pro
6+
#
7+
# Warns if commits are pushed directly to master/main instead of via PR.
8+
# Does NOT block the commit — it just posts a workflow summary and log warning.
9+
10+
name: Branch Guard
11+
12+
on:
13+
push:
14+
branches:
15+
- master
16+
- main
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
warn-direct-commit:
23+
runs-on: ubuntu-24.04
24+
steps:
25+
- name: Check commit source
26+
run: |
27+
# Only trigger warning if commit wasn't from a merge or bot
28+
if [[ "${{ github.event.head_commit.message }}" != *"Merge pull request"* ]] && \
29+
[[ "${{ github.actor }}" != "dependabot[bot]" ]]; then
30+
echo "::warning ::⚠️ Direct commit to ${GITHUB_REF##*/} by $GITHUB_ACTOR."
31+
echo "### ⚠️ Direct Commit Detected" >> $GITHUB_STEP_SUMMARY
32+
echo "A commit was pushed directly to \`${GITHUB_REF##*/}\` by **${GITHUB_ACTOR}**." >> $GITHUB_STEP_SUMMARY
33+
echo "" >> $GITHUB_STEP_SUMMARY
34+
echo "💡 It's recommended to use pull requests for traceability and CI validation." >> $GITHUB_STEP_SUMMARY
35+
else
36+
echo "✅ Merge or bot commit detected — no action needed."
37+
fi

CHANGELOG.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,40 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
2222

2323
---
2424

25+
## [1.24.5]
26+
27+
### Added
28+
29+
- Introduced **Branch Guard workflow** (`.github/workflows/branch-guard.yml`) to automatically enforce branch protection policies.
30+
- Ensures consistent branch naming conventions.
31+
- Blocks direct pushes to protected branches (e.g., `master`, `main`, and `release/*`).
32+
- Provides early validation for pull requests and feature branches to maintain repository integrity.
33+
- Introduced comprehensive pre-push checks for code consistency and style compliance.
34+
- Added optional `simple-git-hooks` configuration to automate local linting before commits or pushes.
35+
- Implemented `lint:all` script using `npm-run-all` for efficient, parallel execution of linters.
36+
- Ensures **ESLint**, **Stylelint**, **Markdownlint**, and **Prettier** all run before code is committed, improving codebase hygiene and preventing formatting drift.
37+
- Designed for **developer-side speed and reliability**, running linters in parallel while deferring `format` (Prettier) until after lint checks complete for safety.
38+
- Added **hybrid linting configuration**:
39+
- Parallel execution for static lint tasks (`eslint`, `stylelint`, `markdownlint`).
40+
- Sequential Prettier formatting step for deterministic, race-free execution.
41+
42+
### Changed
43+
44+
- Reorganized local linting commands for clarity and consistency, consolidating redundant sequential scripts into the `lint:all` aggregator.
45+
- Improved developer experience with faster pre-push validations and clearer script naming conventions.
46+
- Bumped project version to `v1.24.5`.
47+
48+
### Developer Experience
49+
50+
- Enhanced local development workflow by introducing **fast, parallel linting** and **optional pre-commit hooks**, reducing turnaround time for style and quality checks.
51+
- Simplified npm scripts for readability and maintainability by adopting `npm-run-all` as the central task runner.
52+
53+
### Notes
54+
55+
- For instructions on installing and configuring the new dependencies, please see the **[Editor Configuration](https://github.com/netwk-pro/netwk-pro.github.io/wiki/Editor-Configuration#automation)** section of the [Wiki](https://github.com/netwk-pro/netwk-pro.github.io/wiki).
56+
57+
---
58+
2559
## [1.24.4]
2660

2761
### Documentation
@@ -250,7 +284,7 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
250284
- Updated the text of `ServicesContent.svelte`.
251285
- Increased default Playwright test timeouts for navigation-sensitive suites (Desktop and Mobile) to improve stability under CI latency conditions.
252286
- Implemented `Promise.all()` pattern for combined click and navigation waits, reducing flakiness in route transition tests.
253-
- Updated the `'about' link` navigation tests in both Desktop and Mobile scenarios to include:
287+
- Updated the `about` link navigation tests in both Desktop and Mobile scenarios to include:
254288
- Explicit `page.waitForLoadState('domcontentloaded')` calls before assertions.
255289
- Extended per-suite timeouts (`90s`) using `test.setTimeout(90000)` for reliability on slower environments.
256290
- Added fallback `waitForURL('\*\*/about', { timeout: 60000 })` to ensure deterministic routing checks.
@@ -1481,7 +1515,8 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
14811515

14821516
<!-- Link references -->
14831517

1484-
[Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.24.4...HEAD
1518+
[Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.24.5...HEAD
1519+
[1.24.5]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.24.5
14851520
[1.24.4]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.24.4
14861521
[1.24.3]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.24.3
14871522
[1.24.2]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.24.2

0 commit comments

Comments
 (0)