Skip to content

Commit

Permalink
fix: Revert "fix(bitbucket): source link root path" (#32680)
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy authored Nov 22, 2024
1 parent b7951c3 commit 021db4b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions lib/modules/platform/bitbucket/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1656,14 +1656,6 @@ describe('modules/platform/bitbucket/index', () => {

expect(bitbucket.massageMarkdown(prBody)).toMatchSnapshot();
});

it('converts source links', () => {
const prBody = '[source](https://bitbucket.org/foo/bar/tree/HEAD)';

expect(bitbucket.massageMarkdown(prBody)).toBe(
'[source](https://bitbucket.org/foo/bar/src/HEAD)',
);
});
});

describe('updatePr()', () => {
Expand Down
1 change: 0 additions & 1 deletion lib/modules/platform/bitbucket/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ export function massageMarkdown(input: string): string {
.replace(regEx(/<\/?(details|blockquote)>/g), '')
.replace(regEx(`\n---\n\n.*?<!-- rebase-check -->.*?\n`), '')
.replace(regEx(/\]\(\.\.\/pull\//g), '](../../pull-requests/')
.replace(regEx(/\/tree\/HEAD/g), '/src/HEAD')
.replace(regEx(/<!--renovate-(?:debug|config-hash):.*?-->/g), '');
}

Expand Down

0 comments on commit 021db4b

Please sign in to comment.