Closed Jamadan closed 3 years ago
Hey @Jamadan , care to share a snippet of how you solved it? 😃 It might be helpful for someone else facing the same problem.
Ha - bit of a 🤦
Issue was elsewhere, however I still haven't figured this out just yet, will report back!
It would be appreciated if someone can provide an example.. i've followed the documentation and not sure how else to proceed
here is an example:
// Create a new commit
const response = await bitbucketClient.repositories.createSrcFileCommit({
_body: {
"example-file1.json": JSON.stringify(data.json),
author: 'xxx <admin@xxx.app>',
branch: 'dtoday',
message: 'Update file content',
},
repo_slug: repoSlug,
workspace: workspace,
});
not possible to guess this via the documentation
I've been playing around with this for a while now.
Reading is working fine but I can't figure out what the correct set up is for creating commits.
What's the correct way to use this?
Can someone point me in the direction of an example
createFileCommit
please?(reading from repo is working fine, and I have checked all permissions for the user that is used on client creation)
Thanks in advance