Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add URL endpoint for branch that redirects to latest build on that branch #1996

Closed
rkh opened this issue Feb 25, 2014 · 22 comments
Closed

Add URL endpoint for branch that redirects to latest build on that branch #1996

rkh opened this issue Feb 25, 2014 · 22 comments

Comments

@rkh
Copy link
Contributor

rkh commented Feb 25, 2014

So users can link to a branch from status images.

@roidrage
Copy link
Contributor

I've added an endpoint /:owner/:repo/builds/latest/:branch in my local project.
It redirects to the latest build on :branch.

Would that work?

@rkh
Copy link
Contributor Author

rkh commented Jun 18, 2014

Yes, that should work.

@segiddins
Copy link

Would it redirect to the latest build or the latest finished build?

@roidrage
Copy link
Contributor

Currently, to the latest finished build.

@segiddins
Copy link

Awesome

@sarahhodne
Copy link
Contributor

@roidrage Do you still have the code for this?

@cvrebert
Copy link

cvrebert commented Mar 4, 2015

👍

@lukmdo
Copy link

lukmdo commented May 27, 2015

+1 that would be neat to have

@rkh
Copy link
Contributor Author

rkh commented May 27, 2015

/v3/repo/{repository.id}/branch/{branch.name} should give you what you want. This currently only works with repository.id, but we should be rolling out a repository.slug based version the next days.

Note that this is part of our unreleased v3 API and JSON payload and URIs might change.

@rkh rkh closed this as completed May 27, 2015
@shivamdixit
Copy link

@rkh Is there any way through which I can access the current build status of a branch? Redirecting to latest build might land us to a PR build, whose status is not necessary the status of the repo. For ex: Even if the latest PR build failed, still the travis badge displays "Build passing" because of last merge build passed.
I just want behavior similar to that of travis badge. Any help?
cc @roidrage

@kenorb
Copy link

kenorb commented Oct 5, 2015

@rkh Any progress on that? The mentioned API URL only returns JSON format, what about the landing page as requested in the title? So the branch images can point to the right URLs?

oliverpool added a commit to patacrep/patacrep that referenced this issue Nov 3, 2015
Travis doesn't support specific branch link (travis-ci/travis-ci#1996)
@FezVrasta
Copy link

Still no way to have /:owner/:repo/builds/latest/:branch?

@kenorb
Copy link

kenorb commented Jan 15, 2017

Related: #5024

@jgebal
Copy link

jgebal commented Feb 27, 2017

I'm also interested in having that feature

@gorn
Copy link

gorn commented Mar 30, 2017

I apologize if I do not understand something, but why this issue is closed, when the bug is not fixed. Or is it "WONTFIX" status?

@mbdevpl
Copy link

mbdevpl commented May 30, 2017

Possibly related to #1363 which is a request to have a build history in the API, or #2454, or #4689 - requests for page history for a single branch. Such "branch history" page could be an end-point alternative to "latest build on a branch" page.

The last update #1363, from 2014, says:

no one else showed interest, it is implemented in the CLI, closing for now

In #2454, last update is from 2015:

Closing this as it has become stale.
Although, you might like what is in the works ..... more info soon :)

I'd be interested in having that feature - could be very useful for build status tables where not only images show build status of each branch, but also links lead to most recent build page (or history of builds for that branch).

I'm also puzzled if this is wonfix or not...

EDIT: corrections

@jgebal
Copy link

jgebal commented May 30, 2017

+1

1 similar comment
@gorn
Copy link

gorn commented Jun 2, 2017

+1

@joker234
Copy link

Would love to have that too.

@rgerkin
Copy link

rgerkin commented Oct 31, 2017

This exists in readthedocs, requires.io, coveralls.io, etc. It should exist in Travis.

chrisma added a commit to hpi-swt2/sport-portal that referenced this issue Nov 7, 2017
@Quuxplusone
Copy link

Yes, please.

@Krinkle
Copy link

Krinkle commented Jul 31, 2020

Vote for the feature at https://travis-ci.community/t/landing-page-for-specific-branch/6710. (Thanks @DracoBlue via #5024).

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

No branches or pull requests