Skip to content

Instantly share code, notes, and snippets.

@stevepeak
Last active August 29, 2015 14:25
Show Gist options
  • Save stevepeak/2cb46a4ea2b1553177ce to your computer and use it in GitHub Desktop.
Save stevepeak/2cb46a4ea2b1553177ce to your computer and use it in GitHub Desktop.
quick notes on editing features with access_tokens

Overview

The user argument is required. It should the the Github username of the user whom will post the features for private repos. That user (if it's a bot) must grant Codecov private repo access to properly post status and comments.

Comment

curl -X POST https://codecov.io/gh/:owner/:repo/features/comment?access_token=:uuid-token \
     -d 'header=on&graph=off&diff=on&suggestions=on&user=:github-username'

Github Status

curl -X POST https://codecov.io/gh/:owner/:repo/features/status?access_token=:uuid-token \
     -d 'project=:float&commit=:float&patch=:float&user=:github-username'

A successful call is a 301 Redirect. This endpoint is used by out front-end and is a work around to quickly adjust features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment