Skip to content

Commit 7ac124d

Browse files
authored
fix: Avoid console error (#35)
* test: Ensure 100% action tests coverage * fix: Do not console error in case of invalid check when "exitOverride" is set to true * docs: Add missing change to v1.0.0 CHANGELOG entry
1 parent ece5bb0 commit 7ac124d

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
#### Deprecated
1212
#### Removed
1313

14+
## [1.0.1] - 2025-01-21
15+
16+
### Changed
17+
18+
* test: Ensure 100% action tests coverage
19+
20+
### Fixed
21+
22+
* fix: Do not console error in case of invalid check when "exitOverride" is set to true
23+
* docs: Add missing change to v1.0.0 CHANGELOG entry
24+
1425
## [1.0.0] - 2025-01-21
1526

1627
### Added
@@ -21,6 +32,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2132

2233
* chore: Upgrade `check-spdx-headers` and `check-license-compliance` actions to v1
2334

35+
### Fixed
36+
37+
* fix: Throw error if Copyright holder is not provided and prompts are disabled
38+
2439
## [0.2.2] - 2025-01-14
2540

2641
### Fixed

jest.action.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ module.exports = {
1818
coverageDirectory: "coverage-action",
1919

2020
// An object that configures minimum threshold enforcement for coverage results
21-
/* coverageThreshold: {
21+
coverageThreshold: {
2222
global: {
2323
branches: 100,
2424
functions: 100,
2525
lines: 100,
2626
statements: 100,
2727
},
28-
}, */
28+
},
2929

3030
// The glob patterns Jest uses to detect test files
3131
testMatch: ["<rootDir>/test/action/specs/*.spec.ts", "<rootDir>/test/action/specs/**/*.test.ts"],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tid-xcut/opensource-scaffold",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"type": "module",
55
"description": "Scaffolding for open source projects. A CLI tool to create open source repositories tools and resources",
66
"packageManager": "pnpm@9.4.0",

src/Cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ export async function check(options: {
5858
const result = await checker.check();
5959

6060
if (!result.valid) {
61-
console.error(result.report.message);
6261
if (options.exitOverride) {
6362
throw new Error(result.report.message);
6463
} else {
64+
console.error(result.report.message);
6565
process.exit(1);
6666
}
6767
}

0 commit comments

Comments
 (0)