added installation_type field in jira source proto for specifying instalation type (#4564)

This commit is contained in:
Shahzad Haider
2025-11-27 15:48:54 +05:00
committed by GitHub
parent 35a5bf210f
commit 71caba8a85
3 changed files with 567 additions and 481 deletions
File diff suppressed because it is too large Load Diff
+2
View File
@@ -3571,6 +3571,8 @@ func (m *JIRA) validate(all bool) error {
// no validation rules for InsecureSkipVerifyTls
// no validation rules for InstallationType
switch v := m.Credential.(type) {
case *JIRA_BasicAuth:
if v == nil {
+10
View File
@@ -338,6 +338,12 @@ message Huggingface {
bool include_prs = 19;
}
enum JiraInstallationType {
JIRA_INSTALLATION_TYPE_AUTODETECT = 0;
JIRA_INSTALLATION_TYPE_CLOUD = 1;
JIRA_INSTALLATION_TYPE_DATA_CENTER = 2;
}
message JIRA {
string endpoint = 1 [(validate.rules).string.uri_ref = true];
oneof credential {
@@ -349,6 +355,10 @@ message JIRA {
repeated string projects = 5;
repeated string ignore_projects = 7;
bool insecure_skip_verify_tls = 8;
// Override autodetection of Jira installation type.
// Defaults to AUTODETECT which checks for cloud-only endpoints.
JiraInstallationType installation_type = 9;
}
message NPMUnauthenticatedPackage {