February 26, 2024
1
2
3
4
5
6
import { Octokit } from "npm:@octokit/rest";
type PR = Parameters<typeof Octokit["rest"]["pulls"]["create"]>;
export async function submitPR(ghToken: string, ...pr: PR) {
return new Octokit({ auth: ghToken }).rest.pulls.create(pr);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
February 26, 2024