git-affected
Useful for CI in pull requests in monorepos.Installation
dagger install github.com/valorl/daggerverse/git-affected@209bdc003a50cd198dfc38987b0cf5ae60c6c361
Entrypoint
Return Type
GitAffected
Example
dagger -m github.com/valorl/daggerverse/git-affected@209bdc003a50cd198dfc38987b0cf5ae60c6c361 call \
func (m *myModule) example() *GitAffected {
return dag.
GitAffected()
}
@function
def example() -> dag.GitAffected:
return (
dag.git_affected()
)
@func()
example(): GitAffected {
return dag
.gitAffected()
}
Types
GitAffected 🔗
list() 🔗
Return Type
[String ! ] !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
headRef | String | "HEAD" | No description provided |
baseRef | String | "main" | No description provided |
Example
dagger -m github.com/valorl/daggerverse/git-affected@209bdc003a50cd198dfc38987b0cf5ae60c6c361 call \
list --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) []string {
return dag.
GitAffected().
List(ctx, source)
}
@function
async def example(source: dagger.Directory) -> List[str]:
return await (
dag.git_affected()
.list(source)
)
@func()
async example(source: Directory): Promise<string[]> {
return dag
.gitAffected()
.list(source)
}
test() 🔗
Return Type
[String ! ] !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/valorl/daggerverse/git-affected@209bdc003a50cd198dfc38987b0cf5ae60c6c361 call \
test --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) []string {
return dag.
GitAffected().
Test(ctx, source)
}
@function
async def example(source: dagger.Directory) -> List[str]:
return await (
dag.git_affected()
.test(source)
)
@func()
async example(source: Directory): Promise<string[]> {
return dag
.gitAffected()
.test(source)
}