jdalrymple / gitbeaker

🦊🧪 A comprehensive and typed Gitlab SDK for Node.js, Browsers, Deno and CLI
Other
1.57k stars 299 forks source link

implement inboundAddGroupOrProjectCIJobTokenScope #3614

Closed stephen-dahl closed 1 month ago

stephen-dahl commented 4 months ago

Description

Gitlab recently added a new api inboundAddGroupOrProjectCIJobTokenScope

mutation inboundAddGroupOrProjectCIJobTokenScope($projectPath: ID!, $targetPath: ID!) {
  ciJobTokenScopeAddGroupOrProject(
    input: {projectPath: $projectPath, targetPath: $targetPath}
  ) {
    errors
    __typename
  }
}

Proposal

implement this api. i believe it will eventually replace gl.JobTokenScopes.addToInboundAllowList but I may be wronge.

Checklist

profblackjack commented 3 months ago

Since the above addition is the graphql api, these appear to be the REST api equivalent endpoints: https://docs.gitlab.com/ee/api/project_job_token_scopes.html

It looks like gitbeaker already has the "project" versions of the endpoints, but not the more recently introduced "groups" endpoints

jdalrymple commented 1 month ago

:rocket: Issue was released in 41.0.0 :rocket: