git.modified_files returns the original filename instead of the renamed file. Because the original name no longer exists on disk, it manifests as an issue in GH:
422 - Validation Failed
15:55:22 Error summary:
15:55:22 resource: PullRequestReviewComment
15:55:22 code: invalid
15:55:22 field: position // See: https://developer.github.com/enterprise/2.8/v3/pulls/comments/#create-a-comment
I think it makes sense to add a git.renamed_files DSL,something that would look like [{ :before => "/a/b", :after => "/a/c"}]. modified_files cannot really provide enough useful metadata from its current setup.
@orta great idea!
@orta hi! Here PR to solve this.
Thanks! Shipped in 5.2.1
Most helpful comment
I think it makes sense to add a
git.renamed_filesDSL,something that would look like[{ :before => "/a/b", :after => "/a/c"}].modified_filescannot really provide enough useful metadata from its current setup.