xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.39k stars 947 forks source link

add WebURL field to LastPipeline #1955

Closed nareshanamana closed 3 months ago

nareshanamana commented 3 months ago

https://docs.gitlab.com/ee/api/pipeline_schedules.html#get-a-single-pipeline-schedule

GET /projects/:id/pipeline_schedules/:pipeline_schedule_id response structure from GitLab 16.7:

{
  "id": "",
  "description": "",
  "ref": "",
  "cron": "",
  "cron_timezone": "",
  "next_run_at": "",
  "active": "",
  "created_at": "",
  "updated_at": "",
  "owner": {
    "id": "",
    "username": "",
    "name": "",
    "state": "",
    "locked": "",
    "avatar_url": "",
    "web_url": ""
  },
  "last_pipeline": {
    "id": "",
    "iid": "",
    "project_id": "",
    "sha": "",
    "ref": "",
    "status": "",
    "source": "",
    "created_at": "",
    "updated_at": "",
    "web_url": ""
  },
  "variables": []
}
nareshanamana commented 3 months ago

Thanks! I was hesitant to add the remaining ones for that reason. Ideally GitLab would document everything. 🥴