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

REST endpoint(s) for querying builds based on branches #1495

Closed
donny-dont opened this issue Feb 17, 2016 · 3 comments
Closed

REST endpoint(s) for querying builds based on branches #1495

donny-dont opened this issue Feb 17, 2016 · 3 comments
Milestone

Comments

@donny-dont
Copy link

It would be great if there was a way to query for builds based on a branch. In swagger this would look like

/repos/{owner}/{name}/{branch}/builds:
    get:
      parameters:
        - name: owner
          in: path
          type: string
          description: owner of the repository
        - name: name
          in: path
          type: string
          description: name of the repository
        - name: branch
          in: path
          type: string
          description: the branch of the buil
      tags:
        - Builds
      summary: Get recent builds
      description: Returns recent builds for the repository based on name.
      security:
        - accessToken: []
      responses:
        200:
          description: The recent builds on the branch.
          schema:
            type: array
            items:
              $ref: "#/definitions/Build"
        404:
          description: |
            Unable to find the Repository in the database

Additionally it may be useful to get a listing of all the branches that have been seen or maybe the latest build on a per branch basis. This would also potentially have the pagination ala #1494.

@tboerger
Copy link

Sounds fine

@bradrydzewski bradrydzewski added this to To Do in Version 1.0 Apr 2, 2018
@bradrydzewski bradrydzewski removed this from To Do in Version 1.0 Apr 2, 2018
@bradrydzewski bradrydzewski added this to the v1.x.x milestone Apr 19, 2019
@strk
Copy link

strk commented May 2, 2019

There was a previous proposal for a more general filter support here: https://github.com/drone/drone-ui/issues/63#issuecomment-488752422

What happened about that ?

@bradrydzewski bradrydzewski modified the milestones: v1.x.x, 1.5.0 Sep 17, 2019
bradrydzewski added a commit that referenced this issue Sep 19, 2019
@bradrydzewski
Copy link

added query parameters to the builds endpoint to list builds for a specific branch. This is available in master and will be included in the 1.5 release.

GET /api/repos/{namespace}/{name}/builds?branch={branch}

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

No branches or pull requests

4 participants