Skip to content

Commit 9c39f1c

Browse files
Merge branch 'stdlib-js:develop' into lcmf
2 parents ff495ab + 19343f5 commit 9c39f1c

File tree

11 files changed

+35
-15
lines changed

11 files changed

+35
-15
lines changed

.github/workflows/run_tests_coverage.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,18 +193,34 @@ jobs:
193193
194194
# Post report as comment to PR:
195195
- name: 'Post report as comment to PR'
196-
if: github.event_name == 'pull_request'
196+
if: github.event_name == 'pull_request_target'
197197
# Pin action to full length commit SHA
198198
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
199199
with:
200200
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
201201
script: |
202-
github.rest.issues.createComment({
202+
const { data: comments } = await github.rest.issues.listComments({
203203
issue_number: context.issue.number,
204204
owner: context.repo.owner,
205205
repo: context.repo.repo,
206-
body: '${{ steps.create-report.outputs.report }}'
207-
})
206+
});
207+
208+
const isBotComment = comments.find(comment => comment.user.login === 'stdlib-bot' && comment.body.includes('## Coverage Report'));
209+
if (isBotComment) {
210+
await github.rest.issues.updateComment({
211+
owner: context.repo.owner,
212+
repo: context.repo.repo,
213+
comment_id: botComment.id,
214+
body: `${{ steps.create-report.outputs.report }}`,
215+
});
216+
} else {
217+
await github.rest.issues.createComment({
218+
issue_number: context.issue.number,
219+
owner: context.repo.owner,
220+
repo: context.repo.repo,
221+
body: `${{ steps.create-report.outputs.report }}`,
222+
});
223+
}
208224
209225
# Post report as comment to commit:
210226
- name: 'Post report as comment to commit'

lib/node_modules/@stdlib/constants/float32/max-base10-exponent-subnormal/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2019 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/constants/float32/max-base10-exponent-subnormal/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2019 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/constants/float32/max-base10-exponent-subnormal/examples/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818

1919
'use strict';
2020

21-
var FLOAT32_MAX_BASE10_EXPONENT_SUBNORMAL = require( './../lib' );
21+
var FLOAT32_MAX_BASE10_EXPONENT_SUBNORMAL = require( './../lib' ); // eslint-disable-line id-length
2222

2323
console.log( FLOAT32_MAX_BASE10_EXPONENT_SUBNORMAL );
2424
// => -38

lib/node_modules/@stdlib/constants/float32/max-base10-exponent-subnormal/lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* eslint-disable id-length */
20+
1921
'use strict';
2022

2123
/**

lib/node_modules/@stdlib/constants/float32/max-base10-exponent-subnormal/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var FLOAT32_MAX_BASE10_EXPONENT_SUBNORMAL = require( './../lib' );
24+
var FLOAT32_MAX_BASE10_EXPONENT_SUBNORMAL = require( './../lib' ); // eslint-disable-line id-length
2525

2626

2727
// TESTS //

lib/node_modules/@stdlib/constants/float32/min-base10-exponent-subnormal/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2019 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/constants/float32/min-base10-exponent-subnormal/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2019 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/constants/float32/min-base10-exponent-subnormal/examples/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818

1919
'use strict';
2020

21-
var FLOAT32_MIN_BASE10_EXPONENT_SUBNORMAL = require( './../lib' );
21+
var FLOAT32_MIN_BASE10_EXPONENT_SUBNORMAL = require( './../lib' ); // eslint-disable-line id-length
2222

2323
console.log( FLOAT32_MIN_BASE10_EXPONENT_SUBNORMAL );
2424
// => -45

lib/node_modules/@stdlib/constants/float32/min-base10-exponent-subnormal/lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* eslint-disable id-length */
20+
1921
'use strict';
2022

2123
/**

0 commit comments

Comments
 (0)