Skip to content

Commit f290956

Browse files
authored
fix: reset loaded config on each execution (#81)
1 parent 255bf74 commit f290956

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/auto_merge/auto_merge.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func (plugin *AutoMergePlugin) Name() string {
3333

3434
func (plugin *AutoMergePlugin) Execute(project *gitlab.Project, config config.ProjectConfig) {
3535
log := utils.Logger(project, nil)
36+
plugin.loadedConfig = &autoMergeConfig.AutoMergeConfig{}
3637
err := json.Unmarshal(config.Plugins[plugin.Name()], &plugin.loadedConfig)
3738
if err != nil {
3839
log.Error("Can't load config", err)

0 commit comments

Comments
 (0)