Skip to content

Commit

Permalink
Merge branch 'stdlib-js:develop' into accessor-gsumkbn
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush0325 authored Jan 29, 2025
2 parents 5569287 + 7456e9f commit 656cb60
Show file tree
Hide file tree
Showing 311 changed files with 3,526 additions and 2,343 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ body:
options:
- label: Read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
required: true
- label: Searched for existing issues and pull requests.
- label: Searched for existing issues and pull requests.
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

contact_links:
- name: 👩‍🏫 Frequently Asked Questions
url: https://github.com/stdlib-js/stdlib/blob/develop/FAQ.md
url: https://github.com/stdlib-js/stdlib/blob/develop/FAQ.md
about: Consult the FAQ in case we have already answered your question there.
- name: 💬 Question
url: https://gitter.im/stdlib-js/stdlib
url: https://gitter.im/stdlib-js/stdlib
about: Got a (non-bug related) question we haven't already answered? Ask us on Gitter! 🤗
- name: 👏 Support Us
url: https://github.com/stdlib-js/stdlib/blob/develop/docs/support_the_project.md
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/do_not_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ jobs:

# Define job permissions:
permissions:
contents: read
pull-requests: write
pull-requests: read

# Define the type of virtual host machine:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/first_time_greeting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ on: [pull_request_target, issues]

# Global permissions:
permissions:
# Allow read-only access to the repository contents:
contents: read
# Do not give the workflow any permissions:
contents: none

# Workflow jobs:
jobs:
Expand All @@ -47,7 +47,7 @@ jobs:
# Pin action to full length commit SHA
uses: actions/first-interaction@34f15e814fe48ac9312ccf29db4e74fa767cbab7 # v1.3.0
with:
repo-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
repo-token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
issue-message: |
:wave: Hi there! :wave:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint_pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ jobs:

# Perform linting:
- name: 'Perform linting'
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "Pull request titles should follow stdlib's Git commit message conventions."
echo "Linting pull request title..."
make lint-commit-message GIT_COMMIT_MESSAGE='${{ github.event.pull_request.title }}'
make lint-commit-message GIT_COMMIT_MESSAGE="${PR_TITLE}"
timeout-minutes: 5
3 changes: 3 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Install Node.js:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/markdown_equations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Install Node.js:
Expand Down Expand Up @@ -103,7 +106,6 @@ jobs:
git_user_signingkey: true
git_commit_gpgsign: true


# Generate list of changed Markdown files:
- name: 'Find changed Markdown files'
run: |
Expand Down Expand Up @@ -161,7 +163,7 @@ jobs:
commit-message: 'docs: update Markdown equation elements'
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
signoff: true
token: ${{ secrets.PULL_REQUEST_TOKEN }}
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
labels: |
documentation
automated-pr
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/markdown_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: markdown_links
on:
schedule:
# Run the workflow once a month on the 1st day of every month:
- cron: "0 0 1 * *"
- cron: '0 0 1 * *'

# Allow the workflow to be manually run:
workflow_dispatch:
Expand Down Expand Up @@ -76,6 +76,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Initialize log files:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/markdown_pkg_urls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false

timeout-minutes: 10

# Install Node.js:
Expand Down Expand Up @@ -131,7 +135,7 @@ jobs:
fi
timeout-minutes: 10

# Create a pull request with the changes:
# Create a pull request with the changes:
- name: 'Create pull request'
id: cpr
if: steps.update-markdown-pkg-urls.outputs.changed == 'true'
Expand All @@ -147,7 +151,7 @@ jobs:
commit-message: 'docs: update Markdown stdlib package URLs'
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
signoff: true
token: ${{ secrets.PULL_REQUEST_TOKEN }}
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
labels: |
documentation
automated-pr
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/markdown_related_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Install Node.js:
Expand Down Expand Up @@ -159,7 +162,7 @@ jobs:
commit-message: 'docs: update related packages sections'
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
signoff: true
token: ${{ secrets.PULL_REQUEST_TOKEN }}
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
labels: |
documentation
automated-pr
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/markdown_src_attributes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: markdown_src_attributes
on:
schedule:
# Run the workflow once a month on the 1st day of every month:
- cron: "0 0 1 * *"
- cron: '0 0 1 * *'

# Allow the workflow to be manually run:
workflow_dispatch:
Expand Down Expand Up @@ -73,6 +73,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Initialize log files:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/markdown_tocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Install Node.js:
Expand Down Expand Up @@ -129,7 +132,7 @@ jobs:
commit-message: 'docs: update namespace table of contents'
signoff: true
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
token: ${{ secrets.PULL_REQUEST_TOKEN }}
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
labels: |
documentation
automated-pr
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/namespace_declarations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Install Node.js:
Expand Down Expand Up @@ -124,7 +127,7 @@ jobs:
commit-message: 'feat: update namespace TypeScript declarations'
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
signoff: true
token: ${{ secrets.PULL_REQUEST_TOKEN }}
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
labels: |
documentation
automated-pr
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/namespace_exports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Install Node.js:
Expand Down Expand Up @@ -136,7 +139,7 @@ jobs:
commit-message: 'feat: update namespace exports'
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
signoff: true
token: ${{ secrets.PULL_REQUEST_TOKEN }}
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
labels: |
automated-pr
team-reviewers: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/random_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Install Node.js:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/run_affected_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Install Node.js:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/run_affected_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Install Node.js:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/run_affected_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Install Node.js:
Expand Down
42 changes: 27 additions & 15 deletions .github/workflows/slash_commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,33 @@ jobs:
# Add initial reaction to comment with slash command:
- name: 'Add initial reaction'
run: |
COMMENT="${{ github.event.comment.body }}"
if [[ $COMMENT =~ ^/stdlib\ (help|check-files|update-copyright-years|lint-autofix|merge|rebase) ]]; then
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions" \
-d '{"content":"eyes"}'
else
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments" \
-d '{"body":"@${{ github.event.comment.user.login }}, slash command not recognized. Please use `/stdlib help` to view available commands."}'
fi
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
script: |
const commentBody = github.event.comment.body.trim();
const RE_COMMANDS = /^\/stdlib\s+(help|check-files|update-copyright-years|lint-autofix|merge|rebase)$/i;
const isRecognizedCommand = RE_COMMANDS.test( commentBody );
if ( isRecognizedCommand ) {
await github.rest.reactions.createForIssueComment({
'owner': context.repo.owner,
'repo': context.repo.repo,
'comment_id': github.event.comment.id,
'content': 'eyes'
});
} else {
// Include the full user comment as a Markdown quote block in response:
const lines = commentBody.split( '\n' );
const quote = lines.map( line => `> ${line}` ).join( '\n' );
await github.rest.issues.createComment({
'owner': context.repo.owner,
'repo': context.repo.repo,
'issue_number': github.event.issue.number,
'body': `${quote}\n\n@${github.event.comment.user.login}, slash command not recognized. Please use \`/stdlib help\` to view available commands.`
});
}
# Define a job for checking for required files:
check_files:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test_published_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ on:
# Allow workflow to be manually run:
workflow_dispatch:

# Global permissions:
permissions:
# Allow read-only access to the repository contents:
contents: read

# Workflow jobs:
jobs:
test-published:
Expand All @@ -46,6 +51,9 @@ jobs:
# Checkout the repository:
- name: 'Checkout repository'
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
# Do not persist GitHub token in local Git configuration since no continued authentication is needed:
persist-credentials: false

# Install Node.js:
- name: 'Install Node.js'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/track_todos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: track_todos
on:
schedule:
# Run the workflow once a month on the 1st day of every month:
- cron: "0 0 1 * *"
- cron: '0 0 1 * *'

# Allow the workflow to be manually run:
workflow_dispatch:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/update_cli_permissions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Make CLI scripts executable:
Expand Down Expand Up @@ -102,7 +105,7 @@ jobs:
signoff: true
body: |
This PR changes the permissions of project `cli` scripts to be executable.
token: ${{ secrets.PULL_REQUEST_TOKEN }}
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
labels: |
automated-pr
team-reviewers: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/update_contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ jobs:

# Specify whether to download Git-LFS files:
lfs: false

# Avoid storing GitHub token in local Git configuration:
persist-credentials: false
timeout-minutes: 10

# Update the contributors list:
Expand Down Expand Up @@ -115,7 +118,7 @@ jobs:
commit-message: 'docs: update list of contributors'
committer: 'stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>'
signoff: true
token: ${{ secrets.PULL_REQUEST_TOKEN }}
token: ${{ secrets.STDLIB_BOT_FGPAT_PR_WRITE }}
labels: |
documentation
automated-pr
Expand Down
Loading

0 comments on commit 656cb60

Please sign in to comment.