mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
refactor: simplify action function signatures (#1083)
This change reduces the interfaces by removing obsolete parameters from functions. Obsolete parameters does not means unused ones, but parameters which could be retrieved from other parameters instead. This should simplify logic and maintainability for these functions. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
a9af533ee6
commit
78987a6f82
7 changed files with 109 additions and 99 deletions
|
@ -86,7 +86,7 @@ func (sar *stepActionRemote) main() common.Executor {
|
|||
log.Debugf("Read action %v from '%s'", sar.action, "Unknown")
|
||||
return err
|
||||
},
|
||||
sar.runAction(sar, actionDir, remoteAction.Path, remoteAction.Repo, remoteAction.Ref, false),
|
||||
sar.runAction(sar, actionDir, remoteAction),
|
||||
)(ctx)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue