Dagger
Search

git-files-changed

Useful for CI in pull requests in monorepos.

Installation

dagger install github.com/valorl/daggerverse/git-files-changed@95f1bae86619513c32f1ed5b9d06bc88aa9261f4

Entrypoint

Return Type
GitFilesChanged
Example
dagger -m github.com/valorl/daggerverse/git-files-changed@95f1bae86619513c32f1ed5b9d06bc88aa9261f4 call \
func (m *myModule) example() *GitFilesChanged  {
	return dag.
			GitFilesChanged()
}
@function
def example() -> dag.GitFilesChanged:
	return (
		dag.git_files_changed()
	)
@func()
example(): GitFilesChanged {
	return dag
		.gitFilesChanged()
}

Types

GitFilesChanged 🔗

files() 🔗

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-files-changed@95f1bae86619513c32f1ed5b9d06bc88aa9261f4 call \
 files --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) []string  {
	return dag.
			GitFilesChanged().
			Files(ctx, source)
}
@function
async def example(source: dagger.Directory) -> List[str]:
	return await (
		dag.git_files_changed()
		.files(source)
	)
@func()
async example(source: Directory): Promise<string[]> {
	return dag
		.gitFilesChanged()
		.files(source)
}