Skip to content

getLastRunTime() needs pagination - not working for projects with lots of pipelines #12

Description

@MaxWinterstein

As getLastRunTime() only fetches the default number of pipelines, which is 20 as of today, it thinks it never ran.

As we use a monorepo for all CI stuff getting more than 20 pipelines between the daily run of this fantastic tool, we sometimes get duplicated issues.

Adding ListOptions does at least an enhancement to 100 pipelines, but maybe a configurable parameter, and pagination would be an awesome benefit at this.

		ListOptions: gitlab.ListOptions{
			PerPage: 100,
			Page:    1,
		},

Pagination example: https://github.com/xanzy/go-gitlab/blob/master/examples/pagination.go

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions