MCPcopy Create free account
hub / github.com/cli/cli / mockPullRequestUpdateLabels

Function mockPullRequestUpdateLabels

pkg/cmd/pr/edit/edit_test.go:1915–1928  ·  view source on GitHub ↗
(reg *httpmock.Registry)

Source from the content-addressed store, hash-verified

1913}
1914
1915func mockPullRequestUpdateLabels(reg *httpmock.Registry) {
1916 reg.Register(
1917 httpmock.GraphQL(`mutation LabelAdd\b`),
1918 httpmock.GraphQLMutation(`
1919 { "data": { "addLabelsToLabelable": { "__typename": "" } } }`,
1920 func(inputs map[string]any) {}),
1921 )
1922 reg.Register(
1923 httpmock.GraphQL(`mutation LabelRemove\b`),
1924 httpmock.GraphQLMutation(`
1925 { "data": { "removeLabelsFromLabelable": { "__typename": "" } } }`,
1926 func(inputs map[string]any) {}),
1927 )
1928}
1929
1930func mockProjectV2ItemUpdate(reg *httpmock.Registry) {
1931 reg.Register(

Callers 1

Test_editRunFunction · 0.85

Calls 3

GraphQLFunction · 0.92
GraphQLMutationFunction · 0.92
RegisterMethod · 0.45

Tested by

no test coverage detected