Skip to content

Commit b7f9d13

Browse files
authored
Adds features to specify the target pipeline type. (#1174)
1 parent 326b4f6 commit b7f9d13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atlassian/bitbucket/cloud/repositories/pipelines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __get_object(self, data):
1717
**self._new_session_args,
1818
)
1919

20-
def trigger(self, branch="master", commit=None, pattern=None, variables=None):
20+
def trigger(self, branch="master", type="custom", commit=None, pattern=None, variables=None):
2121
"""
2222
Trigger a new pipeline. The following options are possible (1 and 2
2323
trigger the pipeline that the branch is associated with in the Pipelines
@@ -48,7 +48,7 @@ def trigger(self, branch="master", commit=None, pattern=None, variables=None):
4848
}
4949
if commit is not None:
5050
data["target"]["commit"] = {
51-
"type": "commit",
51+
"type": type,
5252
"hash": commit,
5353
}
5454
if pattern is not None:

0 commit comments

Comments
 (0)