-
-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update reviewer team and ensure proper newline handling
- Loading branch information
1 parent
0d591da
commit 2ad8e5d
Showing
9 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -409,6 +409,6 @@ jobs: | |
labels: | | ||
automated-pr | ||
team-reviewers: | | ||
stdlib-reviewers | ||
reviewers | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Planeshifter
Author
Member
|
||
branch: 'fix-lint-errors' | ||
delete-branch: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,9 +77,9 @@ jobs: | |
node lib/node_modules/@stdlib/error/tools/pkg2id/scripts/build.js | ||
node lib/node_modules/@stdlib/error/tools/id2pkg/scripts/build.js | ||
# Generate Markdown table of added error codes: | ||
- name: 'Generate Markdown table of added error codes' | ||
id: generate-markdown-table | ||
# Generate comment with Markdown table of added error codes: | ||
- name: 'Generate comment body with Markdown table of added error codes' | ||
id: generate-comment-body | ||
run: | | ||
# Get the diff of the CSV file: | ||
git_diff=$(git diff lib/node_modules/@stdlib/error/tools/database/data/data.csv) | ||
|
@@ -113,6 +113,15 @@ jobs: | |
# Assign the table to an output variable: | ||
echo "table=${table}" >> $GITHUB_OUTPUT | ||
# Generate a comment body: | ||
body="This PR\n\n- updates the error databases\n\nThe following error codes were added:\n\n${table}" | ||
# Add the comment body to the workflow output after escaping to preserve newlines: | ||
body="${body//'%'/'%25'}" | ||
body="${body//$'\n'/'%0A'}" | ||
body="${body//$'\r'/'%0D'}" | ||
echo "body=${body}" >> $GITHUB_OUTPUT | ||
# Disable Git hooks: | ||
- name: 'Disable Git hooks' | ||
|
@@ -125,22 +134,14 @@ jobs: | |
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
title: 'Update error databases' | ||
body: | | ||
This PR | ||
- updates the error databases | ||
The following error codes were added: | ||
${{ steps.generate-markdown-table.outputs.table }} | ||
body: ${{ steps.generate-comment-body.outputs.body }} | ||
commit-message: 'feat: update error databases' | ||
committer: 'stdlib-bot <[email protected]>' | ||
token: ${{ secrets.PULL_REQUEST_TOKEN }} | ||
labels: | | ||
documentation | ||
automated-pr | ||
team-reviewers: | | ||
stdlib-reviewers | ||
reviewers | ||
branch: update-error-databases | ||
delete-branch: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Was this always wrong, or did you rename the team?