Skip to content

Commit

Permalink
Merge branch 'stdlib-js:develop' into gcd
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjjoshi authored Sep 17, 2024
2 parents c28767f + 2658654 commit f8b3173
Show file tree
Hide file tree
Showing 1,573 changed files with 124,199 additions and 4,509 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/autoclose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
If you would prefer to avoid manual setup, you could also consider using a pre-configured [development container](https://github.com/stdlib-js/stdlib/tree/develop/.devcontainer) for use locally or in GitHub Codespaces.
Thank you again for your interest in stdlib, and we look forward to reviewing your future contriubtions.
Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions.
# Define a job which closes a pull request if a contributor failed to follow contributing guidelines:
contributor_guidelines:
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
If you would prefer to avoid manual setup, you could also consider using a pre-configured [development container](https://github.com/stdlib-js/stdlib/tree/develop/.devcontainer) for use locally or in GitHub Codespaces.
Thank you again for your interest in stdlib, and we look forward to reviewing your future contriubtions.
Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions.
# Define a job which closes a pull request if a contributor failed to follow project conventions:
project_conventions:
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
In short, the more effort you put in to ensure that your contribution looks and feels like stdlib—including variables names, bracket spacing, line breaks, etc—the more likely that your contribution will be reviewed and ultimately accepted. We encourage you to closely study the codebase **before** continuing to work on this pull request.
Thank you again for your interest in stdlib, and we look forward to reviewing your future contriubtions.
Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions.
# Define a job which closes a pull request if a pull request is considered spam:
spam:
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
BODY: |
Thank you for working on this pull request. However, we cannot accept your contribution as this pull request does not meet the standards of this project.
Thank you again for your interest in stdlib, and we look forward to reviewing your future contriubtions.
Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions.
# Lock pull request conversation:
- name: 'Lock conversation'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
# Upload the log file:
- name: 'Upload log file'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact:
Expand Down
85 changes: 85 additions & 0 deletions .github/workflows/generate_pr_commit_message.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#/
# @license Apache-2.0
#
# Copyright (c) 2024 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#/

# Workflow name:
name: generate_pr_commit_message

# Workflow triggers:
on:
pull_request:
types:
- labeled

# Global permissions:
permissions:
contents: read
issues: write
pull-requests: write

# Workflow jobs:
jobs:

# Job to generate commit message draft:
generate-commit-message:

# Define a display name:
name: 'Generate PR Commit Message Draft'

# Define the type of virtual host machine:
runs-on: ubuntu-latest

# Ensure the job only runs when the specified label is added:
if: github.event.label.name == 'Ready to Merge'

# Define environment variables:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}

# Define the sequence of job steps...
steps:
# Checkout repository:
- name: 'Checkout repository'
uses: actions/checkout@v4
with:
# Fetch all commits to ensure we have the full commit history:
fetch-depth: 0

# Generate commit message:
- name: 'Generate commit message'
id: commit_message
run: |
COMMIT_MESSAGE=$($GITHUB_WORKSPACE/.github/workflows/scripts/generate_pr_commit_message $PR_NUMBER)
echo "commit_message<<EOF" >> $GITHUB_OUTPUT
echo "$COMMIT_MESSAGE" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
# Post commit message as PR comment:
- name: 'Post commit message as PR comment'
uses: peter-evans/create-or-update-comment@v3
with:
token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
### PR Commit Message
```text
${{ steps.commit_message.outputs.commit_message }}
```
*Please review the above commit message and make any necessary adjustments.*
2 changes: 1 addition & 1 deletion .github/workflows/good_first_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ jobs:
In short, the more effort you put in to ensure that your contribution looks and feels like stdlib—including variables names, bracket spacing, line breaks, etc—the more likely that your contribution will be reviewed and ultimately accepted. We encourage you to closely study the codebase **before** beginning work on this issue.
:sparkles: Thank you again for your interest in stdlib, and we look forward to reviewing your future contriubtions. :sparkles:
:sparkles: Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions. :sparkles:
2 changes: 1 addition & 1 deletion .github/workflows/lint_changed_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ jobs:
- name: 'Setup R'
if: ( success() || failure() ) && steps.check-r-files.outputs.files != ''
# Pin action to full length commit SHA
uses: r-lib/actions/setup-r@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2.6.4
uses: r-lib/actions/setup-r@e6be4b3706e0f39bc7a4cf4496a5f2c4cb840040 # v2.10.1
with:
r-version: '3.5.3'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint_random_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ jobs:
- name: 'Setup R'
if: ( github.event.inputs.r != 'false' ) && ( success() || failure() )
# Pin action to full length commit SHA
uses: r-lib/actions/setup-r@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2.6.4
uses: r-lib/actions/setup-r@e6be4b3706e0f39bc7a4cf4496a5f2c4cb840040 # v2.10.1
with:
r-version: '4.3.3'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ jobs:
# Upload the log file:
- name: 'Upload log file'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact (ensuring a unique name for each job):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ jobs:
# Upload the log file:
- name: 'Upload log file'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact (ensuring a unique name for each job):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ jobs:
# Upload the log file:
- name: 'Upload log file'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact (ensuring a unique name for each job):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_test_cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ jobs:
# Upload the log file:
- name: 'Upload log file'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact (ensuring a unique name for each job):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ jobs:
# Upload the log file:
- name: 'Upload log file'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact (ensuring a unique name for each job):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ jobs:
# Upload the log file:
- name: 'Upload log file'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact (ensuring a unique name for each job):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ jobs:
# Upload the log file:
- name: 'Upload log file'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact (ensuring a unique name for each job):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_test_cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ jobs:
# Upload the log file:
- name: 'Upload log file'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact (ensuring a unique name for each job):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_test_npm_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ jobs:
# Upload the log file:
- name: 'Upload log file'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact (ensuring a unique name for each job):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdown_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
# Upload the log files:
- name: 'Upload log files'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdown_src_attributes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
# Upload the log files:
- name: 'Upload log files'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
# Define a name for the uploaded artifact:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm_downloads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
# Upload the download data:
- name: 'Upload data'
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
# Define a name for the uploaded artifact (ensuring a unique name for each job):
name: npm_downloads
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ossf_scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
# Upload the results as artifacts:
- name: "Upload artifact"
# Pin action to full length commit SHA
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: SARIF file
path: results.sarif
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/process_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
- name: 'Dispatch workflow with inputs'

# Pin action to full length commit SHA
uses: benc-uk/workflow-dispatch@25b02cc069be46d637e8fe2f1e8484008e9e9609 # v1.2.3
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
if: ${{ steps.assert-write-access.outcome == 'success' && steps.check-workflow-dispatch.outputs.dispatch == 'true' }}
with:
workflow: ${{ steps.check-workflow-dispatch.outputs.workflow }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ GITHUB_REPOSITORY="stdlib-js/stdlib"
# Set the contributing guidelines link:
CONTRIBUTING_LINK="https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md"


# FUNCTIONS #

# Error handler.
Expand Down
Loading

0 comments on commit f8b3173

Please sign in to comment.