Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions atlassian/bitbucket/cloud/repositories/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __get_object(self, data):
**self._new_session_args,
)

def trigger(self, branch="master", commit=None, pattern=None, variables=None):
def trigger(self, branch="master", type="custom", commit=None, pattern=None, variables=None):
"""
Trigger a new pipeline. The following options are possible (1 and 2
trigger the pipeline that the branch is associated with in the Pipelines
Expand Down Expand Up @@ -48,7 +48,7 @@ def trigger(self, branch="master", commit=None, pattern=None, variables=None):
}
if commit is not None:
data["target"]["commit"] = {
"type": "commit",
"type": type,
"hash": commit,
}
if pattern is not None:
Expand Down