Skip to content

Commit

Permalink
chore: remove repository trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhan007 committed Oct 29, 2024
1 parent e06da89 commit 740cc00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/actions/commentOnFixedIssues.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { promises as fs } from 'node:fs';
import { success as issueCommenter } from '@semantic-release/github';

const getReleaseCommits = async (releaseBody) => {
const getReleaseCommits = (releaseBody) => {
const commits = new Set();

const shaRegex = /commit\/(?<sha>\w{40})/g;
Expand Down Expand Up @@ -47,9 +47,9 @@ export default async function run({ github, context }) {


try {
const semanticRleaseContext = {
const semanticReleaseContext = {
options: {
repositoryUrl: `https://github.com/${owner}/${repo}/`
repositoryUrl: `https://github.com/${owner}/${repo}`
},
commits,
nextRelease: { version: `v${version}` },
Expand All @@ -60,9 +60,9 @@ export default async function run({ github, context }) {
const Octokit = getOctokitShim(github);

console.log('Commits:', commits.toString());
console.log('semanticRleaseContext:', semanticRleaseContext);
console.log('semanticReleaseContext:', semanticReleaseContext);

await issueCommenter({}, semanticRleaseContext, { Octokit });
await issueCommenter({}, semanticReleaseContext, { Octokit });

} catch (error) {
console.error('Error in posting comment:', error);
Expand Down

0 comments on commit 740cc00

Please sign in to comment.