xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.42k stars 960 forks source link

Add expires_at field when creating project deploy keys #2054

Closed heidiberry closed 2 weeks ago

heidiberry commented 2 weeks ago

Fixes https://github.com/xanzy/go-gitlab/issues/2020

The code in this area was a bit confusing. There are two similar endpoints:

The code linked to the documentation for the first one and was named like it was the first one, but it was actually the second one.

I've updated the documentation link, but adding support for the first one will be difficult in future given it's name is already taken.