Skip to content

Commit 56d2db1

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into unary3d-by
2 parents 365c152 + 045a348 commit 56d2db1

File tree

252 files changed

+6108
-1538
lines changed

Some content is hidden

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

252 files changed

+6108
-1538
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: 74 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,9 @@ 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+
7090
# Define the conditions under which the job should run:
7191
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib check-files')
7292

@@ -81,6 +101,9 @@ jobs:
81101
# Define a job for updating copyright header years:
82102
update_copyright_years:
83103

104+
# Define a display name:
105+
name: 'Update copyright header years'
106+
84107
# Define the conditions under which the job should run:
85108
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib update-copyright-years')
86109

@@ -97,6 +120,9 @@ jobs:
97120
# Define a job for auto-fixing lint errors:
98121
fix_lint_errors:
99122

123+
# Define a display name:
124+
name: 'Auto-fix lint errors'
125+
100126
# Define the conditions under which the job should run:
101127
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib lint-autofix')
102128

@@ -113,6 +139,9 @@ jobs:
113139
# Define a job for merging develop branch:
114140
merge_develop:
115141

142+
# Define a display name:
143+
name: 'Merge changes from develop branch into this PR'
144+
116145
# Define the conditions under which the job should run:
117146
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib merge')
118147

@@ -129,6 +158,9 @@ jobs:
129158
# Define a job for rebasing on develop branch:
130159
rebase_develop:
131160

161+
# Define a display name:
162+
name: 'Rebase this PR on top of develop branch'
163+
132164
# Define the conditions under which the job should run:
133165
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib rebase')
134166

@@ -146,7 +178,7 @@ jobs:
146178
help:
147179

148180
# Define a display name:
149-
name: 'Help'
181+
name: 'Print a list of available slash commands'
150182

151183
# Define the type of virtual host machine:
152184
runs-on: ubuntu-latest
@@ -176,3 +208,42 @@ jobs:
176208
177209
# GitHub token:
178210
token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
211+
212+
# Define a job for removing the in-progress label:
213+
remove_progress_label:
214+
215+
# Define a display name:
216+
name: 'Remove in-progress label'
217+
218+
# Define the type of virtual host machine:
219+
runs-on: ubuntu-latest
220+
221+
# Ensure all previous jobs have completed before running this job:
222+
needs: [ add_initial_reaction, check_files, update_copyright_years, fix_lint_errors, merge_develop, rebase_develop, help ]
223+
224+
# Define the conditions under which the job should run:
225+
if: |
226+
always() &&
227+
github.event.issue.pull_request &&
228+
startsWith(github.event.comment.body, '/stdlib')
229+
230+
# Define the job's steps:
231+
steps:
232+
- name: Remove in-progress label
233+
# Run the step regardless of the outcome of previous steps:
234+
if: always()
235+
# Pin action to full length commit SHA
236+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
237+
with:
238+
github-token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
239+
script: |
240+
try {
241+
await github.rest.issues.removeLabel({
242+
owner: context.repo.owner,
243+
repo: context.repo.repo,
244+
issue_number: context.issue.number,
245+
name: 'bot: In Progress'
246+
})
247+
} catch (error) {
248+
console.log( 'Error removing label:', error );
249+
}

.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)