CLA Assistant stuck on PR

If your PR is unable to transition from the pending state, try these.

X seems not to be a GitHub user

The user.email belonging to the author is checked against the list of GitHub accounts that signed the CLA. The GitHub account used to submit the pull request is not important.

To fix this, you can amend the previous commit: git commit --amend --author="Author Name <author@cockroachlabs.com>"

Or, if multiple commits need to be updated, interactive rebase: git rebase -i (last good change)

Read more here:

https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages

Waiting for status to be reported

If a PR fails a status check with licence/cla — Waiting for status to be reported, try these steps:

  1. Push a no-op amend commit to the PR branch

  2. Log into cla.crdb.dev and click Recheck PRs (under ...).

  3. If you've already signed the CLA and have write access to the cockroach repository, add the following function to your ~/.bashrc or ~/.zshrc file:

    function cla() { curl -H "Authorization: token $YOUR_GITHUB_TOKEN" \ -d '{"state": "success", "context":"license/cla", "description": "curl"}' \ https://api.github.com/repos/cockroachdb/cockroach/statuses/$1 }

    and then run:

    •  cla $COMMIT_SHA

    • note: you can create a github token here. Under "Select scopes", make sure it has repo:status scope!

If you prefer the gh CLI instead of curl you can use the following cla implementation:

function cla () { gh api --method POST \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ -f state='success' -f description='CLA status forced by CLI' \ -f context='license/cla' /repos/cockroachdb/cockroach/statuses/$1 }




Older instructions (courtesy of Tamir in #7553):

then scroll down a bit...

Copyright (C) Cockroach Labs.
Attention: This documentation is provided on an "as is" basis, without warranties or conditions of any kind, either express or implied, including, without limitation, any warranties or conditions of title, non-infringement, merchantability, or fitness for a particular purpose.