Draft: Resolve "GraphQL API: Add `associatedProjects` field to CiRunner"
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
References
Screenshots or screen recordings
Before | After |
---|---|
N/A. No such field. | New field CiRunner.associatedProjects available ![]() |
How to set up and validate locally
- Create a Project CI Runner and assign it to at least 2 projects. The first project will be its "owner project".
- Run below query with your CI Runner ID
- Confirm
ownerProject
field andassociatedProjects
includes the correct project, respectively.
{
runner(id: "gid://gitlab/Ci::Runner/105") { # Change the CI Runner ID!
ownerProject {
name
}
associatedProjects(first: 100) { # NEW!
nodes {
name
}
}
projects(first: 100) {
nodes {
name
}
}
}
}
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #378732
Edited by Chou Yu Ta