Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into pr…
Browse files Browse the repository at this point in the history
…/aman-095/2153
  • Loading branch information
kgryte committed Apr 20, 2024
2 parents 9ae7715 + d1cbb09 commit dc3e833
Show file tree
Hide file tree
Showing 2,995 changed files with 44,591 additions and 8,610 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/lint_autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ jobs:
files="${{ steps.changed-files.outputs.files }}"
FIX=1 . "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_javascript_files" "$files"
# Add missing trailing newlines:
- name: 'Add missing trailing newlines'
id: add-trailing-newlines
run: |
files="${{ steps.changed-files.outputs.files }}"
. "$GITHUB_WORKSPACE/.github/workflows/scripts/add_trailing_newlines" "$files"
# Disable Git hooks:
- name: 'Disable Git hooks'
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,23 @@
#/

# Workflow name:
name: scaffold_package_via_rfc_issue_comment
name: scaffold_package

# Workflow triggers:
on:
issue_comment:
types: [created]
# Allow the workflow to be triggered by other workflows
workflow_call:
# Define the secrets accessible by the workflow:
secrets:
PULL_REQUEST_TOKEN:
description: 'GitHub token for stdlib-bot'
required: true
SCAFFOLD_GITHUB_TOKEN:
description: 'GitHub token used in the scaffold package action'
required: true
OPENAI_API_KEY:
description: 'OpenAI API key for scaffold package action'
required: true

# Global permissions:
permissions:
Expand All @@ -41,32 +52,22 @@ jobs:

# Define the sequence of job steps...
steps:
# Exit if comment does not contain scaffolding directive:
- name: 'Exit if comment does not contain scaffolding directive'
if: ${{ !contains(github.event.comment.body, 'scaffold') }}
run: |
echo "Comment does not contain scaffolding directive. Exiting..."
exit 0
# Checkout the current branch:
- name: 'Checkout current branch'
# Pin action to full length commit SHA
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
if: ${{ contains(github.event.comment.body, 'scaffold') }}

# Run the command to scaffold a package:
- name: 'Scaffold package'
if: ${{ contains(github.event.comment.body, 'scaffold') }}
id: scaffold
# Pin action to full length commit SHA
uses: stdlib-js/scaffold-pkg-pr-action@882ef0cbb70c1fb76135b9620232606686c1cb10 # v0.0.1
with:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SCAFFOLD_GITHUB_TOKEN }}

# Create a pull request:
- name: 'Create pull request'
if: ${{ contains(github.event.comment.body, 'scaffold') }}
# Pin action to full length commit SHA
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v6.0.2
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/scaffold_pkg_via_branch_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ permissions:
jobs:

scaffold:
# FIXME: disabled until determination whether to re-enable this job
if: false

# Define a display name:
name: 'Scaffold Package via Push to Scaffolding Branch'
Expand Down
287 changes: 0 additions & 287 deletions .github/workflows/scaffold_pkg_via_pull_request_assignment.yml

This file was deleted.

Loading

0 comments on commit dc3e833

Please sign in to comment.