Add branchRules to project in graphql endpoint
This change introduces branchRules which currently points to project#protected_branches. Currently we only expose id, name, created_at, updated_at. Changelog: added
显示
- app/graphql/resolvers/projects/branch_rules_resolver.rb 15 个添加, 0 个删除app/graphql/resolvers/projects/branch_rules_resolver.rb
- app/graphql/types/project_type.rb 6 个添加, 0 个删除app/graphql/types/project_type.rb
- app/graphql/types/projects/branch_rule_type.rb 27 个添加, 0 个删除app/graphql/types/projects/branch_rule_type.rb
- app/policies/protected_branch_policy.rb 1 个添加, 0 个删除app/policies/protected_branch_policy.rb
- doc/api/graphql/reference/index.md 36 个添加, 0 个删除doc/api/graphql/reference/index.md
- spec/graphql/types/branch_rule_type_spec.rb 27 个添加, 0 个删除spec/graphql/types/branch_rule_type_spec.rb
- spec/graphql/types/project_type_spec.rb 65 个添加, 2 个删除spec/graphql/types/project_type_spec.rb
- spec/policies/protected_branch_policy_spec.rb 38 个添加, 6 个删除spec/policies/protected_branch_policy_spec.rb
- spec/requests/api/graphql/project/branch_rules_spec.rb 122 个添加, 0 个删除spec/requests/api/graphql/project/branch_rules_spec.rb
- spec/support/matchers/graphql_matchers.rb 58 个添加, 0 个删除spec/support/matchers/graphql_matchers.rb
加载中
想要评论请 注册 或 登录