diff --git a/.github/workflows/lint_random_files.yml b/.github/workflows/lint_random_files.yml index 8c75c376c5e..8906576cdf1 100644 --- a/.github/workflows/lint_random_files.yml +++ b/.github/workflows/lint_random_files.yml @@ -409,6 +409,6 @@ jobs: labels: | automated-pr team-reviewers: | - stdlib-reviewers + reviewers branch: 'fix-lint-errors' delete-branch: true diff --git a/.github/workflows/markdown_equations.yml b/.github/workflows/markdown_equations.yml index 4b2d6cb8f5e..fa61d4494a1 100644 --- a/.github/workflows/markdown_equations.yml +++ b/.github/workflows/markdown_equations.yml @@ -148,7 +148,7 @@ jobs: documentation automated-pr team-reviewers: | - stdlib-reviewers + reviewers branch: markdown-insert-equations delete-branch: true diff --git a/.github/workflows/markdown_tocs.yml b/.github/workflows/markdown_tocs.yml index 1d78c65cc96..716c4437581 100644 --- a/.github/workflows/markdown_tocs.yml +++ b/.github/workflows/markdown_tocs.yml @@ -117,7 +117,7 @@ jobs: documentation automated-pr team-reviewers: | - stdlib-reviewers + reviewers branch: update-namespace-tocs delete-branch: true diff --git a/.github/workflows/namespace_declarations.yml b/.github/workflows/namespace_declarations.yml index 893f1ec8ab5..1807f5a3f29 100644 --- a/.github/workflows/namespace_declarations.yml +++ b/.github/workflows/namespace_declarations.yml @@ -106,7 +106,7 @@ jobs: documentation automated-pr team-reviewers: | - stdlib-reviewers + reviewers branch: update-namespace-declarations delete-branch: true diff --git a/.github/workflows/namespace_exports.yml b/.github/workflows/namespace_exports.yml index c4088bb4642..f64684f3093 100644 --- a/.github/workflows/namespace_exports.yml +++ b/.github/workflows/namespace_exports.yml @@ -127,6 +127,6 @@ jobs: labels: | automated-pr team-reviewers: | - stdlib-reviewers + reviewers branch: update-namespace-exports delete-branch: true diff --git a/.github/workflows/update_contributors.yml b/.github/workflows/update_contributors.yml index 16113f38c0d..39528c786b1 100644 --- a/.github/workflows/update_contributors.yml +++ b/.github/workflows/update_contributors.yml @@ -97,7 +97,7 @@ jobs: documentation automated-pr team-reviewers: | - stdlib-reviewers + reviewers branch: update-contributors delete-branch: true diff --git a/.github/workflows/update_error_databases.yml b/.github/workflows/update_error_databases.yml index 4c140795cb5..2ca42b0e983 100644 --- a/.github/workflows/update_error_databases.yml +++ b/.github/workflows/update_error_databases.yml @@ -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,15 +134,7 @@ 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 ' token: ${{ secrets.PULL_REQUEST_TOKEN }} @@ -141,6 +142,6 @@ jobs: documentation automated-pr team-reviewers: | - stdlib-reviewers + reviewers branch: update-error-databases delete-branch: true diff --git a/.github/workflows/update_package_meta_data.yml b/.github/workflows/update_package_meta_data.yml index c88f1806087..08255c4f468 100644 --- a/.github/workflows/update_package_meta_data.yml +++ b/.github/workflows/update_package_meta_data.yml @@ -93,7 +93,7 @@ jobs: labels: | automated-pr team-reviewers: | - stdlib-reviewers + reviewers branch: update-package-meta-data delete-branch: true diff --git a/.github/workflows/update_repl_docs.yml b/.github/workflows/update_repl_docs.yml index bfe13e4f38f..dd7f8e94a55 100644 --- a/.github/workflows/update_repl_docs.yml +++ b/.github/workflows/update_repl_docs.yml @@ -116,7 +116,7 @@ jobs: documentation automated-pr team-reviewers: | - stdlib-reviewers + reviewers branch: update-repl-docs delete-branch: true