Skip to content

Refactor PipelinerService to work with pull requests #15

@Jakub-Vacek

Description

@Jakub-Vacek

Refactor and rename method getPipelines in class PipelinerService to return array of Result objects containing attributes:

  • type: Enum - type of data in data attribute, it can have values pipeline or pullRequest
  • data: PipelineResult or PullRequestResult - PullRequestResult object contains:
    • id: Int
    • name: String - name of pull request
    • url: String - web url to pull request
    • state: Enum - state of pull request inProgress or merged or closed
    • age: String - age of pull request formated using DateService and createdAt attribute
    • duration: String - duration of pull request formated using DateService and lastActivityAt attribute
    • repositoryName: String - name of pull request repository

Depends on #12, #13 and #14

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions