@ucdjs/release-scripts 0.1.0-beta.7 → 0.1.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -342,6 +342,7 @@ async function pushBranch(branch, workspaceRoot, options) {
|
|
|
342
342
|
//#region src/github.ts
|
|
343
343
|
async function getExistingPullRequest({ owner, repo, branch, githubToken }) {
|
|
344
344
|
try {
|
|
345
|
+
logger.debug(`Requesting pull request for branch: ${branch} (url: https://api.github.com/repos/${owner}/${repo}/pulls?state=open&head=${branch})`);
|
|
345
346
|
const res = await fetch(`https://api.github.com/repos/${owner}/${repo}/pulls?state=open&head=${branch}`, { headers: {
|
|
346
347
|
Accept: "application/vnd.github.v3+json",
|
|
347
348
|
Authorization: `token ${githubToken}`
|
|
@@ -379,6 +380,7 @@ async function upsertPullRequest({ owner, repo, title, body, head, base, pullNum
|
|
|
379
380
|
head,
|
|
380
381
|
base
|
|
381
382
|
};
|
|
383
|
+
logger.debug(`${isUpdate ? "Updating" : "Creating"} pull request (url: ${url})`);
|
|
382
384
|
const res = await fetch(url, {
|
|
383
385
|
method,
|
|
384
386
|
headers: {
|