Skip to content

Commit 34d42d2

Browse files
Merge branch 'gammasgnf' of https://github.com/vivekmaurya001/stdlib into gammasgnf
2 parents ffafd6c + c556d55 commit 34d42d2

File tree

68 files changed

+2437
-330
lines changed

Some content is hidden

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

68 files changed

+2437
-330
lines changed

.github/workflows/labeler.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ name: labeler
2222
# Workflow triggers:
2323
on:
2424
pull_request_target:
25+
types:
26+
- opened
27+
- synchronize
28+
- reopened
29+
- edited
30+
- review_requested
31+
- review_request_removed
32+
- ready_for_review
33+
- converted_to_draft
2534

2635
# Workflow jobs:
2736
jobs:
@@ -53,3 +62,52 @@ jobs:
5362
with:
5463
configuration-path: .github/labeler.yml
5564
repo-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
65+
66+
# Add "Needs Review" label when PR is opened and not a draft:
67+
- name: 'Add "Needs Review" label if PR is opened and not draft'
68+
if: ${{ github.event.action == 'opened' && github.event.pull_request.draft == false }}
69+
# Pin action to full length commit SHA
70+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
71+
with:
72+
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
73+
script: |
74+
await github.rest.issues.addLabels({
75+
'owner': context.repo.owner,
76+
'repo': context.repo.repo,
77+
'issue_number': context.payload.pull_request.number,
78+
'labels': ['Needs Review'],
79+
})
80+
81+
# Add "Needs Review" label when PR is marked ready for review:
82+
- name: 'Add "Needs Review" label if PR is ready for review'
83+
if: ${{ github.event.action == 'ready_for_review' }}
84+
# Pin action to full length commit SHA
85+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
86+
with:
87+
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
88+
script: |
89+
await github.rest.issues.addLabels({
90+
'owner': context.repo.owner,
91+
'repo': context.repo.repo,
92+
'issue_number': context.payload.pull_request.number,
93+
'labels': ['Needs Review'],
94+
})
95+
96+
# Remove "Needs Review" label when PR is converted to draft or closed:
97+
- name: 'Remove "Needs Review" label if PR is converted to draft or closed'
98+
if: ${{ github.event.action == 'converted_to_draft' || github.event.action == 'closed' }}
99+
# Pin action to full length commit SHA
100+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
101+
with:
102+
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
103+
script: |
104+
try {
105+
await github.rest.issues.removeLabel({
106+
'owner': context.repo.owner,
107+
'repo': context.repo.repo,
108+
'issue_number': context.payload.pull_request.number,
109+
'name': 'Needs Review',
110+
})
111+
} catch ( error ) {
112+
console.log( 'Error removing label: %s', error.message );
113+
}

.github/workflows/lint_changed_files.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ jobs:
148148
# Define the path to a utility for linting package.json files:
149149
lint_package_json="${root}/lib/node_modules/@stdlib/_tools/lint/pkg-json/bin/cli"
150150
151+
# Define paths to utilities for updating package.json metadata fields:
152+
update_package_json_directories="${root}/lib/node_modules/@stdlib/_tools/package-json/scripts/update_directories"
153+
update_package_json_gypfile="${root}/lib/node_modules/@stdlib/_tools/package-json/scripts/update_gypfile"
154+
155+
# Lint changed package.json files:
151156
files=$(echo "${{ steps.changed-files.outputs.files }}" | tr ' ' '\n' | grep 'package\.json$' | grep -v 'datapackage\.json$' | tr '\n' ' ' | sed 's/ $//')
152157
if [ -n "${files}" ]; then
153158
echo "Linting package.json files that have changed..."
@@ -156,6 +161,25 @@ jobs:
156161
echo "No package.json files to lint."
157162
fi
158163
164+
# Check if metadata fields need to be updated in package.json files of affected packages:
165+
dirs=$(echo "${{ steps.changed-files.outputs.files }}" | tr ' ' '\n' | xargs dirname | sort -u)
166+
needs_changes=0
167+
for dir in ${dirs}; do
168+
echo "Checking package.json in ${dir}..."
169+
"${update_package_json_directories}" "${dir}"
170+
"${update_package_json_gypfile}" "${dir}"
171+
if [[ `git status --porcelain` ]]; then
172+
echo "::error::Package.json in ${dir} needs updates to directories and/or gypfile fields"
173+
git diff
174+
needs_changes=1
175+
fi
176+
done
177+
178+
# Exit with failure if any needed changes were detected:
179+
if [ $needs_changes -eq 1 ]; then
180+
exit 1
181+
fi
182+
159183
# Lint REPL help files...
160184
- name: 'Lint REPL help files'
161185
if: success() || failure()

.github/workflows/slash_commands.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ jobs:
5151
github-token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
5252
script: |
5353
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']
54+
'owner': context.repo.owner,
55+
'repo': context.repo.repo,
56+
'issue_number': context.issue.number,
57+
'labels': ['bot: In Progress']
5858
})
5959
6060
# Add initial reaction to comment with slash command:
@@ -254,11 +254,11 @@ jobs:
254254
script: |
255255
try {
256256
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'
257+
'owner': context.repo.owner,
258+
'repo': context.repo.repo,
259+
'issue_number': context.issue.number,
260+
'name': 'bot: In Progress'
261261
})
262-
} catch (error) {
263-
console.log( 'Error removing label:', error );
262+
} catch ( error ) {
263+
console.log( 'Error removing label: %s', error.message );
264264
}

.mailmap

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ Adarsh Palaskar <adarshpalaskar99@gmail.com> adarshpalaskar1
2020
Aditya Sapra <adityaework@gmail.com> <110766802+adityacodes30@users.noreply.github.com>
2121
Aditya Sapra <adityaework@gmail.com> adityacodes30
2222

23+
Ahmed Atwa <Ahmedatwa866@yahoo.com> NightKnight
24+
25+
Ahmed Kashkoush <ahmedkashkoush464@gmail.com> <89735230+ahmad-kashkoush@users.noreply.github.com>
26+
Ahmed Kashkoush <ahmedkashkoush464@gmail.com> Ahmed_Kashkoush
27+
2328
Aman Bhansali <bhansali.1@iitj.ac.in> <92033532+aman-095@users.noreply.github.com>
2429
Aman Bhansali <bhansali.1@iitj.ac.in> aman-095
2530

@@ -99,10 +104,17 @@ Muhammad Haris <harriskhan047@outlook.com> headlessNode
99104

100105
Naresh Jagadeesan <naresh.naresh000@gmail.com> <37257700+Infinage@users.noreply.github.com>
101106

107+
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com> nishant-s7
108+
102109
Nithin Katta <88046362+nithinkatta@users.noreply.github.com> KATTA NAGA NITHIN
103110

111+
# O
112+
113+
Ori Miles <97595296+orimiles5@users.noreply.github.com> orimiles5
114+
104115
# P
105116

117+
Philipp Burckhardt <pburckhardt@outlook.com> <1913638+Planeshifter@users.noreply.github.com>
106118
Philipp Burckhardt <pburckhardt@outlook.com> Planeshifter
107119

108120
Pranav Goswami <goswami.4@iitj.ac.in> <85227306+Pranavchiku@users.noreply.github.com>
@@ -117,6 +129,8 @@ Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com> Pratyush
117129

118130
Priyansh <88396544+itsspriyansh@users.noreply.github.com> itsspriyansh
119131

132+
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com> AgPriyanshu18
133+
120134
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com> <56391001+Pushpendra766@users.noreply.github.com>
121135
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com> Pushpendra766
122136

@@ -132,16 +146,20 @@ Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com> Rejoan-Sardar
132146
Ricky Reusser <rsreusser@gmail.com> <rreusser@users.noreply.github.com>
133147
Ricky Reusser <rsreusser@gmail.com> <572717+rreusser@users.noreply.github.com>
134148

149+
Rishav <115060907+rishav2404@users.noreply.github.com> RISHAV
150+
135151
Robert Gislason <gztown2216@yahoo.com> rgizz
136152

137-
Rutam <138517416+performant23@users.noreply.github.com> performant23
153+
Rutam Kathale <138517416+performant23@users.noreply.github.com> performant23
138154

139155
Ryan Seal <splrk@users.noreply.github.com> Splrk
140156

141157
# S
142158

143159
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com> the-r3aper7
144160

161+
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com> SarthakPaandey
162+
145163
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com> <123410790+Shashankss1205@users.noreply.github.com>
146164
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com> Shashankss1205
147165

@@ -160,6 +178,8 @@ Stephannie Jiménez Gacha <steff456@hotmail.com> <steff456@users.noreply.github.
160178
Stephannie Jiménez Gacha <steff456@hotmail.com> Stephannie Jimenez
161179
Stephannie Jiménez Gacha <steff456@hotmail.com> Stephannie Jimenez Gacha
162180

181+
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com> Suraj kuma
182+
163183
# T
164184

165185
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com> tudor-pagu
@@ -184,5 +204,7 @@ Varad Gupta <varadgupta21@gmail.com> vr-varad
184204

185205
# Y
186206

207+
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com> yaswanth
208+
187209
Yernar Yergaziyev <yernar.yergaziyev@erg.kz> <yernar707@users.noreply.github.com>
188210
Yernar Yergaziyev <yernar.yergaziyev@erg.kz> <54137699+yernar707@users.noreply.github.com>

CONTRIBUTORS

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Aayush Khanna <aayushiitbhu23@gmail.com>
66
Abhijit Raut <abhijitmraut8010@gmail.com>
77
Adarsh Palaskar <adarshpalaskar99@gmail.com>
88
Aditya Sapra <adityaework@gmail.com>
9-
AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com>
9+
Ahmed Atwa <Ahmedatwa866@yahoo.com>
10+
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1011
Aleksandr <112382387+alextes90@users.noreply.github.com>
1112
Ali Salesi <ali_sal1381@yahoo.com>
1213
Aman Bhansali <bhansali.1@iitj.ac.in>
@@ -60,32 +61,34 @@ Momtchil Momtchev <momtchil@momtchev.com>
6061
Muhammad Haris <harriskhan047@outlook.com>
6162
Naresh Jagadeesan <naresh.naresh000@gmail.com>
6263
Neeraj Pathak <neerajrpathak710@gmail.com>
63-
NightKnight <Ahmedatwa866@yahoo.com>
64+
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
6465
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
6566
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
6667
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
6768
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
69+
Ori Miles <97595296+orimiles5@users.noreply.github.com>
6870
Philipp Burckhardt <pburckhardt@outlook.com>
6971
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
7072
Pranav Goswami <goswami.4@iitj.ac.in>
7173
Praneki <97080887+PraneGIT@users.noreply.github.com>
7274
Pratik <97464067+Pratik772846@users.noreply.github.com>
7375
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
7476
Priyansh <88396544+itsspriyansh@users.noreply.github.com>
77+
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
7578
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com>
76-
RISHAV <115060907+rishav2404@users.noreply.github.com>
7779
Raunak Kumar Gupta <raunakmodanwal321@gmail.com>
7880
Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
7981
Ricky Reusser <rsreusser@gmail.com>
8082
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
83+
Rishav <115060907+rishav2404@users.noreply.github.com>
8184
Robert Gislason <gztown2216@yahoo.com>
8285
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
83-
Rutam <138517416+performant23@users.noreply.github.com>
86+
Rutam Kathale <138517416+performant23@users.noreply.github.com>
8487
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
8588
Ryan Seal <splrk@users.noreply.github.com>
8689
Rylan Yang <137365285+rylany27@users.noreply.github.com>
8790
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
88-
SarthakPaandey <145528240+SarthakPaandey@users.noreply.github.com>
91+
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
8992
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
9093
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
9194
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
@@ -98,7 +101,7 @@ Snehil Shah <snehilshah.989@gmail.com>
98101
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
99102
Spandan Barve <contact@marsian.dev>
100103
Stephannie Jiménez Gacha <steff456@hotmail.com>
101-
Suraj kumar <125961509+kumarsuraj212003@users.noreply.github.com>
104+
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
102105
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
103106
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
104107
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
@@ -109,11 +112,9 @@ Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
109112
Varad Gupta <varadgupta21@gmail.com>
110113
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
111114
Xiaochuan Ye <tap91624@gmail.com>
115+
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
112116
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
113117
naveen <stupiddint@gmail.com>
114-
nishant-s7 <97207366+nishant-s7@users.noreply.github.com>
115118
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
116-
orimiles5 <97595296+orimiles5@users.noreply.github.com>
117119
rainn <88160429+AmCodesLame@users.noreply.github.com>
118120
rei2hu <reimu@reimu.ws>
119-
yaswanth <116426380+yaswanthkosuru@users.noreply.github.com>

lib/node_modules/@stdlib/_tools/eslint/rules/no-multiple-empty-lines/lib/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ function main( context ) {
169169

170170
rule = {
171171
'meta': {
172+
'type': 'layout',
172173
'docs': {
173174
'description': 'enforce that code does not contain multiple blank lines'
174175
},

0 commit comments

Comments
 (0)