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 /modules/structs | |
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 'modules/structs')
-rw-r--r-- | modules/structs/repo.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/structs/repo.go b/modules/structs/repo.go index 27e7f4618c..cf6601704e 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -34,8 +34,10 @@ type ExternalTracker struct { ExternalTrackerURL string `json:"external_tracker_url"` // External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index. ExternalTrackerFormat string `json:"external_tracker_format"` - // External Issue Tracker Number Format, either `numeric` or `alphanumeric` + // External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp` ExternalTrackerStyle string `json:"external_tracker_style"` + // External Issue Tracker issue regular expression + ExternalTrackerRegexpPattern string `json:"external_tracker_regexp_pattern"` } // ExternalWiki represents setting for external wiki |