Skip to content

Commit 51f276f

Browse files
Change Process
1 parent bdf1b2d commit 51f276f

File tree

2 files changed

+8
-35
lines changed

2 files changed

+8
-35
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
1-
<!--
2-
From Core.yaml. Should match date YY.MM.DD.# ( Usually # is 1 )
3-
-->
41
Version:
52

6-
<!--
7-
You are amazing! Thanks for contributing to our project!
8-
Please, DO NOT DELETE ANY TEXT from this template! (unless instructed).
9-
-->
103
## What does this implement/fix?
114

125

136

147
## Types of changes
15-
<!--
16-
What type of change does your PR introduce?
17-
NOTE: Please, check only 1! box!
18-
If your PR requires multiple boxes to be checked, you'll most likely need to
19-
split it into multiple PRs. This makes things easier and faster to code review.
20-
-->
218

229
- [ ] Bugfix (fixed change that fixes an issue)
2310
- [ ] New feature (thanks!)
@@ -28,22 +15,12 @@ Version:
2815
- [ ] Github workflows - Does not publish
2916

3017

31-
## Checklist / Checklijst:
32-
<!--
33-
Put an `x` in the boxes that apply. You can also fill these out after
34-
creating the PR. If you're unsure about any of them, don't hesitate to ask.
35-
We're here to help! This is simply a reminder of what we are going to look
36-
for before merging your code.
37-
-->
18+
## Checklist:
3819

3920
- [ ] The code change has been tested and works locally
4021
- [ ] The code change has not yet been tested
4122

4223
If user-visible functionality or configuration variables are added/modified:
4324
- [ ] Added/updated documentation for the web page
4425

45-
<!--
46-
Thank you for contributing <3
47-
-->
48-
4926

.github/workflows/ci.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,16 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v4
2020

21-
# 1) Capture PR Body as Base64 (so special chars won't break the shell)
2221
- name: Write PR Body to File
23-
env:
24-
BODY_B64: ${{ github.event.pull_request.body | toBase64 }}
2522
run: |
26-
# Disable history expansion just in case
23+
# Disable history expansion so lines with '!' or '- [x]' won't be interpreted
2724
set +H
2825
set +o histexpand
2926
30-
# Decode the base64 into pr_body.txt
31-
echo "$BODY_B64" | base64 --decode > pr_body.txt
27+
echo "Saving the PR body to pr_body.txt..."
28+
# Write the entire multi-line body verbatim
29+
printf '%s\n' "${{ github.event.pull_request.body }}" > pr_body.txt
3230
33-
echo "Saved PR body to pr_body.txt:"
34-
cat pr_body.txt
35-
36-
# 2) Determine Single Label
3731
- name: Determine Single Label
3832
id: determine_label
3933
run: |
@@ -42,12 +36,15 @@ jobs:
4236
# 1) Bugfix
4337
if grep -qE '^- \\[x\\] Bugfix' pr_body.txt; then
4438
label="bugfix"
39+
4540
# 2) New feature
4641
elif grep -qE '^- \\[x\\] New feature' pr_body.txt; then
4742
label="new-feature"
43+
4844
# 3) Breaking change
4945
elif grep -qE '^- \\[x\\] Breaking change' pr_body.txt; then
5046
label="breaking-change"
47+
5148
# 4) Dependency update
5249
elif grep -qE '^- \\[x\\] Dependency Update - Does not publish' pr_body.txt; then
5350
label="dependency-update"
@@ -56,7 +53,6 @@ jobs:
5653
echo "Chosen label: $label"
5754
echo "chosen_label=$label" >> $GITHUB_OUTPUT
5855
59-
# 3) Apply Single Label (if chosen)
6056
- name: Apply Single Label
6157
if: ${{ steps.determine_label.outputs.chosen_label != '' }}
6258
uses: actions-ecosystem/action-add-labels@v1

0 commit comments

Comments
 (0)