git-files-changed
Useful for CI in pull requests in monorepos.Installation
dagger install github.com/valorl/daggerverse/git-files-changed@e8b25b9c6589f13b362dcaf94acda967f26f6700
Entrypoint
Return Type
GitFilesChanged
Example
dagger -m github.com/valorl/daggerverse/git-files-changed@e8b25b9c6589f13b362dcaf94acda967f26f6700 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
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-files-changed@e8b25b9c6589f13b362dcaf94acda967f26f6700 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)
}