Skip to content

Github rule does not prevent duplicate tabs for the same ticket number, even when unique asserted #507

@stevecalvert

Description

@stevecalvert

The sample rules provide configuration for GitHub Issues. It looks like this should be able to distinguish unique tickets based on the "URL Matcher" group capture, /issues/(\d+)

But when the unique flag is set, duplicate tabs for the same ticket are still shown

My understanding was that this might have been resolved by #473. The tests in this PR have examples that specify the captured group in the URL Fragment

it('should process single capture group correctly', () => {
		const urlFragment = 'https://mysite.atlassian.net/browse/$1';

but if I try to modify the Github rule along the same lines, by changing the URL Fragment from github\.com/.+/issues/(\d+) to github\.com/.+/issues/$1, then no tickets are recognized at all

Expected behavior
If there are two tabs that match the URL Fragment rule, the most recently created tab is closed

Extension version:
1.1.1

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions