tag:help.appveyor.com,2012-11-13:/discussions/problems/116-badge-tracks-whatever-that-last-branch-builtAppVeyor: Discussion 2018-08-25T01:45:36Ztag:help.appveyor.com,2012-11-13:Comment/317919862014-02-25T04:06:19Z2014-02-25T04:06:22ZBadge tracks whatever that last branch built<div><p>This is an issue if I update that gh-pages branch that is not
build-able, it puts an erroneous failed badge on my github
page.</p></div>Jay Tuleytag:help.appveyor.com,2012-11-13:Comment/317919862014-02-25T04:18:52Z2014-02-25T04:18:52ZBadge tracks whatever that last branch built<div><p>Hi Jay,</p>
<p>You can use [skip ci] when committing changes to that branch
(<a href=
"http://www.appveyor.com/docs2/how-to/skip-build">http://www.appveyor.com/docs2/how-to/skip-build</a>).</p>
<p>Also, I think we should ignore "gh-pages" branch by default and
also add branches filter to project settings.</p>
<p>Thanks for the catch! I'm going to add working item.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317919862014-02-25T04:26:14Z2014-02-25T04:26:14ZBadge tracks whatever that last branch built<div><p>Wait, another idea. What if AppVeyor should display badge for
<code>master</code> (default branch) only?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317919862014-02-25T14:58:32Z2014-02-25T14:58:33ZBadge tracks whatever that last branch built<div><p>Travis-ci actually makes a different badge url for each
branch.</p></div>Jay Tuleytag:help.appveyor.com,2012-11-13:Comment/317919862014-02-25T15:06:01Z2014-02-25T15:06:01ZBadge tracks whatever that last branch built<div><p>Oh I do also think you should exclude gh-pages or just have a
mechansim to exclude or explicitly specify branches. I don't want
to do ci skip everytime on gh-pages.</p></div>jaytag:help.appveyor.com,2012-11-13:Comment/317919862014-02-25T15:08:55Z2014-02-25T15:08:55ZBadge tracks whatever that last branch built<div><p>Sure, we'll fix that shortly.</p>
<p>Thanks!</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317919862014-02-26T05:27:14Z2014-02-26T05:27:14ZBadge tracks whatever that last branch built<div><p>Hi Jay,</p>
<p>AppVeyor update has been deployed with improved badges
logic.</p>
<p>To specify branch in badge URL append
<code>/branch/<branch-name></code> to the URL you see on
<strong>Badges</strong> tab of project settings, for example:</p>
<pre>
<code>https://ci-beta.appveyor.com/api/projects/status/5y6ic907jh8u27j5/branch/master</code>
</pre>
<p>If branch IS specified badge shows the status of latest build of
this branch; if branch IS NOT specified then badge shows the status
of the last build of any branch.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317919862014-02-26T05:32:53Z2014-02-26T05:32:53ZBadge tracks whatever that last branch built<div><p>Also, branches white-/blacklisting was added. You can specify
included/excluded branches on <strong>General</strong> tab of
project settings.</p>
<p>To specify the list of branches in
<code>appveyor.yml</code>:</p>
<pre>
<code>branches:
only:
- master
- production</code>
</pre>
<p>To specify the list of branches that must be ignored:</p>
<pre>
<code>branches:
except:
- /dev.*/
- playground</code>
</pre>
<p><code>gh-pages</code> branch is always excluded unless
explicitly added in "only" list.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317919862014-02-27T14:19:12Z2014-02-27T14:19:12ZBadge tracks whatever that last branch built<div><p>Cool, yay!</p></div>jaytag:help.appveyor.com,2012-11-13:Comment/317919862014-05-15T04:49:27Z2014-05-15T04:49:28ZBadge tracks whatever that last branch built<div><p>You should add a reference to this topic on the Badges page.
This is very useful.</p></div>Sebastientag:help.appveyor.com,2012-11-13:Comment/317919862014-06-17T16:22:14Z2014-06-17T16:22:15ZBadge tracks whatever that last branch built<div><p>Being able to specify a branch name for a status badge is great.
However, I'm having some trouble with branches with a
<code>/</code> in the name. for example
<code>feature/my-feature</code></p>
<p>Also, if I specify a branch that doesn't exist, instead of
getting a 404 {<a href=""Branch">message</a> doesn't exist"} I
get the status badge for the latest build.</p>
<p>Thanks</p></div>James Fostertag:help.appveyor.com,2012-11-13:Comment/317919862014-06-17T16:34:44Z2014-06-17T16:34:44ZBadge tracks whatever that last branch built<div><p>Have you tried encoding slash with <code>%2F</code>?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317919862014-06-17T19:14:06Z2014-06-17T19:14:06ZBadge tracks whatever that last branch built<div><p>Yes</p>
<p>Sent from my iPhone</p></div>James Fostertag:help.appveyor.com,2012-11-13:Comment/317919862014-06-17T19:15:18Z2014-06-17T19:15:18ZBadge tracks whatever that last branch built<div><p>OK, will take a look what's wrong.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317919862014-06-17T19:26:05Z2014-06-17T19:26:05ZBadge tracks whatever that last branch built<div><p>It's been fixed and will be go with the next update.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317919862014-06-18T00:57:29Z2014-06-18T00:57:29ZBadge tracks whatever that last branch built<div><p>That's great. Thanks</p></div>James Fostertag:help.appveyor.com,2012-11-13:Comment/317919862014-06-18T04:01:08Z2014-06-18T04:01:08ZBadge tracks whatever that last branch built<div><p>Update has been deployed. Should be OK now.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/317919862014-06-19T10:44:12Z2014-06-19T10:44:13ZBadge tracks whatever that last branch built<div><p>Thanks Feodor</p>
<p>It's now picking up our feature branches correctly. However, if
the branch name doesn't exist or isn't found it's still returning
the default badge.</p>
<p>This really should return a 404 with some error status because
going to <code>feature/i-think-it-exists</code> and seeing a shiny
green success icon could be very confusing.</p>
<p>Thanks</p>
<p>James</p></div>James Fostertag:help.appveyor.com,2012-11-13:Comment/317919862014-06-19T14:27:58Z2014-06-19T14:27:58ZBadge tracks whatever that last branch built<div><p>Will take a look.</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsner