googleapis / code-suggester

Apache License 2.0
24 stars 17 forks source link

feat: throw new CommitError if an API error occurs during commit process #434

Closed chingor13 closed 1 year ago

chingor13 commented 1 year ago

Towards https://github.com/googleapis/repo-automation-bots/issues/4537

This will allow us to handle this particular class of errors (likely log a warning and ignore). It's easier for us to classify these errors as we throw them rather than trying to get the caller to distinguish which portion of the call to createPullRequest failed.