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

Trim space to all config flags that allow to read value from file #4468

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

6543
Copy link
Member

@6543 6543 commented Nov 27, 2024

files often have a newline at the end but we expect simple values, so we should trim space for these options.

based on urfave/cli#2013 (comment)

followup to #4465

files often have a newline at the end but we expect simple values, so we should trim space for these options.
@6543 6543 added server agent enhancement improve existing features labels Nov 27, 2024
@6543 6543 added the ux user experience label Nov 27, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.22%. Comparing base (6f7f769) to head (cbdfe68).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4468   +/-   ##
=======================================
  Coverage   28.22%   28.22%           
=======================================
  Files         385      385           
  Lines       27847    27847           
=======================================
  Hits         7860     7860           
  Misses      19296    19296           
  Partials      691      691           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cmd/server/flags.go Outdated Show resolved Hide resolved
cmd/server/flags.go Outdated Show resolved Hide resolved
@qwerty287 qwerty287 merged commit 3da4240 into woodpecker-ci:main Nov 28, 2024
9 checks passed
@woodpecker-bot
Copy link
Collaborator

@woodpecker-bot woodpecker-bot mentioned this pull request Nov 28, 2024
1 task
@6543 6543 deleted the trim-all-from-file-val branch November 28, 2024 14:02
@woodpecker-bot woodpecker-bot mentioned this pull request Dec 14, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent enhancement improve existing features server ux user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants