Skip to content

Commit ba76d85

Browse files
authored
Merge branch 'stdlib-js:develop' into basemul
2 parents 49918d3 + e88f80d commit ba76d85

2,630 files changed

Lines changed: 226269 additions & 6792 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "stdlib - OSS Development",
3-
"image": "mcr.microsoft.com/devcontainers/universal:2",
3+
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
44
"features": {
5+
"ghcr.io/devcontainers/features/python:1": {},
56
"ghcr.io/rocker-org/devcontainer-features/r-apt:0": {},
67
"ghcr.io/julialang/devcontainer-features/julia:1": {},
7-
"ghcr.io/marcozac/devcontainer-features/shellcheck:1": {},
8+
"ghcr.io/devcontainers-extra/features/shellcheck:1": {},
89
"ghcr.io/rocker-org/devcontainer-features/pandoc:1": {}
910
},
1011
"postCreateCommand": "./.devcontainer/post-create",

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ contact_links:
2121
url: https://github.com/stdlib-js/stdlib/blob/develop/FAQ.md
2222
about: Consult the FAQ in case we have already answered your question there.
2323
- name: 💬 Question
24-
url: https://gitter.im/stdlib-js/stdlib
25-
about: Got a (non-bug related) question we haven't already answered? Ask us on Gitter! 🤗
24+
url: https://stdlib.zulipchat.com
25+
about: Got a (non-bug related) question we haven't already answered? Ask us on Zulip! 🤗
2626
- name: 👏 Support Us
2727
url: https://github.com/stdlib-js/stdlib/blob/develop/docs/support_the_project.md
2828
about: Want to help support the project? 😍

.github/workflows/lint_random_files.yml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,13 +502,58 @@ jobs:
502502
503503
# Lint TypeScript declarations files:
504504
- name: 'Lint TypeScript declarations files'
505+
id: lint-typescript-declarations
505506
if: ( github.event.inputs.javascript != 'false' ) && ( success() || failure() )
506507
run: |
508+
set -o pipefail
507509
files=$(echo "${{ steps.random-files.outputs.files }}" | tr ',' '\n' | grep -E '\.d\.ts$' | tr '\n' ' ')
508510
if [[ -n "${files}" ]]; then
509-
make TYPESCRIPT_DECLARATIONS_LINTER=eslint lint-typescript-declarations-files FAST_FAIL=0 FILES="${files}"
511+
make TYPESCRIPT_DECLARATIONS_LINTER=eslint lint-typescript-declarations-files FAST_FAIL=0 FILES="${files}" 2>&1 | tee lint_typescript_declarations_errors.txt
510512
fi
511513
514+
# Create sub-issue for TypeScript declarations lint failures:
515+
- name: 'Create sub-issue for TypeScript declarations lint failures'
516+
if: failure() && contains(steps.lint-typescript-declarations.outcome, 'failure')
517+
env:
518+
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
519+
run: |
520+
strip_ansi() {
521+
sed -r 's/\x1B\[[0-9;]*[mK]//g'
522+
}
523+
524+
BODY_FILE="$GITHUB_WORKSPACE/lint_issue_body.md"
525+
cat << EOF > "$BODY_FILE"
526+
## TypeScript Declarations Linting Failures
527+
528+
Linting failures were detected in the automated TypeScript declarations lint workflow run.
529+
530+
### Workflow Details
531+
532+
- Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
533+
- Type: TypeScript Declarations Linting
534+
- Date: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
535+
536+
### Error Details
537+
538+
\`\`\`
539+
$(cat lint_typescript_declarations_errors.txt | strip_ansi)
540+
\`\`\`
541+
542+
### Pull Request Instructions
543+
544+
- Please use the following PR title format:
545+
"chore: fix TypeScript declarations lint errors (issue #<ISSUE_NUMBER>)".
546+
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
547+
EOF
548+
549+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
550+
'Fix TypeScript declarations lint errors' \
551+
"$BODY_FILE" \
552+
"9110" \
553+
"Good First Issue"
554+
555+
rm "$BODY_FILE"
556+
512557
# Lint license headers:
513558
- name: 'Lint license headers'
514559
if: success() || failure()

.github/workflows/markdown_links.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ jobs:
149149

150150
# Fail the workflow if the status is not "success":
151151
- name: 'Check status'
152-
if: ${{ steps.results.outputs.status }} != 'success'
152+
id: check-status
153+
if: ${{ steps.results.outputs.status != 'success' }}
153154
run: |
154155
exit 1
155156
@@ -161,6 +162,17 @@ jobs:
161162
cat "${{ env.LOG_FILE_FAILURES }}"
162163
timeout-minutes: 5
163164

165+
# Create sub-issues for individual broken links:
166+
- name: 'Create sub-issues for broken links'
167+
if: failure() && contains(steps.check-status.outcome, 'failure')
168+
env:
169+
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
170+
run: |
171+
"$GITHUB_WORKSPACE/.github/workflows/scripts/create_broken_link_issues" \
172+
'${{ steps.results.outputs.failures }}' \
173+
"9112"
174+
timeout-minutes: 30
175+
164176
# Upload the log files:
165177
- name: 'Upload log files'
166178
# Pin action to full length commit SHA

.github/workflows/process_metadata.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
# Define a display name:
4242
name: 'Process Metadata'
4343

44+
# Only run this job if the repository is not a fork:
45+
if: github.repository == 'stdlib-js/stdlib'
46+
4447
# Define the type of virtual host machine:
4548
runs-on: ubuntu-latest
4649

.github/workflows/run_tests_coverage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ jobs:
8686
# Define a display name:
8787
name: 'Calculate test coverage for packages'
8888

89-
# Only run this job if a pull request does not have a "ci: Skip" label:
90-
if: "${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci: Skip') }}"
89+
# Only run this job if a pull request does not have a "ci: Skip" label and skip push events on forks:
90+
if: |
91+
(github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci: Skip')) &&
92+
(github.event_name != 'push' || github.repository == 'stdlib-js/stdlib')
9193
9294
# Define the type of virtual host machine:
9395
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)