You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case in which I get a commit id for a particular branch in a repository, but when I try to get the file content from that particular branch, I get the content for the same file from the master branch.
How to get a branch and get the file content from that branch only. Also, is it possible to get the branch and file content on the basis of commit id. Below is my code I use to get the file content
`
GHContent props = null;
try {
props = ghBranch.getOwner().getFileContent("props.json");
} catch (IOException e) {
return Response.badRequest("Cannot find props.json at the root of project");
}
CustomProps props = convertorService.getProperties(props);
return Response.ok(cloud);`
The text was updated successfully, but these errors were encountered:
I have a use case in which I get a commit id for a particular branch in a repository, but when I try to get the file content from that particular branch, I get the content for the same file from the master branch.
How to get a branch and get the file content from that branch only. Also, is it possible to get the branch and file content on the basis of commit id. Below is my code I use to get the file content
`
The text was updated successfully, but these errors were encountered: