aboutsummaryrefslogtreecommitdiffstats
path: root/modules/gitrepo/tag.go
blob: 58ed204a99fbff2adc4c32370bfab8d1d3503018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2025 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package gitrepo

import (
	"context"

	"code.gitea.io/gitea/modules/git"
)

// IsTagExist returns true if given tag exists in the repository.
func IsTagExist(ctx context.Context, repo Repository, name string) bool {
	return IsReferenceExist(ctx, repo, git.TagPrefix+name)
}