Updated codecov regex to support /token/TOKEN/ rather than /t:TOKEN/
This commit is contained in:
parent
1c98ba8c16
commit
2f5a53e1de
|
@ -1536,7 +1536,7 @@ cache(function(data, match, sendBadge, request) {
|
|||
}));
|
||||
|
||||
// Codecov integration.
|
||||
camp.route(/^\/codecov\/c\/(?:t:([A-Za-z1-9]+))?[+\/]?([^\/]+\/[^\/]+\/[^\/]+)(?:\/(.+))?\.(svg|png|gif|jpg|json)$/,
|
||||
camp.route(/^\/codecov\/c\/(?:token\/(\w+))?[+\/]?([^\/]+\/[^\/]+\/[^\/]+)(?:\/(.+))?\.(svg|png|gif|jpg|json)$/,
|
||||
cache(function(data, match, sendBadge, request) {
|
||||
var token = match[1];
|
||||
var userRepo = match[2]; // eg, `github/codecov/example-python`.
|
||||
|
|
2
try.html
2
try.html
|
@ -166,7 +166,7 @@ Pixel-perfect Retina-ready Fast Consistent Hackable
|
|||
</tr>
|
||||
<tr><th> Codecov private: </th>
|
||||
<td><img src='/codecov/c/github/codecov/example-python.svg' alt=''/></td>
|
||||
<td><code>https://img.shields.io/codecov/c/t:YOURTOKEN/github/codecov/example-python.svg</code></td>
|
||||
<td><code>https://img.shields.io/codecov/c/token/YOURTOKEN/github/codecov/example-python.svg</code></td>
|
||||
</tr>
|
||||
<tr><th> Coverity Scan: </th>
|
||||
<td><img src='/coverity/scan/3997.svg' alt=''/></td>
|
||||
|
|
Loading…
Reference in New Issue
Block a user