Infer badge URL from GitHub user + repo name

Kirill Müller's Avatar

Kirill Müller

13 Aug, 2014 09:48 PM

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

  1. Support Staff 1 Posted by Feodor Fitsner on 13 Aug, 2014 10:27 PM

    Feodor Fitsner's Avatar

    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.

  2. Support Staff 2 Posted by Feodor Fitsner on 04 Sep, 2014 04:09 AM

    Feodor Fitsner's Avatar

    Here we go! New route has been added and must be in the form:

    https://ci.appveyor.com/api/projects/status/{github|bitbucket}/{repository}
    

    For example: https://ci.appveyor.com/api/projects/status/github/AppVeyor/simple-web

    The note: This route works for public repositories only, of course!

    Optional parameters:

    • branch={name} - the name of branch to display status for
    • retina=true - status image scaled for retina display
    • svg=true - status image in SVG format (yes, we've just added it)

    Example: https://ci.appveyor.com/api/projects/status/github/AppVeyor/simple-...

  3. 3 Posted by Kirill Müller on 22 Sep, 2014 05:37 PM

    Kirill Müller's Avatar

    Thanks! Perhaps you want to show this alternative URL for GitHub/BitBucket repositories in Settings/Badges.

  4. 4 Posted by Matthew Taylor on 27 Feb, 2015 05:22 PM

    Matthew Taylor's Avatar
  5. Support Staff 5 Posted by Feodor Fitsner on 27 Feb, 2015 05:26 PM

    Feodor Fitsner's Avatar

    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. 6 Posted by Matthew Taylor on 27 Feb, 2015 05:47 PM

    Matthew Taylor's Avatar

    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

  7. Support Staff 7 Posted by Feodor Fitsner on 27 Feb, 2015 06:05 PM

    Feodor Fitsner's Avatar

    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. 8 Posted by Matthew Taylor on 27 Feb, 2015 06:31 PM

    Matthew Taylor's Avatar

    Thanks for your help!

    ---------
    Matt Taylor
    OS Community Flag-Bearer
    Numenta

  9. 9 Posted by Simon Byrne on 12 Jan, 2017 05:27 PM

    Simon Byrne's Avatar

    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. 10 Posted by Ilya Finkelshte... on 12 Jan, 2017 05:57 PM

    Ilya Finkelshteyn's Avatar

    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. 11 Posted by Matthew Taylor on 12 Jan, 2017 06:09 PM

    Matthew Taylor's Avatar

    ---------
    Matt Taylor
    OS Community Flag-Bearer
    Numenta

  12. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:14 AM.

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