-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
chore: factorize condition result code out of resource plugins #1775
chore: factorize condition result code out of resource plugins #1775
Conversation
273baf8
to
0abbc6f
Compare
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
a68e2b4
to
17cfd98
Compare
Going to continue to look more at the code as this is the sort of PR that takes multiple passes. But I remember when I first looked to create a contribution I read this: https://github.com/updatecli/updatecli/blob/main/CONTRIBUTING.adoc#3-respect-the-contract I realised it was out of date and moved on, in hind sight I should have looked to to update it. The whole page possibly needs a overhaul so might be out of scope for this change but contacts could be updated. |
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Good point! I've tried to update a bit in 0d845e0, WDYT? |
Co-authored-by: Olivier Vernin <olivier@vernin.me>
I made another pass and I catch a few additional things. It's nice to see a lot of go code being cleanup |
Co-authored-by: Olivier Vernin <olivier@vernin.me>
This PR factorizes condition result code out of resource plugins:
githubrelease
condition returnsfalse
but no error anymore when no upstream errors are triggered, with the same textual output as before.gittag
condition returnsfalse
but no error anymore when no upstream errors are triggered, with the same textual output as before.golang
condition returnsfalse
but no error anymore when no upstream errors are triggered, with the same textual output as beforegomod
condition returnsfalse
but no error anymore when no upstream errors are triggered, with the same textual output as beforegomodule
condition returnsfalse
but no error anymore when no upstream errors are triggered, with the same textual output as beforeerror.new()
vs.fmt.Errorf()
)Test
To test this pull request, you can run the following commands:
make test
Additional Information
Condition()
function. It wasn't before this PR, so I chose to focus on the refactor to avoid too much changes in this PR