|
712 | 712 |
|
713 | 713 | (cl-defmethod forge--submit-create-discussion ((_ forge-github-repository) repo) |
714 | 714 | (pcase-let ((`(,title . ,body) (forge--post-buffer-text))) |
715 | | - (ghub--graphql |
| 715 | + (forge--graphql |
716 | 716 | '(mutation (createDiscussion |
717 | 717 | [(input $input CreateDiscussionInput!)] |
718 | 718 | clientMutationId)) |
|
864 | 864 | state) |
865 | 865 | (with-slots (their-id) topic |
866 | 866 | (cond ((eq state 'open) |
867 | | - (ghub--graphql |
| 867 | + (forge--graphql |
868 | 868 | '(mutation (reopenDiscussion |
869 | 869 | [(input $input ReopenDiscussionInput!)] |
870 | 870 | clientMutationId)) |
871 | 871 | `((input (discussionId . ,their-id))) |
872 | 872 | :callback (forge--set-field-callback topic t))) |
873 | | - ((ghub--graphql |
| 873 | + ((forge--graphql |
874 | 874 | '(mutation (closeDiscussion |
875 | 875 | [(input $input CloseDiscussionInput!)] |
876 | 876 | clientMutationId)) |
|
905 | 905 | ((_repo forge-github-repository) |
906 | 906 | (topic forge-discussion) |
907 | 907 | category) |
908 | | - (ghub--graphql |
| 908 | + (forge--graphql |
909 | 909 | '(mutation (updateDiscussion |
910 | 910 | [(input $input UpdateDiscussionInput!)] |
911 | 911 | clientMutationId)) |
|
926 | 926 | (let* ((old (oref topic answer)) |
927 | 927 | (old (and old (forge--their-id old))) |
928 | 928 | (new (and answer (oref answer their-id)))) |
929 | | - (ghub--graphql |
| 929 | + (forge--graphql |
930 | 930 | `(mutation |
931 | 931 | ,@(and old '((unmarkDiscussionCommentAsAnswer |
932 | 932 | [(input $old UnmarkDiscussionCommentAsAnswerInput!)] |
|
965 | 965 | (add (cl-set-difference new old :test #'equal)) |
966 | 966 | (del (cl-set-difference old new :test #'equal))) |
967 | 967 | (when (or add del) |
968 | | - (ghub--graphql |
| 968 | + (forge--graphql |
969 | 969 | `(mutation |
970 | 970 | ,@(and add '((addLabelsToLabelable |
971 | 971 | [(input $add AddLabelsToLabelableInput!)] |
|
991 | 991 | (add (cl-set-difference new old :test #'equal)) |
992 | 992 | (del (cl-set-difference old new :test #'equal))) |
993 | 993 | (when (or add del) |
994 | | - (ghub--graphql |
| 994 | + (forge--graphql |
995 | 995 | `(mutation |
996 | 996 | ,@(and add '((addAssigneesToAssignable |
997 | 997 | [(input $add AddAssigneesToAssignableInput!)] |
|
1014 | 1014 | (oref repo id) |
1015 | 1015 | (vconcat (seq-remove (##string-match "/" %) reviewers)))) |
1016 | 1016 | (teams nil)) ;TODO Investigate #742, track id, then use it here. |
1017 | | - (ghub--graphql |
| 1017 | + (forge--graphql |
1018 | 1018 | `(mutation (requestReviews |
1019 | 1019 | [(input $input RequestReviewsInput!)] |
1020 | 1020 | clientMutationId)) |
|
0 commit comments