Skip to content

Commit e45e2c2

Browse files
Merge branch 'stdlib-js:develop' into feat/fibonaccif
2 parents 38b90c7 + 5ed1af7 commit e45e2c2

File tree

948 files changed

+179337
-2388
lines changed

Some content is hidden

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

948 files changed

+179337
-2388
lines changed

.github/workflows/autoclose.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ jobs:
3737
# Only run this job if the pull request has a specific label:
3838
if: "${{ github.event.label.name == 'autoclose: EditorConfig' }}"
3939

40-
# Define job permissions:
41-
permissions:
42-
contents: read
43-
pull-requests: write
44-
4540
# Define the type of virtual host machine:
4641
runs-on: ubuntu-latest
4742

@@ -73,11 +68,6 @@ jobs:
7368
# Only run this job if the pull request has a specific label:
7469
if: "${{ github.event.label.name == 'autoclose: Contributor Guidelines' }}"
7570

76-
# Define job permissions:
77-
permissions:
78-
contents: read
79-
pull-requests: write
80-
8171
# Define the type of virtual host machine:
8272
runs-on: ubuntu-latest
8373

@@ -109,11 +99,6 @@ jobs:
10999
# Only run this job if the pull request has a specific label:
110100
if: "${{ github.event.label.name == 'autoclose: Project Conventions' }}"
111101

112-
# Define job permissions:
113-
permissions:
114-
contents: read
115-
pull-requests: write
116-
117102
# Define the type of virtual host machine:
118103
runs-on: ubuntu-latest
119104

@@ -149,11 +134,6 @@ jobs:
149134
# Only run this job if the pull request has a specific label:
150135
if: "${{ github.event.label.name == 'autoclose: Spam' }}"
151136

152-
# Define job permissions:
153-
permissions:
154-
contents: read
155-
pull-requests: write
156-
157137
# Define the type of virtual host machine:
158138
runs-on: ubuntu-latest
159139

@@ -189,12 +169,6 @@ jobs:
189169
# Only run this job if the pull request has a specific label:
190170
if: "${{ github.event.label.name == 'autoclose: Stale' }}"
191171

192-
# Define job permissions:
193-
permissions:
194-
contents: read
195-
issues: write
196-
pull-requests: write
197-
198172
# Define the type of virtual host machine:
199173
runs-on: ubuntu-latest
200174

@@ -221,11 +195,6 @@ jobs:
221195
# Only run this job if the pull request has a specific label:
222196
if: "${{ github.event.label.name == 'autoclose: Git History' }}"
223197

224-
# Define job permissions:
225-
permissions:
226-
contents: read
227-
pull-requests: write
228-
229198
# Define the type of virtual host machine:
230199
runs-on: ubuntu-latest
231200

.github/workflows/check_commit_metadata.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,10 @@ jobs:
5353
# Pin action to full length commit SHA
5454
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5555
with:
56-
# Specify whether to remove untracked files before checking out the repository:
57-
clean: true
58-
59-
# Limit clone depth to the most recent commit:
60-
fetch-depth: 1
61-
62-
# Specify whether to download Git-LFS files:
63-
lfs: false
56+
# Ensure we have access to the scripts directory:
57+
sparse-checkout: |
58+
.github/workflows/scripts
59+
sparse-checkout-cone-mode: false
6460
timeout-minutes: 10
6561

6662
# Extract commit metadata from commit messages as JSON:

.github/workflows/check_contributing_guidelines_acceptance.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ permissions:
5050
# Allow read-only access to the repository contents:
5151
contents: read
5252

53-
# Allow write access to pull requests:
54-
pull-requests: write
55-
5653
# Workflow jobs:
5754
jobs:
5855

@@ -75,14 +72,10 @@ jobs:
7572
# Pin action to full length commit SHA
7673
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7774
with:
78-
# Specify whether to remove untracked files before checking out the repository:
79-
clean: true
80-
81-
# Limit clone depth to the most recent commit:
82-
fetch-depth: 1
83-
84-
# Specify whether to download Git-LFS files:
85-
lfs: false
75+
# Ensure we have access to the scripts directory:
76+
sparse-checkout: |
77+
.github/workflows/scripts
78+
sparse-checkout-cone-mode: false
8679
timeout-minutes: 10
8780

8881
# Check contributing guidelines acceptance:

.github/workflows/create_address_commit_comment_issues.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,10 @@ jobs:
5555
# Pin action to full length commit SHA
5656
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5757
with:
58-
# Specify whether to remove untracked files before checking out the repository:
59-
clean: false
60-
61-
# Limit clone depth to the most recent commit:
62-
fetch-depth: 1
63-
64-
# Specify whether to download Git-LFS files:
65-
lfs: false
58+
# Ensure we have access to the scripts directory:
59+
sparse-checkout: |
60+
.github/workflows/scripts
61+
sparse-checkout-cone-mode: false
6662
timeout-minutes: 10
6763

6864
# Create issues from commit comments:

.github/workflows/generate_pr_commit_message.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ permissions:
3030
# Allow read-only access to the repository contents:
3131
contents: read
3232

33-
# Allow write access to issues, assignees, labels, and milestones:
34-
issues: write
35-
36-
# Allow write access to pull requests:
37-
pull-requests: write
38-
3933
# Workflow jobs:
4034
jobs:
4135

@@ -62,8 +56,11 @@ jobs:
6256
# Pin action to full length commit SHA
6357
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6458
with:
65-
# Fetch all commits to ensure we have the full commit history:
66-
fetch-depth: 0
59+
# Ensure we have access to the scripts directory and .mailmap file for generating the commit message:
60+
sparse-checkout: |
61+
.github/workflows/scripts
62+
.mailmap
63+
sparse-checkout-cone-mode: false
6764

6865
# Generate commit message:
6966
- name: 'Generate commit message'

.github/workflows/good_first_issue.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
# Define job permissions:
4141
permissions:
4242
contents: read
43-
pull-requests: write
4443

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

.github/workflows/label_good_first_prs.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343

4444
# Define job permissions:
4545
permissions:
46+
# Allow read-only access to the repository contents:
4647
contents: read
47-
pull-requests: write
4848

4949
# Define the type of virtual host machine:
5050
runs-on: ubuntu-latest
@@ -56,14 +56,10 @@ jobs:
5656
# Pin action to full length commit SHA
5757
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5858
with:
59-
# Specify whether to remove untracked files before checking out the repository:
60-
clean: true
61-
62-
# Limit clone depth to the most recent commit:
63-
fetch-depth: 1
64-
65-
# Specify whether to download Git-LFS files:
66-
lfs: false
59+
# Ensure we have access to the scripts directory:
60+
sparse-checkout: |
61+
.github/workflows/scripts
62+
sparse-checkout-cone-mode: false
6763
timeout-minutes: 10
6864

6965
# Check whether any of the referenced issues is a "Good First Issue":

.github/workflows/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
# Define job permissions:
5050
permissions:
5151
contents: read
52-
pull-requests: write
5352

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

.github/workflows/lint_pr_title.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ jobs:
6262
# Specify whether to remove untracked files before checking out the repository:
6363
clean: false
6464

65-
# Limit clone depth to the most recent 100 commits:
66-
fetch-depth: 100
65+
# Limit clone depth to the most recent commit:
66+
fetch-depth: 1
6767

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

.github/workflows/lint_random_files.yml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ jobs:
230230
\`\`\`
231231
$(cat lint_editorconfig_errors.txt | strip_ansi)
232232
\`\`\`
233+
234+
### Pull Request Instructions
235+
236+
- Please use the following PR title format:
237+
"chore: fix EditorConfig lint errors (issue #<ISSUE_NUMBER>)".
238+
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
233239
EOF
234240
235241
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
@@ -370,20 +376,26 @@ jobs:
370376
run: |
371377
BODY_FILE="$GITHUB_WORKSPACE/lint_issue_body.md"
372378
cat << EOF > "$BODY_FILE"
373-
## JavaScript Linting Failures
379+
## JavaScript Linting Failures
374380
375-
Linting failures were detected in the automated JavaScript lint workflow run.
381+
Linting failures were detected in the automated JavaScript lint workflow run.
376382
377-
### Workflow Details
383+
### Workflow Details
378384
379-
- Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
380-
- Type: JavaScript Linting
381-
- Date: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
385+
- Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
386+
- Type: JavaScript Linting
387+
- Date: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
382388
383-
### Error Details
384-
\`\`\`
385-
$(cat lint_javascript_errors.txt)
386-
\`\`\`
389+
### Error Details
390+
\`\`\`
391+
$(cat lint_javascript_errors.txt)
392+
\`\`\`
393+
394+
### Pull Request Instructions
395+
396+
- Please use the following PR title format:
397+
"chore: fix JavaScript lint errors (issue #<ISSUE_NUMBER>)".
398+
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
387399
EOF
388400
389401
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
@@ -524,6 +536,12 @@ jobs:
524536
\`\`\`
525537
$(grep -B 1 -A 2 "style:\|warning:\|error:" "lint_c_errors.txt")
526538
\`\`\`
539+
540+
### Pull Request Instructions
541+
542+
- Please use the following PR title format:
543+
"chore: fix C lint errors (issue #<ISSUE_NUMBER>)".
544+
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
527545
EOF
528546
529547
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \

0 commit comments

Comments
 (0)