Skip to content

Commit 9d041f7

Browse files
committed
allow delete of file on branch
The github API requires an option `branch` param to delete a file from a branch.
1 parent ff5e99c commit 9d041f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

github.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@
563563
};
564564
delPath += "?message=" + encodeURIComponent(params.message);
565565
delPath += "&sha=" + encodeURIComponent(params.sha);
566+
delPath += '&branch=' + encodeURIComponent(branch);
566567
_request("DELETE", delPath, null, cb);
567568
})
568569
}

0 commit comments

Comments
 (0)