Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for task-level options propagated to all commands #180

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

umputun
Copy link
Owner

@umputun umputun commented Mar 22, 2024

The initial goal was to allow setting task-level secrets; however, to keep things consistent with other options, it was extended to support all the options. The solution is limited, and command options can't reset the boolean options defined at the task level. This is because we don't have a way to distinguish between default values (i.e. false for bool) and false set for real.

This PR also addresses concerns mentioned by @rahfar in #179 and allows the setting of secrets on the task level, once for all the commands and onerror

the initial goal was to allow setting task-level secrets, however, to keep things consistent with other options it was extended to support all the options. The solution has a limitation and command options can't reset boolean options defined on task level. This is because we don't have a way to distinguish between default values (i.e. false for bool) and false set for real.
Copy link

Deploying spot-site with  Cloudflare Pages  Cloudflare Pages

Latest commit: c4db01c
Status: ✅  Deploy successful!
Preview URL: https://10a9f049.spot-7ki.pages.dev
Branch Preview URL: https://task-secret.spot-7ki.pages.dev

View logs

@coveralls
Copy link

Pull Request Test Coverage Report for Build 8397713130

Details

  • 18 of 24 (75.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 84.46%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/config/playbook.go 18 24 75.0%
Totals Coverage Status
Change from base Build 8397242840: -0.03%
Covered Lines: 2674
Relevant Lines: 3166

💛 - Coveralls

@umputun umputun merged commit 0b9f53b into master Mar 23, 2024
5 checks passed
@umputun umputun deleted the task-secret branch March 23, 2024 00:17
umputun added a commit that referenced this pull request Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants