I'm using GitHub as resource. In order to modify a file in the repo and use PUT /repos/{owner}/{repo}/contents/{path} I need to send the blob SHA of the file being replaced. How can I generate the hash from a transformer? Any suggestion?
Is there any example available on how to modify a file in GitHub?
You can use GitHub's get repository content endpoint to grab the SHA of the file you're looking to modify - that can be passed directly in the JSON body of your update request: