Add ticket-driven branch creation flow
This commit is contained in:
@@ -14,6 +14,13 @@ interface GitProviderClient
|
||||
|
||||
public function getAuthenticatedUser(string $baseUrl, string $token): GitAuthenticatedUser;
|
||||
|
||||
public function getRepository(
|
||||
string $baseUrl,
|
||||
string $token,
|
||||
string $owner,
|
||||
string $repository,
|
||||
): GitRepository;
|
||||
|
||||
/**
|
||||
* @return array<int, GitRepository>
|
||||
*/
|
||||
@@ -38,4 +45,13 @@ interface GitProviderClient
|
||||
string $owner,
|
||||
string $repository,
|
||||
): array;
|
||||
|
||||
public function createBranch(
|
||||
string $baseUrl,
|
||||
string $token,
|
||||
string $owner,
|
||||
string $repository,
|
||||
string $newBranchName,
|
||||
?string $oldRefName = null,
|
||||
): GitBranch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user