MCPcopy Create free account
hub / github.com/DataDog/datadog-agent / trigger_workflow

Method trigger_workflow

tasks/libs/common/github_api.py:100–110  ·  view source on GitHub ↗

Create a pipeline targeting a given reference of a project. ref must be a branch or a tag.

(self, workflow_name, ref, inputs=None)

Source from the content-addressed store, hash-verified

98 return [t for t in tags if t.name.startswith(pattern)]
99
100 def trigger_workflow(self, workflow_name, ref, inputs=None):
101 """
102 Create a pipeline targeting a given reference of a project.
103 ref must be a branch or a tag.
104 """
105 workflow = self._repository.get_workflow(workflow_name)
106 if workflow is None:
107 return False
108 if inputs is None:
109 inputs = dict()
110 return workflow.create_dispatch(ref, inputs)
111
112 def workflow_run(self, run_id):
113 """

Callers 1

trigger_macos_workflowFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected