Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable autofixes on forks #1063

Open
72636c opened this issue Dec 9, 2022 · 0 comments
Open

Enable autofixes on forks #1063

72636c opened this issue Dec 9, 2022 · 0 comments

Comments

@72636c
Copy link
Member

72636c commented Dec 9, 2022

If this is possible, I think we'd need cleverer branch inference to target e.g. refs/pull/123/head.

Failed to push fix commit.
Does your CI environment have write access to your Git repository?

GraphqlResponseError: Request failed due to following response errors:

Branch not found
   at /workdir/node_modules/@octokit/graphql/dist-node/index.js:81:13
   at processTicksAndRejections (node:internal/process/task_queues:96:5)
   at async uploadFileChanges (/workdir/node_modules/skuba/lib/api/github/push.js:128:18)
   at async Object.uploadAllFileChanges (/workdir/node_modules/skuba/lib/api/github/push.js:48:20)
   at async withTimeout (/workdir/node_modules/skuba/lib/utils/wait.js:45:12)
   at async throwOnTimeout (/workdir/node_modules/skuba/lib/utils/wait.js:36:18)
   at async autofix (/workdir/node_modules/skuba/lib/cli/lint/autofix.js:106:17)
   at async externalLint (/workdir/node_modules/skuba/lib/cli/lint/external.js:105:3)
   at async lint (/workdir/node_modules/skuba/lib/cli/lint/index.js:37:3)
{
  request: {
    query: '\n' +
      '      mutation Mutation($input: CreateCommitOnBranchInput!) {\n' +
      '        createCommitOnBranch(input: $input) {\n' +
      '          commit {\n' +
      '            oid\n' +
      '          }\n' +
      '        }\n' +
      '      }\n' +
      '    ',
    variables: { input: [Object] },
    headers: {...}
  },
  headers: {...},
  response: { data: { createCommitOnBranch: null }, errors: [ [Object] ] },
  errors: [
    {
      type: 'NOT_FOUND',
      path: [Array],
      locations: [Array],
      message: 'Branch not found'
    }
  ],
  data: { createCommitOnBranch: null }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant