...
Push a no-op amend commit to the PR branch
Log into cla.crdb.dev and click
Recheck PRs
(under...
).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:Code Block 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:
Code Block |
---|
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):
...