Documentation ¶
Index ¶
Constants ¶
View Source
const GithubPrivateKey = `` /* 1675-byte string literal not displayed */
Variables ¶
View Source
var ADPull = azuredevops.GitPullRequest{ CreatedBy: &azuredevops.IdentityRef{ ID: azuredevops.String("d6245f20-2af8-44f4-9451-8107cb2767db"), DisplayName: azuredevops.String("User"), UniqueName: azuredevops.String("user@example.com"), }, LastMergeSourceCommit: &azuredevops.GitCommitRef{ CommitID: azuredevops.String("b60280bc6e62e2f880f1b63c1e24987664d3bda3"), URL: azuredevops.String("https://dev.azure.com/owner/_apis/git/repositories/3411ebc1-d5aa-464f-9615-0b527bc66719/commits/b60280bc6e62e2f880f1b63c1e24987664d3bda3"), }, PullRequestID: azuredevops.Int(1), Repository: &ADRepo, SourceRefName: azuredevops.String("refs/heads/feature/sourceBranch"), Status: azuredevops.String("active"), TargetRefName: azuredevops.String("refs/heads/targetBranch"), URL: azuredevops.String("https://dev.azure.com/fabrikam/_apis/git/repositories/3411ebc1-d5aa-464f-9615-0b527bc66719/pullRequests/21"), }
View Source
var ADPullClosedEvent = azuredevops.Event{ EventType: "git.pullrequest.merged", Resource: &ADPullCompleted, }
View Source
var ADPullCompleted = azuredevops.GitPullRequest{ CreatedBy: &azuredevops.IdentityRef{ ID: azuredevops.String("d6245f20-2af8-44f4-9451-8107cb2767db"), DisplayName: azuredevops.String("User"), UniqueName: azuredevops.String("user@example.com"), }, LastMergeSourceCommit: &azuredevops.GitCommitRef{ CommitID: azuredevops.String("b60280bc6e62e2f880f1b63c1e24987664d3bda3"), URL: azuredevops.String("https://dev.azure.com/owner/_apis/git/repositories/3411ebc1-d5aa-464f-9615-0b527bc66719/commits/b60280bc6e62e2f880f1b63c1e24987664d3bda3"), }, PullRequestID: azuredevops.Int(1), Repository: &ADRepo, SourceRefName: azuredevops.String("refs/heads/owner/sourceBranch"), Status: azuredevops.String("completed"), TargetRefName: azuredevops.String("refs/heads/targetBranch"), URL: azuredevops.String("https://dev.azure.com/fabrikam/_apis/git/repositories/3411ebc1-d5aa-464f-9615-0b527bc66719/pullRequests/21"), }
View Source
var ADPullEvent = azuredevops.Event{ EventType: "git.pullrequest.created", Resource: &ADPull, }
View Source
var ADPullJSON = `` /* 4520-byte string literal not displayed */
View Source
var ADPullUpdatedEvent = azuredevops.Event{ EventType: "git.pullrequest.updated", Resource: &ADPull, }
View Source
var ADRepo = azuredevops.GitRepository{ DefaultBranch: azuredevops.String("refs/heads/main"), Name: azuredevops.String("repo"), ParentRepository: &azuredevops.GitRepositoryRef{ Name: azuredevops.String("owner"), }, Project: &azuredevops.TeamProjectReference{ ID: azuredevops.String("a21f5f20-4a12-aaf4-ab12-9a0927cbbb90"), Name: azuredevops.String("project"), State: azuredevops.String("unchanged"), }, WebURL: azuredevops.String("https://dev.azure.com/owner/project/_git/repo"), }
View Source
var ADSelfPull = azuredevops.GitPullRequest{ CreatedBy: &azuredevops.IdentityRef{ ID: azuredevops.String("d6245f20-2af8-44f4-9451-8107cb2767db"), DisplayName: azuredevops.String("User"), UniqueName: azuredevops.String("user@example.com"), }, LastMergeSourceCommit: &azuredevops.GitCommitRef{ CommitID: azuredevops.String("b60280bc6e62e2f880f1b63c1e24987664d3bda3"), URL: azuredevops.String("https://devops.abc.com/owner/project/_apis/git/repositories/3411ebc1-d5aa-464f-9615-0b527bc66719/commits/b60280bc6e62e2f880f1b63c1e24987664d3bda3"), }, PullRequestID: azuredevops.Int(1), Repository: &ADSelfRepo, SourceRefName: azuredevops.String("refs/heads/feature/sourceBranch"), Status: azuredevops.String("active"), TargetRefName: azuredevops.String("refs/heads/targetBranch"), URL: azuredevops.String("https://devops.abc.com/owner/project/_apis/git/repositories/3411ebc1-d5aa-464f-9615-0b527bc66719/pullRequests/21"), }
View Source
var ADSelfPullClosedEvent = azuredevops.Event{ EventType: "git.pullrequest.merged", Resource: &ADSelfPullCompleted, }
View Source
var ADSelfPullCompleted = azuredevops.GitPullRequest{ CreatedBy: &azuredevops.IdentityRef{ ID: azuredevops.String("d6245f20-2af8-44f4-9451-8107cb2767db"), DisplayName: azuredevops.String("User"), UniqueName: azuredevops.String("user@example.com"), }, LastMergeSourceCommit: &azuredevops.GitCommitRef{ CommitID: azuredevops.String("b60280bc6e62e2f880f1b63c1e24987664d3bda3"), URL: azuredevops.String("https://https://devops.abc.com/owner/project/_apis/git/repositories/3411ebc1-d5aa-464f-9615-0b527bc66719/commits/b60280bc6e62e2f880f1b63c1e24987664d3bda3"), }, PullRequestID: azuredevops.Int(1), Repository: &ADSelfRepo, SourceRefName: azuredevops.String("refs/heads/owner/sourceBranch"), Status: azuredevops.String("completed"), TargetRefName: azuredevops.String("refs/heads/targetBranch"), URL: azuredevops.String("https://devops.abc.com/owner/project/_apis/git/repositories/3411ebc1-d5aa-464f-9615-0b527bc66719/pullRequests/21"), }
View Source
var ADSelfPullEvent = azuredevops.Event{ EventType: "git.pullrequest.created", Resource: &ADSelfPull, }
View Source
var ADSelfPullJSON = `` /* 4523-byte string literal not displayed */
View Source
var ADSelfPullUpdatedEvent = azuredevops.Event{ EventType: "git.pullrequest.updated", Resource: &ADSelfPull, }
View Source
var ADSelfRepo = azuredevops.GitRepository{ DefaultBranch: azuredevops.String("refs/heads/main"), Name: azuredevops.String("repo"), ParentRepository: &azuredevops.GitRepositoryRef{ Name: azuredevops.String("owner"), }, Project: &azuredevops.TeamProjectReference{ ID: azuredevops.String("a21f5f20-4a12-aaf4-ab12-9a0927cbbb90"), Name: azuredevops.String("project"), State: azuredevops.String("unchanged"), }, WebURL: azuredevops.String("https://devops.abc.com/owner/project/_git/repo"), }
View Source
var Pull = github.PullRequest{ Head: &github.PullRequestBranch{ SHA: github.String("sha256"), Ref: github.String("ref"), Repo: &Repo, }, Base: &github.PullRequestBranch{ SHA: github.String("sha256"), Repo: &Repo, Ref: github.String("basebranch"), }, HTMLURL: github.String("html-url"), User: &github.User{ Login: github.String("user"), }, Number: github.Int(1), State: github.String("open"), }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.