Create a pipeline targeting a given reference of a project. ref must be a branch or a tag.
(self, workflow_name, ref, inputs=None)
| 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 | """ |
no outgoing calls
no test coverage detected