- Enhance error log in case of a fatal error building the changelog
- RELATES TO https://github.com/mikepenz/release-changelog-builder-action/issues/1331
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {mergeConfiguration, resolveConfiguration} from '../../src/utils'
|
||||
import {ReleaseNotesBuilder} from '../../src/releaseNotesBuilder'
|
||||
import { GithubRepository } from '../../src/repositories/GithubRepository'
|
||||
import {GithubRepository} from '../../src/repositories/GithubRepository'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
|
||||
@@ -12,10 +12,7 @@ it('Test custom changelog builder', async () => {
|
||||
// define the configuration file to use.
|
||||
// By default it retireves a configuration from a json file
|
||||
// You can also quickly modify in code.
|
||||
const configuration = mergeConfiguration(undefined, resolveConfiguration(
|
||||
'',
|
||||
'configs/configuration.json'
|
||||
))
|
||||
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs/configuration.json'))
|
||||
|
||||
// Demo to modify the configuration further in code
|
||||
// configuration.pr_template = "#{{TITLE}}"
|
||||
|
||||
+1
@@ -217,6 +217,7 @@ function run() {
|
||||
}
|
||||
catch (error /* eslint-disable-line @typescript-eslint/no-explicit-any */) {
|
||||
core.setFailed(error.message);
|
||||
core.error(`🔥 Failed to generate changelog due to ${JSON.stringify(error)}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "release-changelog-builder-action",
|
||||
"version": "v4.1.0",
|
||||
"version": "v5.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "release-changelog-builder-action",
|
||||
"version": "v4.1.0",
|
||||
"version": "v5.0.0",
|
||||
"license": "Apache 2.0",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "release-changelog-builder-action",
|
||||
"version": "v4.1.0",
|
||||
"version": "v5.0.0",
|
||||
"private": true,
|
||||
"description": "A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.",
|
||||
"main": "lib/main.js",
|
||||
|
||||
@@ -111,6 +111,7 @@ async function run(): Promise<void> {
|
||||
}
|
||||
} catch (error: any /* eslint-disable-line @typescript-eslint/no-explicit-any */) {
|
||||
core.setFailed(error.message)
|
||||
core.error(`🔥 Failed to generate changelog due to ${JSON.stringify(error)}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user