@vtex/faststore-plugin-buyer-portal 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Changelog Integrity Check
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
check-changelog:
|
|
9
|
+
name: Check Changelog Integrity
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
# Skip this check if PR has the 'skip-changelog' label
|
|
12
|
+
if: "!contains(github.event.pull_request.labels.*.name, 'skip-changelog')"
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout code
|
|
16
|
+
uses: actions/checkout@v3
|
|
17
|
+
with:
|
|
18
|
+
fetch-depth: 0 # Fetch all history for comparing changes
|
|
19
|
+
|
|
20
|
+
- name: Set up Node.js
|
|
21
|
+
uses: actions/setup-node@v3
|
|
22
|
+
with:
|
|
23
|
+
node-version: "20"
|
|
24
|
+
|
|
25
|
+
- name: Check for CHANGELOG.md changes
|
|
26
|
+
id: check-changelog-updated
|
|
27
|
+
run: |
|
|
28
|
+
if git diff --name-only origin/${{ github.base_ref }} | grep -q "CHANGELOG.md"; then
|
|
29
|
+
echo "Changelog was updated. ✅"
|
|
30
|
+
echo "updated=true" >> $GITHUB_OUTPUT
|
|
31
|
+
else
|
|
32
|
+
echo "No changes to CHANGELOG.md found. ❌"
|
|
33
|
+
echo "updated=false" >> $GITHUB_OUTPUT
|
|
34
|
+
fi
|
|
35
|
+
|
|
36
|
+
- name: Fail if changelog not updated
|
|
37
|
+
if: steps.check-changelog-updated.outputs.updated == 'false'
|
|
38
|
+
run: |
|
|
39
|
+
# Check if this PR is exempt from requiring changelog updates
|
|
40
|
+
if [[ "${{ contains(github.event.pull_request.labels.*.name, 'documentation') || contains(github.event.pull_request.title, 'docs:') }}" == "true" ]]; then
|
|
41
|
+
echo "This is a documentation change. Skipping changelog check."
|
|
42
|
+
exit 0
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
echo "Error: No changes to CHANGELOG.md found. Please update the changelog with your changes."
|
|
46
|
+
echo "If this PR doesn't require a changelog entry, add the 'skip-changelog' label."
|
|
47
|
+
exit 1
|
|
48
|
+
|
|
49
|
+
- name: Comment on PR
|
|
50
|
+
if: failure() && github.event_name == 'pull_request'
|
|
51
|
+
uses: actions/github-script@v6
|
|
52
|
+
with:
|
|
53
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
54
|
+
script: |
|
|
55
|
+
github.rest.issues.createComment({
|
|
56
|
+
issue_number: context.issue.number,
|
|
57
|
+
owner: context.repo.owner,
|
|
58
|
+
repo: context.repo.repo,
|
|
59
|
+
body: '⚠️ **Changelog check failed!** Please update CHANGELOG.md with your changes. If this PR doesn\'t require a changelog entry, add the `skip-changelog` label.'
|
|
60
|
+
})
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.3.9] - 2025-10-21
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add Changelog entry check on actions
|
|
15
|
+
|
|
10
16
|
## [1.3.8] - 2025-10-17
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -62,6 +68,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
62
68
|
- Responsiviness to Roles and Roles Details page
|
|
63
69
|
|
|
64
70
|
### Added
|
|
71
|
+
|
|
65
72
|
- Responsiviness adjustment to to Buying policies page
|
|
66
73
|
|
|
67
74
|
### Added
|
|
@@ -152,17 +159,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
152
159
|
- Add CHANGELOG file
|
|
153
160
|
- Add README file
|
|
154
161
|
|
|
155
|
-
[unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.
|
|
162
|
+
[unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.9...HEAD
|
|
156
163
|
[1.2.3]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.2.2...1.2.3
|
|
157
164
|
[1.2.3]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.2.3
|
|
158
165
|
[1.2.4]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.2.4
|
|
159
166
|
[1.3.2]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.3.2
|
|
160
167
|
[1.3.3]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.3.3
|
|
161
168
|
[1.3.4]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.3.4
|
|
162
|
-
|
|
163
169
|
[1.3.5]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.3.5
|
|
164
|
-
|
|
165
170
|
[1.3.6]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.3.6
|
|
166
|
-
|
|
171
|
+
[1.3.9]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.8...v1.3.9
|
|
167
172
|
[1.3.8]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.7...v1.3.8
|
|
168
173
|
[1.3.7]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.3.7
|
package/package.json
CHANGED