Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Improvements#8

Merged
italolelis merged 13 commits intomasterfrom
improvements
Mar 29, 2018
Merged

Improvements#8
italolelis merged 13 commits intomasterfrom
improvements

Conversation

@italolelis
Copy link
Contributor

  • Using contextual logging
  • Using contextual github client
  • New multierr pkg, for when we have multiple errors from github
  • New err wrapper pkg

@italolelis italolelis requested a review from rafaeljesus March 29, 2018 10:24
ctx := log.NewContext(context.Background())
ctx, err := config.NewContext(ctx, opts.configFile)
if err != nil {
log.WithContext(ctx).WithError(err).Error("Could not load configuration file")

Choose a reason for hiding this comment

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

should we return err here or it's fine to continue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's fine to not have the config file. You should still be able to create a repository with the defaults

@rafaeljesus
Copy link

:shipit:

@italolelis italolelis merged commit e3febfb into master Mar 29, 2018
@italolelis italolelis deleted the improvements branch March 29, 2018 12:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants