Dagger
Search

codespace-manager

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/BCIT-LTC/daggerverse/codespace-manager@4b156ff54961b9cc627acd3fe12da1da419119e6

Entrypoint

Return Type
CodespaceManager !
Example
dagger -m github.com/BCIT-LTC/daggerverse/codespace-manager@4b156ff54961b9cc627acd3fe12da1da419119e6 call \
func (m *MyModule) Example() *dagger.CodespaceManager  {
	return dag.
			CodespaceManager()
}
@function
def example() -> dagger.CodespaceManager:
	return (
		dag.codespace_manager()
	)
@func()
example(): CodespaceManager {
	return dag
		.codespaceManager()
}

Types

CodespaceManager 🔗

createCodespacePullRequest() 🔗

Create a Codespace from a pull request.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -Source directory
tokenSecret !-Token for Codespace creation
organizationString !-Organization Name
repoNameString !-Repository Name
branchNameString !-Branch Name
pullRequestNumberInteger !-Pull Request Number
Example
dagger -m github.com/BCIT-LTC/daggerverse/codespace-manager@4b156ff54961b9cc627acd3fe12da1da419119e6 call \
 create-codespace-pull-request --token env:MYSECRET --organization string --repo-name string --branch-name string --pull-request-number integer
func (m *MyModule) Example(ctx context.Context, token *dagger.Secret, organization string, repoName string, branchName string, pullRequestNumber int)   {
	return dag.
			CodespaceManager().
			CreateCodespacePullRequest(ctxtoken, organization, repoName, branchName, pullRequestNumber)
}
@function
async def example(token: dagger.Secret, organization: str, repo_name: str, branch_name: str, pull_request_number: int) -> None:
	return await (
		dag.codespace_manager()
		.create_codespace_pull_request(token, organization, repo_name, branch_name, pull_request_number)
	)
@func()
async example(token: Secret, organization: string, repoName: string, branchName: string, pullRequestNumber: number): Promise<void> {
	return dag
		.codespaceManager()
		.createCodespacePullRequest(token, organization, repoName, branchName, pullRequestNumber)
}