Skip to content

Commit 2ad8e5d

Browse files
committed
build: update reviewer team and ensure proper newline handling
1 parent 0d591da commit 2ad8e5d

9 files changed

Lines changed: 22 additions & 21 deletions

.github/workflows/lint_random_files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,6 @@ jobs:
409409
labels: |
410410
automated-pr
411411
team-reviewers: |
412-
stdlib-reviewers
412+
reviewers
413413
branch: 'fix-lint-errors'
414414
delete-branch: true

.github/workflows/markdown_equations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
documentation
149149
automated-pr
150150
team-reviewers: |
151-
stdlib-reviewers
151+
reviewers
152152
branch: markdown-insert-equations
153153
delete-branch: true
154154

.github/workflows/markdown_tocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
documentation
118118
automated-pr
119119
team-reviewers: |
120-
stdlib-reviewers
120+
reviewers
121121
branch: update-namespace-tocs
122122
delete-branch: true
123123

.github/workflows/namespace_declarations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
documentation
107107
automated-pr
108108
team-reviewers: |
109-
stdlib-reviewers
109+
reviewers
110110
branch: update-namespace-declarations
111111
delete-branch: true
112112

.github/workflows/namespace_exports.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ jobs:
127127
labels: |
128128
automated-pr
129129
team-reviewers: |
130-
stdlib-reviewers
130+
reviewers
131131
branch: update-namespace-exports
132132
delete-branch: true

.github/workflows/update_contributors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
documentation
9898
automated-pr
9999
team-reviewers: |
100-
stdlib-reviewers
100+
reviewers
101101
branch: update-contributors
102102
delete-branch: true
103103

.github/workflows/update_error_databases.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ jobs:
7777
node lib/node_modules/@stdlib/error/tools/pkg2id/scripts/build.js
7878
node lib/node_modules/@stdlib/error/tools/id2pkg/scripts/build.js
7979
80-
# Generate Markdown table of added error codes:
81-
- name: 'Generate Markdown table of added error codes'
82-
id: generate-markdown-table
80+
# Generate comment with Markdown table of added error codes:
81+
- name: 'Generate comment body with Markdown table of added error codes'
82+
id: generate-comment-body
8383
run: |
8484
# Get the diff of the CSV file:
8585
git_diff=$(git diff lib/node_modules/@stdlib/error/tools/database/data/data.csv)
@@ -113,6 +113,15 @@ jobs:
113113
114114
# Assign the table to an output variable:
115115
echo "table=${table}" >> $GITHUB_OUTPUT
116+
117+
# Generate a comment body:
118+
body="This PR\n\n- updates the error databases\n\nThe following error codes were added:\n\n${table}"
119+
120+
# Add the comment body to the workflow output after escaping to preserve newlines:
121+
body="${body//'%'/'%25'}"
122+
body="${body//$'\n'/'%0A'}"
123+
body="${body//$'\r'/'%0D'}"
124+
echo "body=${body}" >> $GITHUB_OUTPUT
116125
117126
# Disable Git hooks:
118127
- name: 'Disable Git hooks'
@@ -125,22 +134,14 @@ jobs:
125134
uses: peter-evans/create-pull-request@v4
126135
with:
127136
title: 'Update error databases'
128-
body: |
129-
This PR
130-
131-
- updates the error databases
132-
133-
The following error codes were added:
134-
135-
${{ steps.generate-markdown-table.outputs.table }}
136-
137+
body: ${{ steps.generate-comment-body.outputs.body }}
137138
commit-message: 'feat: update error databases'
138139
committer: 'stdlib-bot <noreply@stdlib.io>'
139140
token: ${{ secrets.PULL_REQUEST_TOKEN }}
140141
labels: |
141142
documentation
142143
automated-pr
143144
team-reviewers: |
144-
stdlib-reviewers
145+
reviewers
145146
branch: update-error-databases
146147
delete-branch: true

.github/workflows/update_package_meta_data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
labels: |
9494
automated-pr
9595
team-reviewers: |
96-
stdlib-reviewers
96+
reviewers
9797
branch: update-package-meta-data
9898
delete-branch: true
9999

.github/workflows/update_repl_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
documentation
117117
automated-pr
118118
team-reviewers: |
119-
stdlib-reviewers
119+
reviewers
120120
branch: update-repl-docs
121121
delete-branch: true
122122

0 commit comments

Comments
 (0)