Skip to content

Commit b88c1b5

Browse files
committed
Fix: including branch when fetching file SHA
1 parent abfd83d commit b88c1b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/github/github.app.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,11 @@ export default {
634634
const fileExists = await this._makeRequest({
635635
path: `/repos/${repoFullname}/contents/${path}`,
636636
validateStatus: () => true,
637+
...(branch && {
638+
params: {
639+
ref: branch,
640+
},
641+
}),
637642
});
638643
if (fileExists.sha) {
639644
console.log("File exists, overwriting.");

0 commit comments

Comments
 (0)