Skip to content

Commit 0c40bfa

Browse files
committed
fix: declare createCheckRun on base Adapter with not-implemented default
1 parent ef4d594 commit 0c40bfa

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/VCS/Adapter.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,15 @@ abstract public function listBranches(string $owner, string $repositoryName): ar
235235
*/
236236
abstract public function updateCommitStatus(string $repositoryName, string $SHA, string $owner, string $state, string $description = '', string $target_url = '', string $context = ''): void;
237237

238+
/**
239+
* Creates a completed check run for a commit.
240+
* conclusion can be one of: action_required, cancelled, failure, neutral, success, skipped, timed_out
241+
*/
242+
public function createCheckRun(string $owner, string $repositoryName, string $headSha, string $name, string $conclusion, string $title, string $summary): void
243+
{
244+
throw new \Exception('createCheckRun() is not implemented for ' . $this->getName());
245+
}
246+
238247
/**
239248
* Get repository tree
240249
*

0 commit comments

Comments
 (0)