Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Conversation

@burmudar
Copy link
Contributor

@burmudar burmudar commented Jul 19, 2023

When excluded a repo via the UI it doesn't put an exact match in the repo query. This can result in "why is this being excluded" if you have repos that have similar prefix ie. sourcegraph.

Old behaviour

User action: exclude "sourcegraph/sourcegraph"
adds -repo:sourcegraph/sourcegraph which would not only match sourcegraph/sourcegraph but also sourcegraph/sourcegraph-k8s etc.

New behaviour

User action: exclude "sourcegraph/sourcegraph"
adds -repo:^sourcegraph/sourcegraph$ which only matches sourcegraph/sourcegraph and not sourcegraph/sourcegraph-k8s etc.

Test plan

Tested manually

@burmudar burmudar requested review from a team and courier-new July 19, 2023 09:42
@burmudar burmudar self-assigned this Jul 19, 2023
@cla-bot cla-bot bot added the cla-signed label Jul 19, 2023
@sourcegraph-bot
Copy link
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 429c6202041416d60daadc58cbadebbd578226e6...8143907321857f300e3e2855f49c972ffd7caff2.

Notify File(s)
@BolajiOlajide client/web/src/enterprise/batches/batch-spec/yaml-util.ts
@courier-new client/web/src/enterprise/batches/batch-spec/yaml-util.ts
@eseliger client/web/src/enterprise/batches/batch-spec/yaml-util.ts

@sourcegraph-bot
Copy link
Contributor

📖 Storybook live preview

@burmudar burmudar marked this pull request as draft July 19, 2023 12:26
Copy link
Contributor

@courier-new courier-new left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea! 👍

@burmudar burmudar force-pushed the wb/batches/eclude-repo-exact branch from 8143907 to 1b68de0 Compare July 19, 2023 21:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants