Skip to content

Commit 7895a07

Browse files
authored
refactor(changelog): remove unused context variables from changelog functions (#204)
This fixes #203 First detected: https://sonarcloud.io/project/issues?issueStatuses=OPEN%2CCONFIRMED&id=terraform-module-releaser&open=AZVA3DMAgpwAwn-Dhh5D&tab=code
1 parent 2ceacfb commit 7895a07

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/changelog.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ function createModuleChangelogEntry(heading: string, commits: string[]): string
4949
*/
5050
export function getPullRequestChangelog(terraformChangedModules: TerraformChangedModule[]): string {
5151
const pullRequestChangelog: string[] = [];
52-
const { prNumber, prTitle } = context;
5352

5453
for (const { nextTag, commitMessages } of terraformChangedModules) {
5554
pullRequestChangelog.push(createModuleChangelogEntry(nextTag, commitMessages));
@@ -65,7 +64,6 @@ export function getPullRequestChangelog(terraformChangedModules: TerraformChange
6564
* @returns {string} The content of the module's changelog.
6665
*/
6766
export function getModuleChangelog(terraformChangedModule: TerraformChangedModule): string {
68-
const { prNumber, prTitle, repoUrl } = context;
6967
const { nextTagVersion, commitMessages } = terraformChangedModule;
7068

7169
return createModuleChangelogEntry(nextTagVersion, commitMessages);

0 commit comments

Comments
 (0)