Skip to content

Commit

Permalink
Refactor markdown renderer (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayyush authored May 26, 2022
1 parent 2953210 commit cda21bc
Show file tree
Hide file tree
Showing 34 changed files with 539 additions and 484 deletions.
3 changes: 2 additions & 1 deletion server/controllers/events/events_controller_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (
"github.com/runatlantis/atlantis/server/events"
"github.com/runatlantis/atlantis/server/events/command"
"github.com/runatlantis/atlantis/server/events/command/apply"
"github.com/runatlantis/atlantis/server/vcs/markdown"

"github.com/runatlantis/atlantis/server/events/models"
"github.com/runatlantis/atlantis/server/events/vcs"
Expand Down Expand Up @@ -831,7 +832,7 @@ func setupE2E(t *testing.T, repoFixtureDir string, userConfig *server.UserConfig
pullUpdater := &events.PullOutputUpdater{
HidePrevPlanComments: false,
VCSClient: vcsClient,
MarkdownRenderer: &events.MarkdownRenderer{},
MarkdownRenderer: &markdown.Renderer{},
}

deleteLockCommand := &events.DefaultDeleteLockCommand{
Expand Down
3 changes: 2 additions & 1 deletion server/events/command_runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
"github.com/runatlantis/atlantis/server/events/models"
"github.com/runatlantis/atlantis/server/events/models/fixtures"
vcsmocks "github.com/runatlantis/atlantis/server/events/vcs/mocks"
"github.com/runatlantis/atlantis/server/vcs/markdown"
. "github.com/runatlantis/atlantis/testing"
)

Expand Down Expand Up @@ -92,7 +93,7 @@ func setup(t *testing.T) *vcsmocks.MockClient {
pullUpdater = &events.PullOutputUpdater{
HidePrevPlanComments: false,
VCSClient: vcsClient,
MarkdownRenderer: &events.MarkdownRenderer{},
MarkdownRenderer: &markdown.Renderer{},
}

parallelPoolSize := 1
Expand Down
Loading

0 comments on commit cda21bc

Please sign in to comment.