From 29993b6dbde0b62886823cbcdd2c87b66f0f842c Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Fri, 26 May 2023 13:50:19 +0000 Subject: [PATCH] - improve example - fix imports --- .github/workflows/ci.yml | 12 +++++++++++- src/releaseNotesBuilder.ts | 2 -- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a2e26d..55d61b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,7 +138,17 @@ jobs: id: external_changelog_second uses: ./ with: - configuration: "configs/configuration.json" + configurationJson: | + { + "template": "#{{CHANGELOG}}", + "pr_template": "PR: #${{NUMBER}}", + "categories": [ + { + "title": "## Everything", + "labels": [] + } + ] + } owner: "mikepenz" repo: "MaterialDrawer" diff --git a/src/releaseNotesBuilder.ts b/src/releaseNotesBuilder.ts index 40d8c22..7c25f16 100644 --- a/src/releaseNotesBuilder.ts +++ b/src/releaseNotesBuilder.ts @@ -7,8 +7,6 @@ import {HttpsProxyAgent} from 'https-proxy-agent' import {PullRequestInfo, PullRequests} from './pullRequests' import {Commits, DiffInfo} from './commits' import {buildChangelog} from './transform' -import * as fs from 'fs' -import path from 'path' export interface ReleaseNotesOptions { owner: string // the owner of the repository