You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
384 B
JavaScript
13 lines
384 B
JavaScript
#!/usr/bin/env zx
|
|
|
|
$.verbose = false;
|
|
|
|
const git = await import("./lib/git.js")
|
|
|
|
const issueNumber = process.argv[3];
|
|
const issue = await $`gh issue view ${issueNumber} --repo cosmos/ibc-go --json title`;
|
|
const issueTitle = JSON.parse(issue).title.trim();
|
|
const sanitizedTitle = git.sanitizeIssueTitle(issueTitle);
|
|
|
|
await $`gh pr create --web --title "${sanitizedTitle}" --base main`
|