Table of Contents

Interface IApproveDependabotPr

Namespace
Invex.RepoUtils.Atom.Module.Targets
Assembly
Invex.RepoUtils.Atom.Module.dll

Provides a build target that automatically enables auto-merge on pull requests opened by Dependabot, allowing dependency update PRs to merge once their required checks pass.

public interface IApproveDependabotPr : IGitHubHelper, IGithubPrHelper, IBuildAccessor
Inherited Members
IGitHubHelper.GitHubToken
IBuildAccessor.GetService<T>()
IBuildAccessor.GetServices<T>()
IBuildAccessor.GetParam<T>(Expression<Func<T>>, T, Func<string, T>)
IBuildAccessor.Services
IBuildAccessor.Logger
IBuildAccessor.RootedFileSystem
IBuildAccessor.ProcessRunner

Fields

DependabotActorName

The GitHub actor name used by Dependabot. Only pull requests opened by this actor are eligible for auto-merge.

public const string DependabotActorName = "dependabot[bot]"

Field Value

string

Properties

ApproveDependabotPr

Enables auto-merge on the target Dependabot pull request. The target validates that the pull request was opened by Dependabot before resolving the pull request and issuing the GraphQL mutation to enable auto-merge using the merge strategy.

Target ApproveDependabotPr { get; }

Property Value

Target

DependabotEnableAutoMergePat

A GitHub personal access token with the permissions required to enable auto-merge on pull requests. A dedicated PAT is required because the default workflow token cannot trigger the downstream workflows needed to complete an auto-merge.

[SecretDefinition("dependabot-enable-auto-merge-pat", "A GitHub PAT with permissions to enable auto-merge on pull requests.", ParamSource.All, null)]
string? DependabotEnableAutoMergePat { get; }

Property Value

string