Skip to content

Commit

Permalink
fix(apiController): Pass commitStatusUpdater to the APIController (ru…
Browse files Browse the repository at this point in the history
…natlantis#5323)

Signed-off-by: Mathias Mikkel Neerup <mane@tv2.dk>
  • Loading branch information
Exchizz authored Mar 2, 2025
1 parent a66ee94 commit 9339403
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,7 @@ func NewServer(userConfig UserConfig, config Config) (*Server, error) {
KeyGenerator: controllers.JobIDKeyGenerator{},
StatsScope: statsScope.SubScope("api"),
}

apiController := &controllers.APIController{
APISecret: []byte(userConfig.APISecret),
Locker: lockingClient,
Expand All @@ -957,6 +958,7 @@ func NewServer(userConfig UserConfig, config Config) (*Server, error) {
VCSClient: vcsClient,
WorkingDir: workingDir,
WorkingDirLocker: workingDirLocker,
CommitStatusUpdater: commitStatusUpdater,
}

eventsController := &events_controllers.VCSEventsController{
Expand Down

0 comments on commit 9339403

Please sign in to comment.