Github Resource Query. PUT requires hash

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?

Hey @C3PablO!

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:

Let me know if that works!

yeah! Thanks. I got it wrong I though I had to generate a new hash with the file updated.