client: Link to glob syntax for tags/branches/repos (#57356)

This commit is contained in:
Varun Gandhi 2023-10-23 09:59:52 +08:00 committed by GitHub
parent a2e9b12cc9
commit a599dec3fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -469,7 +469,8 @@ const GitObjectSettingsSection: FunctionComponent<GitObjectSettingsSectionProps>
</Label>
<Text size="small" className="text-muted mb-2">
Configuration policies apply to code intelligence data for specific revisions of{' '}
{repo ? 'this repository' : 'matching repositories'}.
{repo ? 'this repository' : 'matching repositories'}. Specify branches or tags using a{' '}
<Link to="https://github.com/gobwas/glob#example">glob pattern</Link>.
</Text>
<div className="input-group">
@ -662,7 +663,8 @@ const RepositorySettingsSection: FunctionComponent<RepositorySettingsSectionProp
<div className="form-group">
<Label className="mb-0">Which repositories match this policy?</Label>
<Text size="small" className="text-muted mb-2">
Configuration policies can apply to one, a set, or to all repositories on a Sourcegraph instance.
Configuration policies can apply to one, a set, or to all repositories on a Sourcegraph instance. Specify a
set of repositories using a <Link to="https://github.com/gobwas/glob#example">glob pattern</Link>.
</Text>
{!policy.repositoryPatterns || policy.repositoryPatterns.length === 0 ? (
<Alert variant="info" className="d-flex justify-content-between align-items-center">