Provide a way to supply additional GraphQL fields
This was spun off from https://gitlab.com/gitlab-org/gitlab-triage/-/merge_requests/203#note_560240276
It would be nice to have a way to ask additional fields from GraphQL query, potentially via additional_graphql_fields
:
resource_rules:
merge_requests:
rules:
- name: Test GraphQL Only Rule
api: graphql
additional_graphql_fields: "diffHeadSha autoMergeEnabled diffStatsSummary { additions }"
conditions:
date:
attribute: merged_at
condition: newer_than
interval_type: months
interval: 1
author_member:
source: group
condition: member_of
source_id: 9970
labels:
- "label name"
actions:
comment: |
GraphQL Triage Test
Edited by Lin Jen-Shin