Infer badge URL from GitHub user + repo name
Hi Feodor
Is it possible to infer the URL for the build status badge for GitHub projects from the user and repo names? Would you consider providing an alternate URL path for such projects (or at lest the badges), like https://ci.appveyor.com/api/projects/status/github/krlmlr/r-appveyor instead of https://ci.appveyor.com/api/projects/status/xtc629xek00o5rui ? Thanks!
Cheers
Kirill
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 13 Aug, 2014 10:27 PM
That makes sense, thanks for the suggestion! We'll add an additional route to the existing one that will be available for public repos only.
Support Staff 2 Posted by Feodor Fitsner on 04 Sep, 2014 04:09 AM
Here we go! New route has been added and must be in the form:
For example: https://ci.appveyor.com/api/projects/status/github/AppVeyor/simple-web
Optional parameters:
branch={name}
- the name of branch to display status forretina=true
- status image scaled for retina displaysvg=true
- status image in SVG format (yes, we've just added it)Example: https://ci.appveyor.com/api/projects/status/github/AppVeyor/simple-...
3 Posted by Kirill Müller on 22 Sep, 2014 05:37 PM
Thanks! Perhaps you want to show this alternative URL for GitHub/BitBucket repositories in Settings/Badges.
4 Posted by Matthew Taylor on 27 Feb, 2015 05:22 PM
This is just what I needed. But why does https://ci.appveyor.com/api/projects/status/github/numenta/nupic.core?svg=true&branch=master show as failed, but https://ci.appveyor.com/api/projects/status/q9bc043vrhgd88sw?svg=true shows the last build as passing?
Support Staff 5 Posted by Feodor Fitsner on 27 Feb, 2015 05:26 PM
Because there are three projects in AppVeyor database with
numenta/nupic.core
GitHub repository name - all under different accounts. There should be only one to make this URL work.6 Posted by Matthew Taylor on 27 Feb, 2015 05:47 PM
So how do I get rid of those other projects? They were previous attempts
from our open source community at Windows builds. The "numenta-ci" account
is our primary now. Do I need to contact them directly?
---------
Matt Taylor
OS Community Flag-Bearer
Numenta
Support Staff 7 Posted by Feodor Fitsner on 27 Feb, 2015 06:05 PM
Yes, you can contact them and kindly ask to remove those projects from their accounts.
Currently, there are three public projects targeting
numenta/nupic.core
repo:https://ci.appveyor.com/project/david-ragazzi/nupic-core-ahybq
https://ci.appveyor.com/project/rhyolight/nupic-core
https://ci.appveyor.com/project/numenta-ci/nupic-core
8 Posted by Matthew Taylor on 27 Feb, 2015 06:31 PM
Thanks for your help!
---------
Matt Taylor
OS Community Flag-Bearer
Numenta
9 Posted by Simon Byrne on 12 Jan, 2017 05:27 PM
To follow up on this: is it possible to get a link to the default build page by the following manner? e.g. something like https://ci.appveyor.com/project/github/ORG/REPO
10 Posted by Ilya Finkelshte... on 12 Jan, 2017 05:57 PM
Hi Simon,
Do you mean default AppVeyor page and not badge? If yes, we do not provide this URL route, because we don't know what to do when more than one AppVeyor project uses single repository. This is very common.
--ilya.
11 Posted by Matthew Taylor on 12 Jan, 2017 06:09 PM
---------
Matt Taylor
OS Community Flag-Bearer
Numenta
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:14 AM.