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

fix: allow events yaml unmarshal #370

Merged
merged 5 commits into from
Apr 17, 2024
Merged

Conversation

plyr4
Copy link
Contributor

@plyr4 plyr4 commented Apr 5, 2024

lets allow_events be unmarshalled as a string slice in yaml, primarily for the cli to read add/update input from a file.

kudos @wsan3 for spotting the bug

@plyr4 plyr4 requested a review from a team as a code owner April 5, 2024 20:58
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 96.08%. Comparing base (c5cba4e) to head (c83df11).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #370      +/-   ##
==========================================
- Coverage   96.55%   96.08%   -0.47%     
==========================================
  Files          69       69              
  Lines        5335     5361      +26     
==========================================
  Hits         5151     5151              
- Misses        110      136      +26     
  Partials       74       74              
Files Coverage Δ
library/repo.go 96.80% <0.00%> (-3.21%) ⬇️
library/secret.go 96.01% <0.00%> (-3.99%) ⬇️
library/events.go 94.31% <0.00%> (-5.69%) ⬇️

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably be added in https://github.com/go-vela/server/blob/main/api/types/repo.go as well now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes!

Copy link
Contributor

@KellyMerrick KellyMerrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@plyr4 plyr4 merged commit fb4a95c into main Apr 17, 2024
11 checks passed
@plyr4 plyr4 deleted the fix/allow-events-yaml-unmarshal branch April 17, 2024 13:50
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.

3 participants