gitbeaker icon indicating copy to clipboard operation
gitbeaker copied to clipboard

implement inboundAddGroupOrProjectCIJobTokenScope

Open stephen-dahl opened this issue 1 year ago • 1 comments

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

  • [ x] I have checked that this is not a duplicate issue.
  • [ x] I have read the documentation.

stephen-dahl avatar Jul 23 '24 18:07 stephen-dahl

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

profblackjack avatar Aug 28 '24 15:08 profblackjack

:rocket: Issue was released in 41.0.0 :rocket:

jdalrymple avatar Oct 19 '24 23:10 jdalrymple