Skip to content

Commit 8c840d8

Browse files
committed
bugfix-314-error-merging-release-branch-after-successful-deployment: Fix commit URL generation in CLI and GitHub action files to properly encode owner and repository names, ensuring correct handling of special characters in URLs.
1 parent f4da070 commit 8c840d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

build/cli/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59828,7 +59828,7 @@ exports.getCommentWatermark = getCommentWatermark;
5982859828
exports.COPILOT_MARKETPLACE_URL = 'https://github.com/marketplace/actions/copilot-github-with-super-powers';
5982959829
const DEFAULT_WATERMARK = `<sup>Made with ❤️ by [vypdev/copilot](${exports.COPILOT_MARKETPLACE_URL})</sup>`;
5983059830
function commitUrl(owner, repo, sha) {
59831-
return `https://github.com/${owner}/${repo}/commit/${sha}`;
59831+
return `https://github.com/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/commit/${sha}`;
5983259832
}
5983359833
function getCommentWatermark(options) {
5983459834
if (options?.commitSha && options?.owner && options?.repo) {

build/github_action/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55131,7 +55131,7 @@ exports.getCommentWatermark = getCommentWatermark;
5513155131
exports.COPILOT_MARKETPLACE_URL = 'https://github.com/marketplace/actions/copilot-github-with-super-powers';
5513255132
const DEFAULT_WATERMARK = `<sup>Made with ❤️ by [vypdev/copilot](${exports.COPILOT_MARKETPLACE_URL})</sup>`;
5513355133
function commitUrl(owner, repo, sha) {
55134-
return `https://github.com/${owner}/${repo}/commit/${sha}`;
55134+
return `https://github.com/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/commit/${sha}`;
5513555135
}
5513655136
function getCommentWatermark(options) {
5513755137
if (options?.commitSha && options?.owner && options?.repo) {

0 commit comments

Comments
 (0)