Skip to content

Commit de4f4ae

Browse files
Merge branch 'stdlib-js:develop' into unary5d-by
2 parents 2c01ddf + f1fa458 commit de4f4ae

File tree

429 files changed

+32330
-1883
lines changed

Some content is hidden

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

429 files changed

+32330
-1883
lines changed

.github/workflows/markdown_equations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
# Define a display name:
4343
name: 'Update equations'
4444

45-
# Only run this job if the pull request was merged and did not have label `automated-pr`:
46-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'automated-pr') == false
45+
# Ensure the job does not run on forks:
46+
if: github.repository == 'stdlib-js/stdlib'
4747

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

.github/workflows/markdown_tocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
# Define a display name:
4343
name: 'Update namespace ToCs'
4444

45-
# Only run this job if the pull request was merged and did not have label `automated-pr` (or the job was triggered manually):
46-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'automated-pr') == false || github.event_name == 'workflow_dispatch'
45+
# Ensure the job does not run on forks:
46+
if: github.repository == 'stdlib-js/stdlib'
4747

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

.github/workflows/namespace_declarations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
# Define a display name:
4343
name: 'Update TypeScript Declarations'
4444

45-
# Only run this job if the pull request was merged and did not have label `automated-pr` (or the job was triggered manually):
46-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'automated-pr') == false || github.event_name == 'workflow_dispatch'
45+
# Ensure the job does not run on forks:
46+
if: github.repository == 'stdlib-js/stdlib'
4747

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

.github/workflows/namespace_exports.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
# Define a display name:
3939
name: 'Update Namespace Exports'
4040

41-
# Only run this job if the pull request was merged and did not have label `automated-pr` (or the job was triggered manually):
42-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'automated-pr') == false || github.event_name == 'workflow_dispatch'
41+
# Ensure the job does not run on forks:
42+
if: github.repository == 'stdlib-js/stdlib'
4343

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

.github/workflows/run_tests_coverage.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ jobs:
104104

105105
# Specify whether to download Git-LFS files:
106106
lfs: false
107+
108+
# Checkout PR branch if triggered by a pull request:
109+
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || '' }}
110+
111+
# Checkout PR repository (to properly work with forks) if triggered by a pull request:
112+
repository: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
107113
timeout-minutes: 10
108114

109115
# Install Node.js:

.github/workflows/slash_commands.yml

Lines changed: 89 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ on:
2929
# Workflow jobs:
3030
jobs:
3131

32-
# Add a new job for adding the initial reaction
32+
# Define a job for adding an initial reaction:
3333
add_initial_reaction:
3434

35+
# Define a display name:
36+
name: 'Add initial reaction'
37+
3538
# Define the type of virtual host machine:
3639
runs-on: ubuntu-latest
3740

@@ -40,7 +43,21 @@ jobs:
4043

4144
# Define the job's steps:
4245
steps:
43-
# Add initial reaction to the comment
46+
# Add "bot: In progress" label to the issue / PR:
47+
- name: 'Add in-progress label'
48+
# Pin action to full length commit SHA
49+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
50+
with:
51+
github-token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
52+
script: |
53+
github.rest.issues.addLabels({
54+
owner: context.repo.owner,
55+
repo: context.repo.repo,
56+
issue_number: context.issue.number,
57+
labels: ['bot: In Progress']
58+
})
59+
60+
# Add initial reaction to comment with slash command:
4461
- name: 'Add initial reaction'
4562
run: |
4663
COMMENT="${{ github.event.comment.body }}"
@@ -67,6 +84,12 @@ jobs:
6784
# Define a job for checking for required files:
6885
check_files:
6986

87+
# Define a display name:
88+
name: 'Check for required files'
89+
90+
# Ensure initial reaction job has completed before running this job:
91+
needs: [ add_initial_reaction ]
92+
7093
# Define the conditions under which the job should run:
7194
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib check-files')
7295

@@ -81,6 +104,9 @@ jobs:
81104
# Define a job for updating copyright header years:
82105
update_copyright_years:
83106

107+
# Define a display name:
108+
name: 'Update copyright header years'
109+
84110
# Define the conditions under which the job should run:
85111
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib update-copyright-years')
86112

@@ -97,6 +123,12 @@ jobs:
97123
# Define a job for auto-fixing lint errors:
98124
fix_lint_errors:
99125

126+
# Define a display name:
127+
name: 'Auto-fix lint errors'
128+
129+
# Ensure initial reaction job has completed before running this job:
130+
needs: [ add_initial_reaction ]
131+
100132
# Define the conditions under which the job should run:
101133
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib lint-autofix')
102134

@@ -113,6 +145,12 @@ jobs:
113145
# Define a job for merging develop branch:
114146
merge_develop:
115147

148+
# Define a display name:
149+
name: 'Merge changes from develop branch into this PR'
150+
151+
# Ensure initial reaction job has completed before running this job:
152+
needs: [ add_initial_reaction ]
153+
116154
# Define the conditions under which the job should run:
117155
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib merge')
118156

@@ -129,6 +167,12 @@ jobs:
129167
# Define a job for rebasing on develop branch:
130168
rebase_develop:
131169

170+
# Define a display name:
171+
name: 'Rebase this PR on top of develop branch'
172+
173+
# Ensure initial reaction job has completed before running this job:
174+
needs: [ add_initial_reaction ]
175+
132176
# Define the conditions under which the job should run:
133177
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib rebase')
134178

@@ -146,11 +190,14 @@ jobs:
146190
help:
147191

148192
# Define a display name:
149-
name: 'Help'
193+
name: 'Print a list of available slash commands'
150194

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

198+
# Ensure initial reaction job has completed before running this job:
199+
needs: [ add_initial_reaction ]
200+
154201
# Define the conditions under which the job should run:
155202
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib help')
156203

@@ -176,3 +223,42 @@ jobs:
176223
177224
# GitHub token:
178225
token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
226+
227+
# Define a job for removing the in-progress label:
228+
remove_progress_label:
229+
230+
# Define a display name:
231+
name: 'Remove in-progress label'
232+
233+
# Define the type of virtual host machine:
234+
runs-on: ubuntu-latest
235+
236+
# Ensure all previous jobs have completed before running this job:
237+
needs: [ add_initial_reaction, check_files, update_copyright_years, fix_lint_errors, merge_develop, rebase_develop, help ]
238+
239+
# Define the conditions under which the job should run:
240+
if: |
241+
always() &&
242+
github.event.issue.pull_request &&
243+
startsWith(github.event.comment.body, '/stdlib')
244+
245+
# Define the job's steps:
246+
steps:
247+
- name: Remove in-progress label
248+
# Run the step regardless of the outcome of previous steps:
249+
if: always()
250+
# Pin action to full length commit SHA
251+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
252+
with:
253+
github-token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
254+
script: |
255+
try {
256+
await github.rest.issues.removeLabel({
257+
owner: context.repo.owner,
258+
repo: context.repo.repo,
259+
issue_number: context.issue.number,
260+
name: 'bot: In Progress'
261+
})
262+
} catch (error) {
263+
console.log( 'Error removing label:', error );
264+
}

.github/workflows/update_repl_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
# Define a display name:
4343
name: 'Update REPL docs'
4444

45-
# Only run this job if the pull request was merged (or the job was triggered manually):
46-
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
45+
# Ensure the job does not run on forks:
46+
if: github.repository == 'stdlib-js/stdlib'
4747

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

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Ruthwik Chikoti <[email protected]>
8585
Ryan Seal <[email protected]>
8686
Sai Srikar Dumpeti <[email protected]>
8787
SarthakPaandey <[email protected]>
88+
Saurabh Singh <[email protected]>
8889
Seyyed Parsa Neshaei <[email protected]>
8990
Shashank Shekhar Singh <[email protected]>
9091

CORE_CONTRIBUTORS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ For information about the governance of the stdlib project, see [GOVERNANCE.md][
2828

2929
- [kgryte][athan-reines-github] - **Athan Reines** &lt;[[email protected]][athan-reines-email]&gt; (he/him)
3030
- [Planeshifter][philipp-burckhardt-github] - **Philipp Burckhardt** &lt;[[email protected]][philipp-burckhardt-email]&gt; (he/him)
31+
- [gunjjoshi][gunj-joshi-github] - **Gunj Joshi** &lt;[[email protected]][gunj-joshi-email]&gt; (he/him)
3132

3233
<details>
3334
<summary>Emeriti</summary>
@@ -52,6 +53,10 @@ For information about the governance of the stdlib project, see [GOVERNANCE.md][
5253

5354
[ricky-reusser-email]: mailto:[email protected]
5455

56+
[gunj-joshi-github]: https://github.com/gunjjoshi
57+
58+
[gunj-joshi-email]: mailto:[email protected]
59+
5560
</section>
5661

5762
<!-- /.links -->

docs/git-notes/74b235240970eb51397e4ba1601386d093f4b5e9.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
type: amend-message
3+
---
14
feat: add C API for `@stdlib/math/base/special/tribonacci`
25

36
PR-URL: https://github.com/stdlib-js/stdlib/pull/903

0 commit comments

Comments
 (0)