notify-and-hydrate-state
This module has been generated via dagger init and serves as a reference tobasic 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/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829eEntrypoint
Return Type
NotifyAndHydrateState !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| firestarterImageTag | String | "latest-slim" | No description provided |
| firestarterImage | String | "ghcr.io/prefapp/gitops-k8s" | No description provided |
| githubAppId | String ! | - | Github application ID |
| githubInstallationId | String ! | - | Github installation ID |
| githubPrefappInstallationId | String ! | - | Github prefapp installation ID |
| githubPrivateKey | Secret ! | - | Github private key |
| githubOrganization | String ! | - | Github organization |
| ghToken | Secret ! | - | Github token |
| claimsDefaultBranch | String ! | "main" | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch stringfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) *dagger.NotifyAndHydrateState {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> dagger.NotifyAndHydrateState:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): NotifyAndHydrateState {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
}Types
NotifyAndHydrateState 🔗
firestarterImage() 🔗
Return Type
String ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string firestarter-imagefunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
FirestarterImage(ctx)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.firestarter_image()
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.firestarterImage()
}firestarterImageTag() 🔗
Return Type
String ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string firestarter-image-tagfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
FirestarterImageTag(ctx)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.firestarter_image_tag()
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.firestarterImageTag()
}githubAppId() 🔗
Return Type
String ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string github-app-idfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GithubAppId(ctx)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.github_app_id()
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.githubAppId()
}githubInstallationId() 🔗
Return Type
String ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string github-installation-idfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GithubInstallationId(ctx)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.github_installation_id()
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.githubInstallationId()
}githubPrefappInstallationId() 🔗
Return Type
String ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string github-prefapp-installation-idfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GithubPrefappInstallationId(ctx)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.github_prefapp_installation_id()
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.githubPrefappInstallationId()
}githubPrivateKey() 🔗
Return Type
Secret ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string github-private-keyfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) *dagger.Secret {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GithubPrivateKey()
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> dagger.Secret:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.github_private_key()
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Secret {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.githubPrivateKey()
}githubOrganization() 🔗
Return Type
String ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string github-organizationfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GithubOrganization(ctx)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.github_organization()
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.githubOrganization()
}ghToken() 🔗
Return Type
Secret ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string gh-tokenfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) *dagger.Secret {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GhToken()
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> dagger.Secret:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.gh_token()
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Secret {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.ghToken()
}claimsDefaultBranch() 🔗
Return Type
String ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string claims-default-branchfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
ClaimsDefaultBranch(ctx)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.claims_default_branch()
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.claimsDefaultBranch()
}verify() 🔗
Return Type
Boolean !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| claimsPr | String ! | - | PR number ("<owner>/<repo>#<pr-number>") |
| ghRepo | String ! | - | Repository name ("<owner>/<repo>") |
| crs | [File ! ] ! | - | CRs to verify |
| prs | [NotifyAndHydrateStatePr ! ] ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, claimsPr string, ghRepo string, crs []*dagger.File, prs []*dagger.NotifyAndHydrateStatePr) bool {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
Verify(ctx, claimsPr, ghRepo, crs, prs)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, claims_pr: str, gh_repo: str, crs: List[dagger.File], prs: List[dagger.NotifyAndHydrateStatePr]) -> bool:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.verify(claims_pr, gh_repo, crs, prs)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, claimsPr: string, ghRepo: string, crs: File[], prs: NotifyAndHydrateStatePr[]): Promise<boolean> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.verify(claimsPr, ghRepo, crs, prs)
}crHasPendingPr() 🔗
Return Type
Boolean !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| prs | [NotifyAndHydrateStatePr ! ] ! | - | No description provided |
| currentPrNumber | String ! | - | No description provided |
| cr | NotifyAndHydrateStateCr ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, prs []*dagger.NotifyAndHydrateStatePr, currentPrNumber string, cr *dagger.NotifyAndHydrateStateCr) bool {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
CrHasPendingPr(ctx, prs, currentPrNumber, cr)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, prs: List[dagger.NotifyAndHydrateStatePr], current_pr_number: str, cr: dagger.NotifyAndHydrateStateCr) -> bool:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.cr_has_pending_pr(prs, current_pr_number, cr)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, prs: NotifyAndHydrateStatePr[], currentPrNumber: string, cr: NotifyAndHydrateStateCr): Promise<boolean> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.crHasPendingPr(prs, currentPrNumber, cr)
}addPrReferences() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| claimsRepo | String ! | - | Claims repository name |
| claimPrNumber | String ! | - | Claim PR number |
| prs | [NotifyAndHydrateStatePr ! ] ! | - | List of PRs |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, claimsRepo string, claimPrNumber string, prs []*dagger.NotifyAndHydrateStatePr) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
AddPrReferences(ctx, claimsRepo, claimPrNumber, prs)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, claims_repo: str, claim_pr_number: str, prs: List[dagger.NotifyAndHydrateStatePr]) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.add_pr_references(claims_repo, claim_pr_number, prs)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, claimsRepo: string, claimPrNumber: string, prs: NotifyAndHydrateStatePr[]): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.addPrReferences(claimsRepo, claimPrNumber, prs)
}closePr() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| prNumber | Integer ! | - | No description provided |
| ghRepo | String ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string close-pr --pr-number integer --gh-repo stringfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, prNumber int, ghRepo string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
ClosePr(ctx, prNumber, ghRepo)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, pr_number: int, gh_repo: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.close_pr(pr_number, gh_repo)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, prNumber: number, ghRepo: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.closePr(prNumber, ghRepo)
}filterByParentPr() 🔗
Return Type
[NotifyAndHydrateStatePr ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| parentPrNumber | String ! | - | No description provided |
| prs | [NotifyAndHydrateStatePr ! ] ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, parentPrNumber string, prs []*dagger.NotifyAndHydrateStatePr) []*dagger.NotifyAndHydrateStatePr {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
FilterByParentPr(parentPrNumber, prs)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, parent_pr_number: str, prs: List[dagger.NotifyAndHydrateStatePr]) -> List[dagger.NotifyAndHydrateStatePr]:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.filter_by_parent_pr(parent_pr_number, prs)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, parentPrNumber: string, prs: NotifyAndHydrateStatePr[]): NotifyAndHydrateStatePr[] {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.filterByParentPr(parentPrNumber, prs)
}getRepoPrs() 🔗
Return Type
[NotifyAndHydrateStatePr ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ghRepo | String ! | - | Repository name ("<owner>/<repo>") |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string get-repo-prs --gh-repo stringfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, ghRepo string) []*dagger.NotifyAndHydrateStatePr {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GetRepoPrs(ghRepo)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, gh_repo: str) -> List[dagger.NotifyAndHydrateStatePr]:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.get_repo_prs(gh_repo)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, ghRepo: string): NotifyAndHydrateStatePr[] {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.getRepoPrs(ghRepo)
}workflow() 🔗
Return Type
NotifyAndHydrateStateDiffResult !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| claimsRepo | String ! | - | Claims repository name |
| wetRepo | String ! | - | Wet repository name |
| claimsDir | Directory ! | - | Claims directory |
| crsDir | Directory ! | - | Previous CRs directory |
| provider | String ! | - | Provider to render |
| claimsPr | String ! | - | Claims PR |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string workflow --claims-repo string --wet-repo string --claims-dir DIR_PATH --crs-dir DIR_PATH --provider string --claims-pr stringfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, claimsRepo string, wetRepo string, claimsDir *dagger.Directory, crsDir *dagger.Directory, provider string, claimsPr string) *dagger.NotifyAndHydrateStateDiffResult {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
Workflow(claimsRepo, wetRepo, claimsDir, crsDir, provider, claimsPr)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, claims_repo: str, wet_repo: str, claims_dir: dagger.Directory, crs_dir: dagger.Directory, provider: str, claims_pr: str) -> dagger.NotifyAndHydrateStateDiffResult:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.workflow(claims_repo, wet_repo, claims_dir, crs_dir, provider, claims_pr)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, claimsRepo: string, wetRepo: string, claimsDir: Directory, crsDir: Directory, provider: string, claimsPr: string): NotifyAndHydrateStateDiffResult {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.workflow(claimsRepo, wetRepo, claimsDir, crsDir, provider, claimsPr)
}cmdContainer() 🔗
Return Type
Container ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string cmd-containerfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) *dagger.Container {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
CmdContainer()
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> dagger.Container:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.cmd_container()
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Container {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.cmdContainer()
}cmdHydrate() 🔗
Render claims into CRs
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| claimsRepo | String ! | - | Claims repository name |
| claimsDir | Directory ! | - | Claims directory |
| crsDir | Directory ! | - | Previous CRs directory |
| provider | String ! | - | Provider to render |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string cmd-hydrate --claims-repo string --claims-dir DIR_PATH --crs-dir DIR_PATH --provider stringfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, claimsRepo string, claimsDir *dagger.Directory, crsDir *dagger.Directory, provider string) *dagger.Directory {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
CmdHydrate(claimsRepo, claimsDir, crsDir, provider)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, claims_repo: str, claims_dir: dagger.Directory, crs_dir: dagger.Directory, provider: str) -> dagger.Directory:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.cmd_hydrate(claims_repo, claims_dir, crs_dir, provider)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, claimsRepo: string, claimsDir: Directory, crsDir: Directory, provider: string): Directory {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.cmdHydrate(claimsRepo, claimsDir, crsDir, provider)
}cmdAnnotateCrPr() 🔗
Render claims into CRs
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| lastClaimPrLink | String ! | - | Last claim PR link (https://...//pulls/123) |
| lastStatePrLink | String ! | - | Last state PR link (https://...//pulls/123) |
| wetRepo | Directory ! | - | Previous CRs directory |
| crFileName | String ! | - | Path to the cr |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string cmd-annotate-cr-pr --last-claim-pr-link string --last-state-pr-link string --wet-repo DIR_PATH --cr-file-name stringfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, lastClaimPrLink string, lastStatePrLink string, wetRepo *dagger.Directory, crFileName string) *dagger.Directory {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
CmdAnnotateCrPr(lastClaimPrLink, lastStatePrLink, wetRepo, crFileName)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, last_claim_pr_link: str, last_state_pr_link: str, wet_repo: dagger.Directory, cr_file_name: str) -> dagger.Directory:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.cmd_annotate_cr_pr(last_claim_pr_link, last_state_pr_link, wet_repo, cr_file_name)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, lastClaimPrLink: string, lastStatePrLink: string, wetRepo: Directory, crFileName: string): Directory {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.cmdAnnotateCrPr(lastClaimPrLink, lastStatePrLink, wetRepo, crFileName)
}cmdAffectedWetRepos() 🔗
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| claimsFromMain | Directory ! | - | No description provided |
| claimsFromPr | Directory ! | - | No description provided |
| claimsDefaults | Directory ! | - | No description provided |
| wetReposConfig | File ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string cmd-affected-wet-repos --claims-from-main DIR_PATH --claims-from-pr DIR_PATH --claims-defaults DIR_PATH --wet-repos-config file:pathfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, claimsFromMain *dagger.Directory, claimsFromPr *dagger.Directory, claimsDefaults *dagger.Directory, wetReposConfig *dagger.File) *dagger.File {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
CmdAffectedWetRepos(claimsFromMain, claimsFromPr, claimsDefaults, wetReposConfig)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, claims_from_main: dagger.Directory, claims_from_pr: dagger.Directory, claims_defaults: dagger.Directory, wet_repos_config: dagger.File) -> dagger.File:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.cmd_affected_wet_repos(claims_from_main, claims_from_pr, claims_defaults, wet_repos_config)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, claimsFromMain: Directory, claimsFromPr: Directory, claimsDefaults: Directory, wetReposConfig: File): File {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.cmdAffectedWetRepos(claimsFromMain, claimsFromPr, claimsDefaults, wetReposConfig)
}cmdAnnotateCrs() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| claimsRepo | String ! | - | Claims repository name |
| wetRepo | String ! | - | Wet repository name |
| wetPrNumber | String ! | - | Wet PR number |
| crsDir | Directory ! | - | CRs directory |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string cmd-annotate-crs --claims-repo string --wet-repo string --wet-pr-number string --crs-dir DIR_PATHfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, claimsRepo string, wetRepo string, wetPrNumber string, crsDir *dagger.Directory) *dagger.Directory {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
CmdAnnotateCrs(claimsRepo, wetRepo, wetPrNumber, crsDir)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, claims_repo: str, wet_repo: str, wet_pr_number: str, crs_dir: dagger.Directory) -> dagger.Directory:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.cmd_annotate_crs(claims_repo, wet_repo, wet_pr_number, crs_dir)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, claimsRepo: string, wetRepo: string, wetPrNumber: string, crsDir: Directory): Directory {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.cmdAnnotateCrs(claimsRepo, wetRepo, wetPrNumber, crsDir)
}closeOrphanPrs() 🔗
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| prNumber | String ! | - | No description provided |
| orphanPrs | [NotifyAndHydrateStatePr ! ] ! | - | No description provided |
| wetRepo | String ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, prNumber string, orphanPrs []*dagger.NotifyAndHydrateStatePr, wetRepo string) {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
CloseOrphanPrs(ctx, prNumber, orphanPrs, wetRepo)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, pr_number: str, orphan_prs: List[dagger.NotifyAndHydrateStatePr], wet_repo: str) -> None:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.close_orphan_prs(pr_number, orphan_prs, wet_repo)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, prNumber: string, orphanPrs: NotifyAndHydrateStatePr[], wetRepo: string): Promise<void> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.closeOrphanPrs(prNumber, orphanPrs, wetRepo)
}compareDirs() 🔗
Return Type
NotifyAndHydrateStateDiffResult !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| oldCrs | Directory ! | - | No description provided |
| newCrs | Directory ! | - | No description provided |
| affectedClaims | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string compare-dirs --old-crs DIR_PATH --new-crs DIR_PATH --affected-claims string1 --affected-claims string2func (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, oldCrs *dagger.Directory, newCrs *dagger.Directory, affectedClaims []string) *dagger.NotifyAndHydrateStateDiffResult {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
CompareDirs(oldCrs, newCrs, affectedClaims)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, old_crs: dagger.Directory, new_crs: dagger.Directory, affected_claims: List[str]) -> dagger.NotifyAndHydrateStateDiffResult:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.compare_dirs(old_crs, new_crs, affected_claims)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, oldCrs: Directory, newCrs: Directory, affectedClaims: string[]): NotifyAndHydrateStateDiffResult {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.compareDirs(oldCrs, newCrs, affectedClaims)
}areYamlsEqual() 🔗
Return Type
Boolean !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| yamlA | String ! | - | No description provided |
| yamlB | String ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string are-yamls-equal --yaml-a string --yaml-b stringfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, yamlA string, yamlB string) bool {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
AreYamlsEqual(ctx, yamlA, yamlB)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, yaml_a: str, yaml_b: str) -> bool:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.are_yamls_equal(yaml_a, yaml_b)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, yamlA: string, yamlB: string): Promise<boolean> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.areYamlsEqual(yamlA, yamlB)
}isAffectedCrfromPr() 🔗
Return Type
Boolean !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| affectedClaims | [String ! ] ! | - | No description provided |
| cr | File ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string is-affected-crfrom-pr --affected-claims string1 --affected-claims string2 --cr file:pathfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, affectedClaims []string, cr *dagger.File) bool {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
IsAffectedCrfromPr(ctx, affectedClaims, cr)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, affected_claims: List[str], cr: dagger.File) -> bool:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.is_affected_crfrom_pr(affected_claims, cr)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, affectedClaims: string[], cr: File): Promise<boolean> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.isAffectedCrfromPr(affectedClaims, cr)
}getPrChangedFiles() 🔗
Return Type
NotifyAndHydrateStatePrFiles !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| claimsRepo | Directory ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string get-pr-changed-files --claims-repo DIR_PATHfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, claimsRepo *dagger.Directory) *dagger.NotifyAndHydrateStatePrFiles {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GetPrChangedFiles(claimsRepo)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, claims_repo: dagger.Directory) -> dagger.NotifyAndHydrateStatePrFiles:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.get_pr_changed_files(claims_repo)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, claimsRepo: Directory): NotifyAndHydrateStatePrFiles {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.getPrChangedFiles(claimsRepo)
}getAffectedClaims() 🔗
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ghRepo | String ! | - | No description provided |
| prNumber | String ! | - | No description provided |
| claimsDir | Directory ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string get-affected-claims --gh-repo string --pr-number string --claims-dir DIR_PATHfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, ghRepo string, prNumber string, claimsDir *dagger.Directory) []string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GetAffectedClaims(ctx, ghRepo, prNumber, claimsDir)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, gh_repo: str, pr_number: str, claims_dir: dagger.Directory) -> List[str]:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.get_affected_claims(gh_repo, pr_number, claims_dir)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, ghRepo: string, prNumber: string, claimsDir: Directory): Promise<string[]> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.getAffectedClaims(ghRepo, prNumber, claimsDir)
}filterClaimsByYamlChanges() 🔗
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| claimsDir | Directory ! | - | No description provided |
| deletedFiles | [String ! ] ! | - | No description provided |
| addedOrModifiedFiles | [String ! ] ! | - | No description provided |
| ghRepo | String ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string filter-claims-by-yaml-changes --claims-dir DIR_PATH --deleted-files string1 --deleted-files string2 --added-or-modified-files string1 --added-or-modified-files string2 --gh-repo stringfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, claimsDir *dagger.Directory, deletedFiles []string, addedOrModifiedFiles []string, ghRepo string) []string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
FilterClaimsByYamlChanges(ctx, claimsDir, deletedFiles, addedOrModifiedFiles, ghRepo)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, claims_dir: dagger.Directory, deleted_files: List[str], added_or_modified_files: List[str], gh_repo: str) -> List[str]:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.filter_claims_by_yaml_changes(claims_dir, deleted_files, added_or_modified_files, gh_repo)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, claimsDir: Directory, deletedFiles: string[], addedOrModifiedFiles: string[], ghRepo: string): Promise<string[]> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.filterClaimsByYamlChanges(claimsDir, deletedFiles, addedOrModifiedFiles, ghRepo)
}readClaimNameFromFile() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| claimsDir | Directory ! | - | No description provided |
| file | String ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string read-claim-name-from-file --claims-dir DIR_PATH --file stringfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, claimsDir *dagger.Directory, file string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
ReadClaimNameFromFile(ctx, claimsDir, file)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, claims_dir: dagger.Directory, file: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.read_claim_name_from_file(claims_dir, file)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, claimsDir: Directory, file: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.readClaimNameFromFile(claimsDir, file)
}getClaimNameFromDefaultBranch() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| file | String ! | - | No description provided |
| ghRepo | String ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string get-claim-name-from-default-branch --file string --gh-repo stringfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, file string, ghRepo string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GetClaimNameFromDefaultBranch(ctx, file, ghRepo)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, file: str, gh_repo: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.get_claim_name_from_default_branch(file, gh_repo)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, file: string, ghRepo: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.getClaimNameFromDefaultBranch(file, ghRepo)
}filterClaimsByTfChanges() 🔗
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| claimsDir | Directory ! | - | No description provided |
| prFiles | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string filter-claims-by-tf-changes --claims-dir DIR_PATH --pr-files string1 --pr-files string2func (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, claimsDir *dagger.Directory, prFiles []string) []string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
FilterClaimsByTfChanges(ctx, claimsDir, prFiles)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, claims_dir: dagger.Directory, pr_files: List[str]) -> List[str]:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.filter_claims_by_tf_changes(claims_dir, pr_files)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, claimsDir: Directory, prFiles: string[]): Promise<string[]> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.filterClaimsByTfChanges(claimsDir, prFiles)
}getFileContentFromDefaultBranch() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repo | String ! | "claims" | No description provided |
| path | String ! | "claims/tfworkspaces/test-module-a.yaml" | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string get-file-content-from-default-branch --repo string --path stringfunc (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, repo string, path string) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
GetFileContentFromDefaultBranch(ctx, repo, path)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, repo: str, path: str) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.get_file_content_from_default_branch(repo, path)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, repo: string, path: string): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.getFileContentFromDefaultBranch(repo, path)
}upsertPrsFromDiff() 🔗
Return Type
NotifyAndHydrateStatePrsResult !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| diff | NotifyAndHydrateStateDiffResult ! | - | No description provided |
| wetRepositoryDir | Directory ! | - | No description provided |
| wetRepoName | String ! | - | No description provided |
| claimPrNumber | String ! | - | No description provided |
| prList | [NotifyAndHydrateStatePr ! ] ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, diff *dagger.NotifyAndHydrateStateDiffResult, wetRepositoryDir *dagger.Directory, wetRepoName string, claimPrNumber string, prList []*dagger.NotifyAndHydrateStatePr) *dagger.NotifyAndHydrateStatePrsResult {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
UpsertPrsFromDiff(diff, wetRepositoryDir, wetRepoName, claimPrNumber, prList)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, diff: dagger.NotifyAndHydrateStateDiffResult, wet_repository_dir: dagger.Directory, wet_repo_name: str, claim_pr_number: str, pr_list: List[dagger.NotifyAndHydrateStatePr]) -> dagger.NotifyAndHydrateStatePrsResult:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.upsert_prs_from_diff(diff, wet_repository_dir, wet_repo_name, claim_pr_number, pr_list)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, diff: NotifyAndHydrateStateDiffResult, wetRepositoryDir: Directory, wetRepoName: string, claimPrNumber: string, prList: NotifyAndHydrateStatePr[]): NotifyAndHydrateStatePrsResult {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.upsertPrsFromDiff(diff, wetRepositoryDir, wetRepoName, claimPrNumber, prList)
}upsertPr() 🔗
Return Type
NotifyAndHydrateStatePr !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| file | File ! | - | No description provided |
| wetRepositoryDir | Directory ! | - | No description provided |
| wetRepoName | String ! | - | No description provided |
| action | String ! | - | No description provided |
| claimPrNumber | String ! | - | No description provided |
| prs | [NotifyAndHydrateStatePr ! ] ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, file *dagger.File, wetRepositoryDir *dagger.Directory, wetRepoName string, action string, claimPrNumber string, prs []*dagger.NotifyAndHydrateStatePr) *dagger.NotifyAndHydrateStatePr {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
UpsertPr(file, wetRepositoryDir, wetRepoName, action, claimPrNumber, prs)
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, file: dagger.File, wet_repository_dir: dagger.Directory, wet_repo_name: str, action: str, claim_pr_number: str, prs: List[dagger.NotifyAndHydrateStatePr]) -> dagger.NotifyAndHydrateStatePr:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.upsert_pr(file, wet_repository_dir, wet_repo_name, action, claim_pr_number, prs)
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, file: File, wetRepositoryDir: Directory, wetRepoName: string, action: string, claimPrNumber: string, prs: NotifyAndHydrateStatePr[]): NotifyAndHydrateStatePr {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.upsertPr(file, wetRepositoryDir, wetRepoName, action, claimPrNumber, prs)
}configGitContainer() 🔗
Return Type
Container ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
--github-app-id string --github-installation-id string --github-prefapp-installation-id string --github-private-key env:MYSECRET --github-organization string --gh-token env:MYSECRET --claims-default-branch string config-git-containerfunc (m *MyModule) Example(githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string) *dagger.Container {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
ConfigGitContainer()
}@function
def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str) -> dagger.Container:
return (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.config_git_container()
)@func()
example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string): Container {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.configGitContainer()
}createPrIfNotExists() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| branch | String ! | - | No description provided |
| repo | String ! | - | No description provided |
| title | String ! | - | No description provided |
| body | String ! | - | No description provided |
| prs | [NotifyAndHydrateStatePr ! ] ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, githubAppId string, githubInstallationId string, githubPrefappInstallationId string, githubPrivateKey *dagger.Secret, githubOrganization string, ghToken *dagger.Secret, claimsDefaultBranch string, branch string, repo string, title string, body string, prs []*dagger.NotifyAndHydrateStatePr) string {
return dag.
NotifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch).
CreatePrIfNotExists(ctx, branch, repo, title, body, prs)
}@function
async def example(github_app_id: str, github_installation_id: str, github_prefapp_installation_id: str, github_private_key: dagger.Secret, github_organization: str, gh_token: dagger.Secret, claims_default_branch: str, branch: str, repo: str, title: str, body: str, prs: List[dagger.NotifyAndHydrateStatePr]) -> str:
return await (
dag.notify_and_hydrate_state(github_app_id, github_installation_id, github_prefapp_installation_id, github_private_key, github_organization, gh_token, claims_default_branch)
.create_pr_if_not_exists(branch, repo, title, body, prs)
)@func()
async example(githubAppId: string, githubInstallationId: string, githubPrefappInstallationId: string, githubPrivateKey: Secret, githubOrganization: string, ghToken: Secret, claimsDefaultBranch: string, branch: string, repo: string, title: string, body: string, prs: NotifyAndHydrateStatePr[]): Promise<string> {
return dag
.notifyAndHydrateState(githubAppId, githubInstallationId, githubPrefappInstallationId, githubPrivateKey, githubOrganization, ghToken, claimsDefaultBranch)
.createPrIfNotExists(branch, repo, title, body, prs)
}NotifyAndHydrateStatePr 🔗
headRefName() 🔗
Return Type
String ! Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, file *dagger.File, wetRepositoryDir *dagger.Directory, wetRepoName string, action string, claimPrNumber string, prs []*dagger.NotifyAndHydrateStatePr) string {
return dag.
NotifyAndHydrateState().
UpsertPr(file, wetRepositoryDir, wetRepoName, action, claimPrNumber, prs).
HeadRefName(ctx)
}@function
async def example(file: dagger.File, wet_repository_dir: dagger.Directory, wet_repo_name: str, action: str, claim_pr_number: str, prs: List[dagger.NotifyAndHydrateStatePr]) -> str:
return await (
dag.notify_and_hydrate_state()
.upsert_pr(file, wet_repository_dir, wet_repo_name, action, claim_pr_number, prs)
.head_ref_name()
)@func()
async example(file: File, wetRepositoryDir: Directory, wetRepoName: string, action: string, claimPrNumber: string, prs: NotifyAndHydrateStatePr[]): Promise<string> {
return dag
.notifyAndHydrateState()
.upsertPr(file, wetRepositoryDir, wetRepoName, action, claimPrNumber, prs)
.headRefName()
}url() 🔗
Return Type
String ! Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, file *dagger.File, wetRepositoryDir *dagger.Directory, wetRepoName string, action string, claimPrNumber string, prs []*dagger.NotifyAndHydrateStatePr) string {
return dag.
NotifyAndHydrateState().
UpsertPr(file, wetRepositoryDir, wetRepoName, action, claimPrNumber, prs).
Url(ctx)
}@function
async def example(file: dagger.File, wet_repository_dir: dagger.Directory, wet_repo_name: str, action: str, claim_pr_number: str, prs: List[dagger.NotifyAndHydrateStatePr]) -> str:
return await (
dag.notify_and_hydrate_state()
.upsert_pr(file, wet_repository_dir, wet_repo_name, action, claim_pr_number, prs)
.url()
)@func()
async example(file: File, wetRepositoryDir: Directory, wetRepoName: string, action: string, claimPrNumber: string, prs: NotifyAndHydrateStatePr[]): Promise<string> {
return dag
.notifyAndHydrateState()
.upsertPr(file, wetRepositoryDir, wetRepoName, action, claimPrNumber, prs)
.url()
}number() 🔗
Return Type
Integer ! Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, file *dagger.File, wetRepositoryDir *dagger.Directory, wetRepoName string, action string, claimPrNumber string, prs []*dagger.NotifyAndHydrateStatePr) int {
return dag.
NotifyAndHydrateState().
UpsertPr(file, wetRepositoryDir, wetRepoName, action, claimPrNumber, prs).
Number(ctx)
}@function
async def example(file: dagger.File, wet_repository_dir: dagger.Directory, wet_repo_name: str, action: str, claim_pr_number: str, prs: List[dagger.NotifyAndHydrateStatePr]) -> int:
return await (
dag.notify_and_hydrate_state()
.upsert_pr(file, wet_repository_dir, wet_repo_name, action, claim_pr_number, prs)
.number()
)@func()
async example(file: File, wetRepositoryDir: Directory, wetRepoName: string, action: string, claimPrNumber: string, prs: NotifyAndHydrateStatePr[]): Promise<number> {
return dag
.notifyAndHydrateState()
.upsertPr(file, wetRepositoryDir, wetRepoName, action, claimPrNumber, prs)
.number()
}NotifyAndHydrateStateCr 🔗
metadata() 🔗
Return Type
NotifyAndHydrateStateMetadata ! Example
Function NotifyAndHydrateStateCr.metadata is not accessible from the notify-and-hydrate-state moduleFunction NotifyAndHydrateStateCr.metadata is not accessible from the notify-and-hydrate-state moduleFunction NotifyAndHydrateStateCr.metadata is not accessible from the notify-and-hydrate-state moduleFunction NotifyAndHydrateStateCr.metadata is not accessible from the notify-and-hydrate-state moduleNotifyAndHydrateStateDiffResult 🔗
addedFiles() 🔗
Return Type
[File ! ] ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
compare-dirs --old-crs DIR_PATH --new-crs DIR_PATH --affected-claims string1 --affected-claims string2 \
added-filesfunc (m *MyModule) Example(oldCrs *dagger.Directory, newCrs *dagger.Directory, affectedClaims []string) []*dagger.File {
return dag.
NotifyAndHydrateState().
CompareDirs(oldCrs, newCrs, affectedClaims).
AddedFiles()
}@function
def example(old_crs: dagger.Directory, new_crs: dagger.Directory, affected_claims: List[str]) -> List[dagger.File]:
return (
dag.notify_and_hydrate_state()
.compare_dirs(old_crs, new_crs, affected_claims)
.added_files()
)@func()
example(oldCrs: Directory, newCrs: Directory, affectedClaims: string[]): File[] {
return dag
.notifyAndHydrateState()
.compareDirs(oldCrs, newCrs, affectedClaims)
.addedFiles()
}deletedFiles() 🔗
Return Type
[File ! ] ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
compare-dirs --old-crs DIR_PATH --new-crs DIR_PATH --affected-claims string1 --affected-claims string2 \
deleted-filesfunc (m *MyModule) Example(oldCrs *dagger.Directory, newCrs *dagger.Directory, affectedClaims []string) []*dagger.File {
return dag.
NotifyAndHydrateState().
CompareDirs(oldCrs, newCrs, affectedClaims).
DeletedFiles()
}@function
def example(old_crs: dagger.Directory, new_crs: dagger.Directory, affected_claims: List[str]) -> List[dagger.File]:
return (
dag.notify_and_hydrate_state()
.compare_dirs(old_crs, new_crs, affected_claims)
.deleted_files()
)@func()
example(oldCrs: Directory, newCrs: Directory, affectedClaims: string[]): File[] {
return dag
.notifyAndHydrateState()
.compareDirs(oldCrs, newCrs, affectedClaims)
.deletedFiles()
}modifiedFiles() 🔗
Return Type
[File ! ] ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
compare-dirs --old-crs DIR_PATH --new-crs DIR_PATH --affected-claims string1 --affected-claims string2 \
modified-filesfunc (m *MyModule) Example(oldCrs *dagger.Directory, newCrs *dagger.Directory, affectedClaims []string) []*dagger.File {
return dag.
NotifyAndHydrateState().
CompareDirs(oldCrs, newCrs, affectedClaims).
ModifiedFiles()
}@function
def example(old_crs: dagger.Directory, new_crs: dagger.Directory, affected_claims: List[str]) -> List[dagger.File]:
return (
dag.notify_and_hydrate_state()
.compare_dirs(old_crs, new_crs, affected_claims)
.modified_files()
)@func()
example(oldCrs: Directory, newCrs: Directory, affectedClaims: string[]): File[] {
return dag
.notifyAndHydrateState()
.compareDirs(oldCrs, newCrs, affectedClaims)
.modifiedFiles()
}unmodifiedFiles() 🔗
Return Type
[File ! ] ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
compare-dirs --old-crs DIR_PATH --new-crs DIR_PATH --affected-claims string1 --affected-claims string2 \
unmodified-filesfunc (m *MyModule) Example(oldCrs *dagger.Directory, newCrs *dagger.Directory, affectedClaims []string) []*dagger.File {
return dag.
NotifyAndHydrateState().
CompareDirs(oldCrs, newCrs, affectedClaims).
UnmodifiedFiles()
}@function
def example(old_crs: dagger.Directory, new_crs: dagger.Directory, affected_claims: List[str]) -> List[dagger.File]:
return (
dag.notify_and_hydrate_state()
.compare_dirs(old_crs, new_crs, affected_claims)
.unmodified_files()
)@func()
example(oldCrs: Directory, newCrs: Directory, affectedClaims: string[]): File[] {
return dag
.notifyAndHydrateState()
.compareDirs(oldCrs, newCrs, affectedClaims)
.unmodifiedFiles()
}NotifyAndHydrateStatePrFiles 🔗
addedModified() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
get-pr-changed-files --claims-repo DIR_PATH \
added-modifiedfunc (m *MyModule) Example(ctx context.Context, claimsRepo *dagger.Directory) []string {
return dag.
NotifyAndHydrateState().
GetPrChangedFiles(claimsRepo).
AddedModified(ctx)
}@function
async def example(claims_repo: dagger.Directory) -> List[str]:
return await (
dag.notify_and_hydrate_state()
.get_pr_changed_files(claims_repo)
.added_modified()
)@func()
async example(claimsRepo: Directory): Promise<string[]> {
return dag
.notifyAndHydrateState()
.getPrChangedFiles(claimsRepo)
.addedModified()
}deleted() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/prefapp/daggerverse/notify-and-hydrate-state@196418a97f103f3f4b63124163ef3d9365cb829e call \
get-pr-changed-files --claims-repo DIR_PATH \
deletedfunc (m *MyModule) Example(ctx context.Context, claimsRepo *dagger.Directory) []string {
return dag.
NotifyAndHydrateState().
GetPrChangedFiles(claimsRepo).
Deleted(ctx)
}@function
async def example(claims_repo: dagger.Directory) -> List[str]:
return await (
dag.notify_and_hydrate_state()
.get_pr_changed_files(claims_repo)
.deleted()
)@func()
async example(claimsRepo: Directory): Promise<string[]> {
return dag
.notifyAndHydrateState()
.getPrChangedFiles(claimsRepo)
.deleted()
}NotifyAndHydrateStatePrsResult 🔗
orphans() 🔗
Return Type
[NotifyAndHydrateStatePr ! ] ! Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(diff *dagger.NotifyAndHydrateStateDiffResult, wetRepositoryDir *dagger.Directory, wetRepoName string, claimPrNumber string, prList []*dagger.NotifyAndHydrateStatePr) []*dagger.NotifyAndHydrateStatePr {
return dag.
NotifyAndHydrateState().
UpsertPrsFromDiff(diff, wetRepositoryDir, wetRepoName, claimPrNumber, prList).
Orphans()
}@function
def example(diff: dagger.NotifyAndHydrateStateDiffResult, wet_repository_dir: dagger.Directory, wet_repo_name: str, claim_pr_number: str, pr_list: List[dagger.NotifyAndHydrateStatePr]) -> List[dagger.NotifyAndHydrateStatePr]:
return (
dag.notify_and_hydrate_state()
.upsert_prs_from_diff(diff, wet_repository_dir, wet_repo_name, claim_pr_number, pr_list)
.orphans()
)@func()
example(diff: NotifyAndHydrateStateDiffResult, wetRepositoryDir: Directory, wetRepoName: string, claimPrNumber: string, prList: NotifyAndHydrateStatePr[]): NotifyAndHydrateStatePr[] {
return dag
.notifyAndHydrateState()
.upsertPrsFromDiff(diff, wetRepositoryDir, wetRepoName, claimPrNumber, prList)
.orphans()
}prs() 🔗
Return Type
[NotifyAndHydrateStatePr ! ] ! Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(diff *dagger.NotifyAndHydrateStateDiffResult, wetRepositoryDir *dagger.Directory, wetRepoName string, claimPrNumber string, prList []*dagger.NotifyAndHydrateStatePr) []*dagger.NotifyAndHydrateStatePr {
return dag.
NotifyAndHydrateState().
UpsertPrsFromDiff(diff, wetRepositoryDir, wetRepoName, claimPrNumber, prList).
Prs()
}@function
def example(diff: dagger.NotifyAndHydrateStateDiffResult, wet_repository_dir: dagger.Directory, wet_repo_name: str, claim_pr_number: str, pr_list: List[dagger.NotifyAndHydrateStatePr]) -> List[dagger.NotifyAndHydrateStatePr]:
return (
dag.notify_and_hydrate_state()
.upsert_prs_from_diff(diff, wet_repository_dir, wet_repo_name, claim_pr_number, pr_list)
.prs()
)@func()
example(diff: NotifyAndHydrateStateDiffResult, wetRepositoryDir: Directory, wetRepoName: string, claimPrNumber: string, prList: NotifyAndHydrateStatePr[]): NotifyAndHydrateStatePr[] {
return dag
.notifyAndHydrateState()
.upsertPrsFromDiff(diff, wetRepositoryDir, wetRepoName, claimPrNumber, prList)
.prs()
}NotifyAndHydrateStateMetadata 🔗
name() 🔗
Return Type
String ! Example
Function NotifyAndHydrateStateMetadata.name is not accessible from the notify-and-hydrate-state moduleFunction NotifyAndHydrateStateMetadata.name is not accessible from the notify-and-hydrate-state moduleFunction NotifyAndHydrateStateMetadata.name is not accessible from the notify-and-hydrate-state moduleFunction NotifyAndHydrateStateMetadata.name is not accessible from the notify-and-hydrate-state module