mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[PR #2162] [MERGED] refactor(cmd/root): simplify parseEnvs #2292
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#2292
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/2162
Author: @Juneezee
Created: 1/20/2024
Status: ✅ Merged
Merged: 1/24/2024
Merged by: @mergify[bot]
Base:
master← Head:refactor/simplify-parseEnvs📝 Commits (2)
6c137c7refactor(cmd/root): simplifyparseEnvs75260b8Merge branch 'master' into refactor/simplify-parseEnvs📊 Changes
1 file changed (+11 additions, -15 deletions)
View changed files
📝
cmd/root.go(+11 -15)📄 Description
Currently
parseEnvsaccept two parameters:env []stringenvs map[string]stringparseEnvsthen do a safetynilcheck forenv.github.com/nektos/act@15bb54f14e/cmd/root.go (L299-L312)However, we never pass a
nilenvtoparseEnvsinnewRunCommand.github.com/nektos/act@15bb54f14e/cmd/root.go (L417-L418)github.com/nektos/act@15bb54f14e/cmd/root.go (L422-L423)This commit simplify the
parseEnvsfunction to accept just oneenv []stringparameter and return the result asmap[string]stringinstead.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.