tgymnich / fork-sync

🔄 Github action to sync your forks
MIT License
382 stars 82 forks source link

Validation Failed: {"resource":"PullRequest","code":"custom","message":"No commits between master and master"} #112

Closed kiranshahavi closed 1 year ago

kiranshahavi commented 1 year ago

response: { url: 'https://api.github.com/repos/kiranshahavi/blogdata/pulls', status: 422, headers: { 'access-control-allow-origin': '*', 'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset', connection: 'close', 'content-length': '223', 'content-security-policy': "default-src 'none'", 'content-type': 'application/json; charset=utf-8', date: 'Thu, 13 Oct 2022 10:40:51 GMT', 'github-authentication-token-expiration': '2022-11-12 10:31:26 UTC', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', server: 'GitHub.com', 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', vary: 'Accept-Encoding, Accept, X-Requested-With', 'x-accepted-oauth-scopes': '', 'x-content-type-options': 'nosniff', 'x-frame-options': 'deny', 'x-github-media-type': 'github.v3; format=json', 'x-github-request-id': 'FBF7:0F00:7A846:84170:6347EB33', 'x-oauth-scopes': 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, delete:packages, delete_repo, gist, notifications, project, repo, user, workflow, write:discussion, write:packages', 'x-ratelimit-limit': '5000', 'x-ratelimit-remaining': '4982', 'x-ratelimit-reset': '1665659290', 'x-ratelimit-resource': 'core', 'x-ratelimit-used': '18', 'x-xss-protection': '0' }, data: { message: 'Validation Failed', errors: [Array], documentation_url: 'https://docs.github.com/rest/reference/pulls#create-a-pull-request' } }, request: { method: 'POST', url: 'https://api.github.com/repos/kiranshahavi/blogdata/pulls', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'octokit.js/2.0.8 octokit-core.js/4.1.0 Node.js/16.13.0 (win32; x64)', authorization: 'token [REDACTED]', 'content-type': 'application/json; charset=utf-8' }, body: '{"owner":"kiranshahavi","repo":"blogdata","head":"master","base":"master"}', request: { hook: [Function: bound bound register] } } } DEBUG2 HttpError: Validation Failed: {"resource":"PullRequest","code":"custom","message":"No commits between master and master"} at C:\Git\uploadserverfiles\node_modules\@octokit\request\dist-node\index.js:88:21 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Job.doExecute (C:\Git\uploadserverfiles\node_modules\bottleneck\light.js:405:18)