Skip to content

Commit 619d995

Browse files
authored
add removeTrigger
1 parent bdf96e5 commit 619d995

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Api/Projects.php

+11
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,17 @@ public function createTrigger($project_id, string $description)
282282
'description' => $description,
283283
]);
284284
}
285+
286+
/**
287+
* @param int|string $project_id
288+
* @param int $trigger_id
289+
*
290+
* @return mixed
291+
*/
292+
public function removeTrigger($project_id, int $trigger_id)
293+
{
294+
return $this->delete($this->getProjectPath($project_id, 'triggers/' . self::encodePath($trigger_id)));
295+
}
285296

286297
/**
287298
* @param int|string $project_id

0 commit comments

Comments
 (0)