-
-
Notifications
You must be signed in to change notification settings - Fork 871
164 lines (146 loc) · 5.19 KB
/
Copy pathchangelog.yml
File metadata and controls
164 lines (146 loc) · 5.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
name: Changelog check
on:
pull_request:
types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
branches:
- seven
env:
node-version: 24.x
jobs:
towncrier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
# Fetch all history
fetch-depth: '0'
- name: Install towncrier
run: pip install towncrier
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
seven:
- 'apps/seven/**'
client:
- 'packages/client/**'
registry:
- 'packages/registry/**'
components:
- 'packages/components/**'
cmsui:
- 'packages/cmsui/**'
helpers:
- 'packages/helpers/**'
types:
- 'packages/types/**'
publicui:
- 'packages/publicui/**'
plate:
- 'packages/plate/**'
reactrouter:
- 'packages/react-router/**'
blocks:
- 'packages/blocks/**'
layout:
- 'packages/layout/**'
theming:
- 'packages/theming/**'
wrongNews:
- added|modified: 'news/**'
- name: seven changelog check
if: steps.filter.outputs.seven == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir apps/seven
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: CMSUI changelog check
if: steps.filter.outputs.cmsui == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/cmsui
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Client changelog check
if: steps.filter.outputs.client == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/client
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Registry changelog check
if: steps.filter.outputs.registry == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/registry
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Components changelog check
if: steps.filter.outputs.components == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/components
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Helpers changelog check
if: steps.filter.outputs.helpers == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/helpers
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Types changelog check
if: steps.filter.outputs.types == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/types
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Public UI changelog check
if: steps.filter.outputs.publicui == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/publicui
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Plate changelog check
if: steps.filter.outputs.plate == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/plate
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: React Router changelog check
if: steps.filter.outputs.reactrouter == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/react-router
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Blocks changelog check
if: steps.filter.outputs.blocks == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/blocks
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Layout changelog check
if: steps.filter.outputs.layout == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/layout
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Theming changelog check
if: steps.filter.outputs.theming == 'true'
run: |
git fetch --no-tags origin seven
towncrier check --compare-with origin/seven --dir packages/theming
env:
BASE_BRANCH: ${{ github.base_ref }}
- name: Wrong location of news changelog check
if: steps.filter.outputs.wrongNews == 'true'
run: echo "News items should be moved from the repository root to the appropriate package root in `packages/package-name`." && exit 1
env:
BASE_BRANCH: ${{ github.base_ref }}