Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Add merge request integration booleans to ADO Git connector configura…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
flameJam committed Sep 28, 2023
1 parent 866d208 commit 582e36d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions teamscale_client/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,13 +558,23 @@ class AzureDevOpsGitSourceCodeConnectorConfiguration(GitSourceCodeConnectorConfi
"""Represents a Teamscale Azure DevOps Git connector configuration.
Args:
repository_name (str): Name of the repository. In the form "<Project-Name>/<Repository-Name>",
also if Project- and Repository-Name are the same.
repository_name (str): Name of the repository. In the form "<Project-Name>/<Repository-Name>", also if Project-
and Repository-Name are the same.
enable_findings_in_merge_requests (Optional[bool]=False): Whether to enable findings integration in merge requests.
False by default.
enable_tga_in_merge_requests (Optional[bool]=False): Whether to enable Test Gap integration in merge requests.
False by default.
enable_commit_alerts_in_merge_requests (Optional[bool]=False): Whether to enable Commit Alerts in merge requests.
False by default.
"""
def __init__(self, repository_name, default_branch_name, account, include_submodules=False, submodule_recursion_depth=10, connector_type=ConnectorType.ADO_GIT, *args, **kwargs):
def __init__(self, repository_name, default_branch_name, account, include_submodules=False, submodule_recursion_depth=10,
connector_type=ConnectorType.ADO_GIT, enable_findings_in_merge_requests=False,
enable_tga_in_merge_requests=False, enable_commit_alerts_in_merge_requests=False, *args, **kwargs):
super(AzureDevOpsGitSourceCodeConnectorConfiguration, self).__init__(default_branch_name, account, "", include_submodules, submodule_recursion_depth, connector_type, *args, **kwargs)
self.options["Repository name"] = repository_name

self.options["Enable Findings integration for merge requests"] = enable_findings_in_merge_requests
self.options["Enable Test Gap integration for merge requests"] = enable_tga_in_merge_requests
self.options["Enable Commit Alerts for merge requests"] = enable_commit_alerts_in_merge_requests

@auto_str
class Task:
Expand Down

0 comments on commit 582e36d

Please sign in to comment.