Dagger
Search

git-affected

Useful for CI in pull requests in monorepos.

Installation

dagger install github.com/valorl/daggerverse/git-affected@eef53d255900baca6236c07713652bb59ffa6e1c

Entrypoint

Return Type
GitAffected
Example
dagger -m github.com/valorl/daggerverse/git-affected@eef53d255900baca6236c07713652bb59ffa6e1c 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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
headRefString "HEAD"No description provided
baseRefString "main"No description provided
Example
dagger -m github.com/valorl/daggerverse/git-affected@eef53d255900baca6236c07713652bb59ffa6e1c 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)
}