diff options
author | Andrew Imeson <andrew@andrewimeson.com> | 2022-10-07 08:49:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 20:49:30 +0800 |
commit | d94f15c2fd921722796a4cfdbbf266dd3017525c (patch) | |
tree | 6abb2770ae4468325cd476bb193d39e028e9dfa2 /routers/api | |
parent | 81d7270cde2960d52f5d987ec8b3fc3c679724a6 (diff) | |
download | gitea-d94f15c2fd921722796a4cfdbbf266dd3017525c.tar.gz gitea-d94f15c2fd921722796a4cfdbbf266dd3017525c.zip |
Make external issue tracker regexp configurable via API (#21338)
Fixes #21336
Signed-off-by: Andrew Imeson <andrew@andrewimeson.com>
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/repo/repo.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 319c4c781a..de8a4d1864 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -755,9 +755,10 @@ func updateRepoUnits(ctx *context.APIContext, opts api.EditRepoOption) error { RepoID: repo.ID, Type: unit_model.TypeExternalTracker, Config: &repo_model.ExternalTrackerConfig{ - ExternalTrackerURL: opts.ExternalTracker.ExternalTrackerURL, - ExternalTrackerFormat: opts.ExternalTracker.ExternalTrackerFormat, - ExternalTrackerStyle: opts.ExternalTracker.ExternalTrackerStyle, + ExternalTrackerURL: opts.ExternalTracker.ExternalTrackerURL, + ExternalTrackerFormat: opts.ExternalTracker.ExternalTrackerFormat, + ExternalTrackerStyle: opts.ExternalTracker.ExternalTrackerStyle, + ExternalTrackerRegexpPattern: opts.ExternalTracker.ExternalTrackerRegexpPattern, }, }) deleteUnitTypes = append(deleteUnitTypes, unit_model.TypeIssues) |