Skip to content

Commit

Permalink
[EE] Drift issue mentions in PRs (#1241)
Browse files Browse the repository at this point in the history
* Mention drifted issues in subsequent PRs
  • Loading branch information
motatoes authored Mar 4, 2024
1 parent 858cb0e commit 1d8793b
Show file tree
Hide file tree
Showing 22 changed files with 247 additions and 68 deletions.
21 changes: 12 additions & 9 deletions cli/cmd/digger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/diggerhq/digger/cli/pkg/comment_updater"
core_drift "github.com/diggerhq/digger/cli/pkg/core/drift"
core_reporting "github.com/diggerhq/digger/cli/pkg/core/reporting"
"github.com/diggerhq/digger/cli/pkg/drift"
Expand Down Expand Up @@ -140,7 +141,9 @@ func gitHubCI(lock core_locking.Lock, policyChecker core_policy.Checker, backend
reportErrorAndExit(githubActor, fmt.Sprintf("Failed to report job status to backend. Exiting. %s", err), 4)
}

digger.UpdateStatusComment(serializedBatch.Jobs, serializedBatch.PrNumber, &githubPrService, commentId64)
commentUpdater := comment_updater.BasicCommentUpdater{}

commentUpdater.UpdateComment(serializedBatch.Jobs, serializedBatch.PrNumber, &githubPrService, commentId64)
digger.UpdateAggregateStatus(serializedBatch, &githubPrService)

planStorage := newPlanStorage(ghToken, repoOwner, repositoryName, githubActor, job.PullRequestNumber)
Expand All @@ -158,21 +161,21 @@ func gitHubCI(lock core_locking.Lock, policyChecker core_policy.Checker, backend
log.Printf("Failed to report job status to backend. %v", reportingError)
reportErrorAndExit(githubActor, fmt.Sprintf("Failed run commands. %s", err), 5)
}
digger.UpdateStatusComment(serializedBatch.Jobs, serializedBatch.PrNumber, &githubPrService, commentId64)
commentUpdater.UpdateComment(serializedBatch.Jobs, serializedBatch.PrNumber, &githubPrService, commentId64)
digger.UpdateAggregateStatus(serializedBatch, &githubPrService)

reportErrorAndExit(githubActor, fmt.Sprintf("Failed to run commands. %s", err), 5)
}

jobs := []orchestrator.Job{orchestrator.JsonToJob(job)}

_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, policyChecker, backendApi, inputs.Id, true, commentId64, currentDir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, policyChecker, commentUpdater, backendApi, inputs.Id, true, commentId64, currentDir)
if err != nil {
serializedBatch, reportingError := backendApi.ReportProjectJobStatus(repoName, job.ProjectName, inputs.Id, "failed", time.Now(), nil)
if reportingError != nil {
reportErrorAndExit(githubActor, fmt.Sprintf("Failed run commands. %s", err), 5)
}
digger.UpdateStatusComment(serializedBatch.Jobs, serializedBatch.PrNumber, &githubPrService, commentId64)
commentUpdater.UpdateComment(serializedBatch.Jobs, serializedBatch.PrNumber, &githubPrService, commentId64)
digger.UpdateAggregateStatus(serializedBatch, &githubPrService)
reportErrorAndExit(githubActor, fmt.Sprintf("Failed to run commands. %s", err), 5)
}
Expand Down Expand Up @@ -349,7 +352,7 @@ func gitHubCI(lock core_locking.Lock, policyChecker core_policy.Checker, backend

jobs = digger.SortedCommandsByDependency(jobs, &dependencyGraph)

allAppliesSuccessful, atLeastOneApply, err := digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, policyChecker, backendApi, "", false, 0, currentDir)
allAppliesSuccessful, atLeastOneApply, err := digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, policyChecker, comment_updater.NoopCommentUpdater{}, backendApi, "", false, 0, currentDir)
if err != nil {
reportErrorAndExit(githubActor, fmt.Sprintf("Failed to run commands. %s", err), 8)
// aggregate status checks: failure
Expand Down Expand Up @@ -466,7 +469,7 @@ func gitLabCI(lock core_locking.Lock, policyChecker core_policy.Checker, backend
ReportStrategy: reportingStrategy,
}
jobs = digger.SortedCommandsByDependency(jobs, &dependencyGraph)
allAppliesSuccess, atLeastOneApply, err := digger.RunJobs(jobs, gitlabService, gitlabService, lock, reporter, planStorage, policyChecker, backendApi, "", false, 0, currentDir)
allAppliesSuccess, atLeastOneApply, err := digger.RunJobs(jobs, gitlabService, gitlabService, lock, reporter, planStorage, policyChecker, comment_updater.NoopCommentUpdater{}, backendApi, "", false, 0, currentDir)

if err != nil {
log.Printf("failed to execute command, %v", err)
Expand Down Expand Up @@ -554,7 +557,7 @@ func azureCI(lock core_locking.Lock, policyChecker core_policy.Checker, backendA
ReportStrategy: reportingStrategy,
}
jobs = digger.SortedCommandsByDependency(jobs, &dependencyGraph)
allAppliesSuccess, atLeastOneApply, err := digger.RunJobs(jobs, azureService, azureService, lock, reporter, planStorage, policyChecker, backendApi, "", false, 0, currentDir)
allAppliesSuccess, atLeastOneApply, err := digger.RunJobs(jobs, azureService, azureService, lock, reporter, planStorage, policyChecker, comment_updater.NoopCommentUpdater{}, backendApi, "", false, 0, currentDir)
if err != nil {
reportErrorAndExit(parsedAzureContext.BaseUrl, fmt.Sprintf("Failed to run commands. %s", err), 8)
}
Expand Down Expand Up @@ -800,7 +803,7 @@ func bitbucketCI(lock core_locking.Lock, policyChecker core_policy.Checker, back

jobs = digger.SortedCommandsByDependency(jobs, &dependencyGraph)

_, _, err = digger.RunJobs(jobs, &bitbucketService, &bitbucketService, lock, &reporter, planStorage, policyChecker, backendApi, "", false, 0, currentDir)
_, _, err = digger.RunJobs(jobs, &bitbucketService, &bitbucketService, lock, &reporter, planStorage, policyChecker, comment_updater.NoopCommentUpdater{}, backendApi, "", false, 0, currentDir)
if err != nil {
reportErrorAndExit(actor, fmt.Sprintf("Failed to run commands. %s", err), 8)
}
Expand Down Expand Up @@ -837,7 +840,7 @@ func exec(actor string, projectName string, repoNamespace string, command string
}

jobs = digger.SortedCommandsByDependency(jobs, &dependencyGraph)
_, _, err = digger.RunJobs(jobs, prService, orgService, lock, reporter, planStorage, policyChecker, backendApi, "", false, 123, currentDir)
_, _, err = digger.RunJobs(jobs, prService, orgService, lock, reporter, planStorage, policyChecker, comment_updater.NoopCommentUpdater{}, backendApi, "", false, 123, currentDir)
}

/*
Expand Down
5 changes: 3 additions & 2 deletions cli/cmd/digger/main_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"github.com/diggerhq/digger/cli/pkg/comment_updater"
"log"

"github.com/diggerhq/digger/cli/pkg/digger"
Expand Down Expand Up @@ -895,7 +896,7 @@ func TestGitHubNewPullRequestContext(t *testing.T) {

event := context.Event.(github.PullRequestEvent)
jobs, _, err := dggithub.ConvertGithubPullRequestEventToJobs(&event, impactedProjects, requestedProject, map[string]configuration.Workflow{})
_, _, err = digger.RunJobs(jobs, prManager, prManager, lock, reporter, planStorage, policyChecker, backendApi, "123", false, 1, "dir")
_, _, err = digger.RunJobs(jobs, prManager, prManager, lock, reporter, planStorage, policyChecker, comment_updater.NoopCommentUpdater{}, backendApi, "123", false, 1, "dir")

assert.NoError(t, err)
if err != nil {
Expand Down Expand Up @@ -926,7 +927,7 @@ func TestGitHubNewCommentContext(t *testing.T) {

event := context.Event.(github.IssueCommentEvent)
jobs, _, err := dggithub.ConvertGithubIssueCommentEventToJobs(&event, impactedProjects, requestedProject, map[string]configuration.Workflow{}, "prbranch")
_, _, err = digger.RunJobs(jobs, prManager, prManager, lock, reporter, planStorage, policyChecker, backendApi, "123", false, 1, "")
_, _, err = digger.RunJobs(jobs, prManager, prManager, lock, reporter, planStorage, policyChecker, comment_updater.NoopCommentUpdater{}, backendApi, "123", false, 1, "")
assert.NoError(t, err)
if err != nil {
log.Println(err)
Expand Down
4 changes: 4 additions & 0 deletions cli/pkg/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ func (a *AzureReposService) PublishComment(prNumber int, comment string) (int64,
return 0, err
}

func (svc *AzureReposService) ListIssues() ([]*orchestrator.Issue, error) {
return nil, fmt.Errorf("implement me")
}

func (svc *AzureReposService) PublishIssue(title string, body string) (int64, error) {
return 0, fmt.Errorf("implement me")
}
Expand Down
4 changes: 4 additions & 0 deletions cli/pkg/bitbucket/bitbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ func (b BitbucketAPI) PublishComment(prNumber int, comment string) (int64, error
return 0, nil
}

func (svc BitbucketAPI) ListIssues() ([]*orchestrator.Issue, error) {
return nil, fmt.Errorf("implement me")
}

func (svc BitbucketAPI) PublishIssue(title string, body string) (int64, error) {
return 0, fmt.Errorf("implement me")
}
Expand Down
44 changes: 44 additions & 0 deletions cli/pkg/comment_updater/updater.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package comment_updater

import (
"encoding/json"
"fmt"
"github.com/diggerhq/digger/libs/orchestrator"
"github.com/diggerhq/digger/libs/orchestrator/scheduler"
"log"
)

type CommentUpdater interface {
UpdateComment(jobs []scheduler.SerializedJob, prNumber int, prService orchestrator.PullRequestService, prCommentId int64) error
}

type BasicCommentUpdater struct {
}

func (b BasicCommentUpdater) UpdateComment(jobs []scheduler.SerializedJob, prNumber int, prService orchestrator.PullRequestService, prCommentId int64) error {

message := ":construction_worker: Jobs status:\n\n"
for _, job := range jobs {
var jobSpec orchestrator.JobJson
err := json.Unmarshal(job.JobString, &jobSpec)
if err != nil {
log.Printf("Failed to convert unmarshall Serialized job, %v", err)
return fmt.Errorf("Failed to unmarshall serialized job: %v", err)
}
isPlan := jobSpec.IsPlan()

message = message + fmt.Sprintf("<!-- PROJECTHOLDER %v -->\n", job.ProjectName)
message = message + fmt.Sprintf("%v **%v** <a href='%v'>%v</a>%v\n", job.Status.ToEmoji(), jobSpec.ProjectName, *job.WorkflowRunUrl, job.Status.ToString(), job.ResourcesSummaryString(isPlan))
message = message + fmt.Sprintf("<!-- PROJECTHOLDEREND %v -->\n", job.ProjectName)
}

prService.EditComment(prNumber, prCommentId, message)
return nil
}

type NoopCommentUpdater struct {
}

func (b NoopCommentUpdater) UpdateComment(jobs []scheduler.SerializedJob, prNumber int, prService orchestrator.PullRequestService, prCommentId int64) error {
return nil
}
4 changes: 3 additions & 1 deletion cli/pkg/digger/digger.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package digger
import (
"errors"
"fmt"
"github.com/diggerhq/digger/cli/pkg/comment_updater"
"log"
"os"
"path"
Expand Down Expand Up @@ -73,6 +74,7 @@ func RunJobs(
reporter core_reporting.Reporter,
planStorage storage.PlanStorage,
policyChecker policy.Checker,
commentUpdater comment_updater.CommentUpdater,
backendApi backend.Api,
batchId string,
reportFinalStatusToBackend bool,
Expand Down Expand Up @@ -145,7 +147,7 @@ func RunJobs(
return false, false, fmt.Errorf("error while running command: %v", err)
}

err = UpdateStatusComment(batchResult.Jobs, prNumber, prService, prCommentId)
err = commentUpdater.UpdateComment(batchResult.Jobs, prNumber, prService, prCommentId)
if err != nil {
log.Printf("error Updating status comment: %v.\n", err)
return false, false, err
Expand Down
5 changes: 5 additions & 0 deletions cli/pkg/digger/digger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ func (m *MockPRManager) PublishComment(prNumber int, comment string) (int64, err
return 0, nil
}

func (m *MockPRManager) ListIssues() ([]*orchestrator.Issue, error) {
m.Commands = append(m.Commands, RunInfo{"ListIssues", "", time.Now()})
return nil, nil
}

func (m *MockPRManager) PublishIssue(title string, body string) (int64, error) {
m.Commands = append(m.Commands, RunInfo{"PublishComment", body, time.Now()})
return 0, nil
Expand Down
22 changes: 0 additions & 22 deletions cli/pkg/digger/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,9 @@ import (
"fmt"
"github.com/diggerhq/digger/libs/orchestrator"
"github.com/diggerhq/digger/libs/orchestrator/scheduler"
"github.com/goccy/go-json"
"log"
)

func UpdateStatusComment(jobs []scheduler.SerializedJob, prNumber int, prService orchestrator.PullRequestService, prCommentId int64) error {

message := ":construction_worker: Jobs status:\n\n"
for _, job := range jobs {
var jobSpec orchestrator.JobJson
err := json.Unmarshal(job.JobString, &jobSpec)
if err != nil {
log.Printf("Failed to convert unmarshall Serialized job, %v", err)
return fmt.Errorf("Failed to unmarshall serialized job: %v", err)
}
isPlan := jobSpec.IsPlan()

message = message + fmt.Sprintf("<!-- PROJECTHOLDER %v -->\n", job.ProjectName)
message = message + fmt.Sprintf("%v **%v** <a href='%v'>%v</a>%v\n", job.Status.ToEmoji(), jobSpec.ProjectName, *job.WorkflowRunUrl, job.Status.ToString(), job.ResourcesSummaryString(isPlan))
message = message + fmt.Sprintf("<!-- PROJECTHOLDEREND %v -->\n", job.ProjectName)
}

prService.EditComment(prNumber, prCommentId, message)
return nil
}

func UpdateAggregateStatus(batch *scheduler.SerializedBatch, prService orchestrator.PullRequestService) error {
// TODO: Introduce batch-level
isPlan, err := batch.IsPlan()
Expand Down
6 changes: 5 additions & 1 deletion cli/pkg/github/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ func (t MockCiService) PublishComment(prNumber int, comment string) (int64, erro
return int64(latestId), nil
}

func (svc MockCiService) PublishIssue(title string, body string) (int64, error) {
func (t MockCiService) ListIssues() ([]*orchestrator.Issue, error) {
return nil, fmt.Errorf("implement me")
}

func (t MockCiService) PublishIssue(title string, body string) (int64, error) {
return 0, fmt.Errorf("implement me")
}

Expand Down
4 changes: 4 additions & 0 deletions cli/pkg/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ func (gitlabService GitLabService) PublishComment(mergeRequestID int, comment st
}
}

func (svc GitLabService) ListIssues() ([]*orchestrator.Issue, error) {
return nil, fmt.Errorf("implement me")
}

func (svc GitLabService) PublishIssue(title string, body string) (int64, error) {
return 0, fmt.Errorf("implement me")
}
Expand Down
25 changes: 13 additions & 12 deletions cli/pkg/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package integration

import (
"context"
"github.com/diggerhq/digger/cli/pkg/comment_updater"
"log"
"math/rand"
"os"
Expand Down Expand Up @@ -416,7 +417,7 @@ func TestHappyPath(t *testing.T) {

diggerProjectNamespace := repoOwner + "/" + repositoryName

_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

projectLock := &locking.PullRequestLock{
Expand All @@ -443,7 +444,7 @@ func TestHappyPath(t *testing.T) {
prEvent := ghEvent.(github.PullRequestEvent)
jobs, _, err = dg_github.ConvertGithubPullRequestEventToJobs(&prEvent, impactedProjects, requestedProject, diggerConfig.Workflows)
assert.NoError(t, err)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

println("--- digger apply comment ---")
Expand All @@ -458,7 +459,7 @@ func TestHappyPath(t *testing.T) {
cEvent := ghEvent.(github.IssueCommentEvent)
jobs, _, err = dg_github.ConvertGithubIssueCommentEventToJobs(&cEvent, impactedProjects, requestedProject, diggerConfig.Workflows, "prBranch")
assert.NoError(t, err)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

projectLock = &locking.PullRequestLock{
Expand All @@ -482,7 +483,7 @@ func TestHappyPath(t *testing.T) {
cEvent = ghEvent.(github.IssueCommentEvent)
jobs, _, err = dg_github.ConvertGithubIssueCommentEventToJobs(&cEvent, impactedProjects, requestedProject, diggerConfig.Workflows, "prBranch")
assert.NoError(t, err)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

projectLock = &locking.PullRequestLock{
Expand Down Expand Up @@ -575,7 +576,7 @@ func TestMultiEnvHappyPath(t *testing.T) {
CiService: &githubPrService,
PrNumber: prNumber,
}
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, &dynamoDbLock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, &dynamoDbLock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

projectLock := &locking.PullRequestLock{
Expand All @@ -601,7 +602,7 @@ func TestMultiEnvHappyPath(t *testing.T) {
cEvent := ghEvent.(github.IssueCommentEvent)
jobs, _, err = dg_github.ConvertGithubIssueCommentEventToJobs(&cEvent, impactedProjects, requestedProject, diggerConfig.Workflows, "prBranch")
assert.NoError(t, err)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, &dynamoDbLock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, &dynamoDbLock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

println("--- digger apply comment ---")
Expand All @@ -615,7 +616,7 @@ func TestMultiEnvHappyPath(t *testing.T) {
cEvent = ghEvent.(github.IssueCommentEvent)
jobs, _, err = dg_github.ConvertGithubIssueCommentEventToJobs(&cEvent, impactedProjects, requestedProject, diggerConfig.Workflows, "prBranch")
assert.NoError(t, err)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, &dynamoDbLock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, &dynamoDbLock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

projectLock = &locking.PullRequestLock{
Expand All @@ -639,7 +640,7 @@ func TestMultiEnvHappyPath(t *testing.T) {
cEvent = ghEvent.(github.IssueCommentEvent)
jobs, _, err = dg_github.ConvertGithubIssueCommentEventToJobs(&cEvent, impactedProjects, requestedProject, diggerConfig.Workflows, "prBranch")
assert.NoError(t, err)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, &dynamoDbLock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, &dynamoDbLock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

projectLock = &locking.PullRequestLock{
Expand Down Expand Up @@ -797,7 +798,7 @@ workflows:
PrNumber: prNumber,
}

_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

projectLock := &locking.PullRequestLock{
Expand All @@ -823,7 +824,7 @@ workflows:
cEvent := ghEvent.(github.IssueCommentEvent)
jobs, _, err = dg_github.ConvertGithubIssueCommentEventToJobs(&cEvent, impactedProjects, requestedProject, diggerConfig.Workflows, "prBranch")
assert.NoError(t, err)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

println("--- digger apply comment ---")
Expand All @@ -837,7 +838,7 @@ workflows:
cEvent = ghEvent.(github.IssueCommentEvent)
jobs, _, err = dg_github.ConvertGithubIssueCommentEventToJobs(&cEvent, impactedProjects, requestedProject, diggerConfig.Workflows, "prBranch")
assert.NoError(t, err)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

projectLock = &locking.PullRequestLock{
Expand All @@ -860,7 +861,7 @@ workflows:
cEvent = ghEvent.(github.IssueCommentEvent)
jobs, _, err = dg_github.ConvertGithubIssueCommentEventToJobs(&cEvent, impactedProjects, requestedProject, diggerConfig.Workflows, "prBranch")
assert.NoError(t, err)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, nil, "", false, 123, dir)
_, _, err = digger.RunJobs(jobs, &githubPrService, &githubPrService, lock, reporter, planStorage, nil, comment_updater.NoopCommentUpdater{}, nil, "", false, 123, dir)
assert.NoError(t, err)

projectLock = &locking.PullRequestLock{
Expand Down
Loading

0 comments on commit 1d8793b

Please sign in to comment.