From 3f607e41d9c4d8fe5329a9ab6841cada7742825e Mon Sep 17 00:00:00 2001 From: pr0grammm <30474195+pr0grammm@users.noreply.github.com> Date: Mon, 18 Oct 2021 17:08:38 +0530 Subject: [PATCH] feat: display author of changes in workflow tab (#5780) --- ...hQL API__can publish entry with image.json | 24 ++++----- ...raphQL API__can save entry with image.json | 16 +++--- ...t entry image in global media library.json | 16 +++--- ...d entry image in global media library.json | 22 ++++---- ...ow published entry image in grid view.json | 22 ++++---- ...ng__can change entry status from fork.json | 16 +++--- ...uthoring__can create an entry on fork.json | 8 +-- ...- Open Authoring__can create an entry.json | 16 +++--- ...ng__can delete review entry from fork.json | 20 +++---- ...n publish an editorial workflow entry.json | 22 ++++---- ...n return entry to draft and delete it.json | 22 ++++---- ...ing__can update a draft entry on fork.json | 26 ++++----- ...- Open Authoring__can update an entry.json | 36 ++++++------- ...tatus on and publish multiple entries.json | 54 +++++++++---------- ...aphQL API__can change workflow status.json | 28 +++++----- ...ow - GraphQL API__can create an entry.json | 16 +++--- ...ow - GraphQL API__can delete an entry.json | 22 ++++---- ...n publish an editorial workflow entry.json | 22 ++++---- ...ow - GraphQL API__can update an entry.json | 34 ++++++------ ...orkflow status from within the editor.json | 22 ++++---- packages/netlify-cms-backend-azure/src/API.ts | 7 +++ .../netlify-cms-backend-bitbucket/src/API.ts | 3 ++ .../netlify-cms-backend-github/src/API.ts | 19 ++++++- .../src/GraphQLAPI.ts | 13 +++++ .../src/fragments.ts | 6 +++ .../netlify-cms-backend-gitlab/src/API.ts | 2 + packages/netlify-cms-core/src/backend.ts | 1 + .../src/components/Workflow/WorkflowCard.js | 3 ++ .../src/components/Workflow/WorkflowList.js | 2 + .../src/implementation.ts | 1 + 30 files changed, 288 insertions(+), 233 deletions(-) diff --git a/cypress/fixtures/GitHub Backend Media Library - GraphQL API__can publish entry with image.json b/cypress/fixtures/GitHub Backend Media Library - GraphQL API__can publish entry with image.json index cbf413bb..d8efa317 100644 --- a/cypress/fixtures/GitHub Backend Media Library - GraphQL API__can publish entry with image.json +++ b/cypress/fixtures/GitHub Backend Media Library - GraphQL API__can publish entry with image.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -454,7 +454,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -620,7 +620,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"f9f758a7b64c071ec190ed11880b910908f4de15\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNjMzMzg5NTM=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNjMzMzg5NTM=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"f9f758a7b64c071ec190ed11880b910908f4de15\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNjMzMzg5NTM=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNjMzMzg5NTM=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -674,7 +674,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -806,7 +806,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -860,7 +860,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -914,7 +914,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -968,7 +968,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1049,7 +1049,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1130,7 +1130,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1183,4 +1183,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNjMzMzg5NTM=\",\"isFork\":false,\"__typename\":\"Repository\",\"file\":{\"id\":\"MDQ6QmxvYjI2MzMzODk1Mzo1NzEyZjI0YTAyYjc1OGY4YjViNWNjMzRiNjc2Y2YwYjI1ZjUzYjg2\",\"sha\":\"5712f24a02b758f8b5b5cc34b676cf0b25f53b86\",\"__typename\":\"Blob\"}}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/GitHub Backend Media Library - GraphQL API__can save entry with image.json b/cypress/fixtures/GitHub Backend Media Library - GraphQL API__can save entry with image.json index 0a7da734..b9330698 100644 --- a/cypress/fixtures/GitHub Backend Media Library - GraphQL API__can save entry with image.json +++ b/cypress/fixtures/GitHub Backend Media Library - GraphQL API__can save entry with image.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -427,7 +427,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -620,7 +620,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"3ffa8ca326a9c28199d5bb703574ee508780b7a8\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDIwNDY=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDIwNDY=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"3ffa8ca326a9c28199d5bb703574ee508780b7a8\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDIwNDY=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDIwNDY=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -674,7 +674,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -861,7 +861,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -887,4 +887,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDIwNDY=\",\"pullRequests\":{\"nodes\":[],\"__typename\":\"PullRequestConnection\"},\"__typename\":\"Repository\"}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should not show draft entry image in global media library.json b/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should not show draft entry image in global media library.json index bdb93bdb..49d289e8 100644 --- a/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should not show draft entry image in global media library.json +++ b/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should not show draft entry image in global media library.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -427,7 +427,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -620,7 +620,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"88e3d3e82e0c7fe562d9d908c80aafc29236ef28\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDIwNDY=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDIwNDY=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"88e3d3e82e0c7fe562d9d908c80aafc29236ef28\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDIwNDY=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDIwNDY=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -674,7 +674,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -861,7 +861,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -887,4 +887,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDIwNDY=\",\"pullRequests\":{\"nodes\":[],\"__typename\":\"PullRequestConnection\"},\"__typename\":\"Repository\"}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should show published entry image in global media library.json b/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should show published entry image in global media library.json index bbf46504..d5a63cb8 100644 --- a/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should show published entry image in global media library.json +++ b/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should show published entry image in global media library.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -454,7 +454,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -620,7 +620,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"c488dd042829c3c8b6fa352e687704a5b8d2bc72\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDkyOTM=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDkyOTM=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"c488dd042829c3c8b6fa352e687704a5b8d2bc72\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDkyOTM=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDkyOTM=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -674,7 +674,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -861,7 +861,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -915,7 +915,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -969,7 +969,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1077,7 +1077,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1130,4 +1130,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUxMDkyOTM=\",\"isFork\":false,\"__typename\":\"Repository\",\"file\":{\"id\":\"MDQ6QmxvYjI1NTEwOTI5Mzo1NzEyZjI0YTAyYjc1OGY4YjViNWNjMzRiNjc2Y2YwYjI1ZjUzYjg2\",\"sha\":\"5712f24a02b758f8b5b5cc34b676cf0b25f53b86\",\"__typename\":\"Blob\"}}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should show published entry image in grid view.json b/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should show published entry image in grid view.json index 5dee2a3e..9b770f64 100644 --- a/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should show published entry image in grid view.json +++ b/cypress/fixtures/GitHub Backend Media Library - GraphQL API__should show published entry image in grid view.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -454,7 +454,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -620,7 +620,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"4b1f6da44e03e1877dc21ab7f0661f1c4ca43b1b\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMTQyOTQ=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMTQyOTQ=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"4b1f6da44e03e1877dc21ab7f0661f1c4ca43b1b\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMTQyOTQ=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUxMTQyOTQ=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -674,7 +674,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -861,7 +861,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -915,7 +915,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -969,7 +969,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1077,7 +1077,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1130,4 +1130,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUxMTQyOTQ=\",\"isFork\":false,\"__typename\":\"Repository\",\"file\":{\"id\":\"MDQ6QmxvYjI1NTExNDI5NDo1NzEyZjI0YTAyYjc1OGY4YjViNWNjMzRiNjc2Y2YwYjI1ZjUzYjg2\",\"sha\":\"5712f24a02b758f8b5b5cc34b676cf0b25f53b86\",\"__typename\":\"Blob\"}}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can change entry status from fork.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can change entry status from fork.json index 1825802e..db6ae6f4 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can change entry status from fork.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can change entry status from fork.json @@ -501,7 +501,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -747,7 +747,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -879,7 +879,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -933,7 +933,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -986,7 +986,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"createPullRequest\",\"variables\":{\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"forkOwner:cms/forkOwner/repo/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createPullRequest($createPullRequestInput: CreatePullRequestInput!) {\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createPullRequest\",\"variables\":{\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"forkOwner:cms/forkOwner/repo/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createPullRequest($createPullRequestInput: CreatePullRequestInput!) {\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1013,7 +1013,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1067,7 +1067,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1120,4 +1120,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\",\"isFork\":false,\"__typename\":\"Repository\",\"object\":{\"id\":\"MDY6Q29tbWl0MjU1MDcwNTUwOmFiMmNmN2IyMzc0NDExMTdiMGNjYzk5NWVkZTg5MjBjZjM5NDk2N2E=\",\"sha\":\"ab2cf7b237441117b0ccc995ede8920cf394967a\",\"__typename\":\"Commit\",\"status\":null}}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can create an entry on fork.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can create an entry on fork.json index d5a8c522..3a54a788 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can create an entry on fork.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can create an entry on fork.json @@ -528,7 +528,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -747,7 +747,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -854,7 +854,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -907,4 +907,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\",\"isFork\":false,\"__typename\":\"Repository\",\"object\":{\"id\":\"MDY6Q29tbWl0MjU1MDcwNTUwOmNhMjM5ZThiNmZiNjQxN2ZmZGM0MmQ0YmFjYWJmOGRmMWQyMzFlMDk=\",\"sha\":\"ca239e8b6fb6417ffdc42d4bacabf8df1d231e09\",\"__typename\":\"Commit\",\"status\":null}}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can create an entry.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can create an entry.json index febf32a7..d08a36f6 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can create an entry.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can create an entry.json @@ -425,7 +425,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -452,7 +452,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -479,7 +479,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -644,7 +644,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"5242adbcd8a4a6ab8745d04f632ed8077f4900f7\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"5242adbcd8a4a6ab8745d04f632ed8077f4900f7\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -698,7 +698,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -805,7 +805,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -859,7 +859,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -885,4 +885,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\",\"pullRequests\":{\"nodes\":[],\"__typename\":\"PullRequestConnection\"},\"__typename\":\"Repository\"}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can delete review entry from fork.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can delete review entry from fork.json index a306c015..23da6ee2 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can delete review entry from fork.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can delete review entry from fork.json @@ -528,7 +528,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -747,7 +747,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -879,7 +879,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -933,7 +933,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -986,7 +986,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"createPullRequest\",\"variables\":{\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"forkOwner:cms/forkOwner/repo/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createPullRequest($createPullRequestInput: CreatePullRequestInput!) {\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createPullRequest\",\"variables\":{\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"forkOwner:cms/forkOwner/repo/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createPullRequest($createPullRequestInput: CreatePullRequestInput!) {\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1013,7 +1013,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1067,7 +1067,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1120,7 +1120,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"closePullRequestAndDeleteBranch\",\"variables\":{\"deleteRefInput\":{\"refId\":\"MDM6UmVmMjU1MDcxMDMyOmNtcy9lcmV6cm9rYWgtdGVzdC9nYXRzYnktbmV0bGlmeS1jbXMtYXdzLXRlc3QtMTU4NjY5MTkyNjc3Mi0yOGQ4YmhubjgzOC9wb3N0cy8xOTcwLTAxLTAxLWZpcnN0LXRpdGxl\"},\"closePullRequestInput\":{\"pullRequestId\":\"MDExOlB1bGxSZXF1ZXN0NDAyMzI3MzI5\"}},\"query\":\"mutation closePullRequestAndDeleteBranch($closePullRequestInput: ClosePullRequestInput!, $deleteRefInput: DeleteRefInput!) {\\n closePullRequest(input: $closePullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n deleteRef(input: $deleteRefInput) {\\n clientMutationId\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"closePullRequestAndDeleteBranch\",\"variables\":{\"deleteRefInput\":{\"refId\":\"MDM6UmVmMjU1MDcxMDMyOmNtcy9lcmV6cm9rYWgtdGVzdC9nYXRzYnktbmV0bGlmeS1jbXMtYXdzLXRlc3QtMTU4NjY5MTkyNjc3Mi0yOGQ4YmhubjgzOC9wb3N0cy8xOTcwLTAxLTAxLWZpcnN0LXRpdGxl\"},\"closePullRequestInput\":{\"pullRequestId\":\"MDExOlB1bGxSZXF1ZXN0NDAyMzI3MzI5\"}},\"query\":\"mutation closePullRequestAndDeleteBranch($closePullRequestInput: ClosePullRequestInput!, $deleteRefInput: DeleteRefInput!) {\\n closePullRequest(input: $closePullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n deleteRef(input: $deleteRefInput) {\\n clientMutationId\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1147,7 +1147,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1200,4 +1200,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzEwMzI=\",\"isFork\":true,\"__typename\":\"Repository\",\"branch\":null}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can publish an editorial workflow entry.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can publish an editorial workflow entry.json index 25f90cc4..b3d58364 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can publish an editorial workflow entry.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can publish an editorial workflow entry.json @@ -425,7 +425,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -452,7 +452,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -479,7 +479,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -644,7 +644,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"ac7b7233caece444d311e6c65a9fcd6612dcaee5\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"ac7b7233caece444d311e6c65a9fcd6612dcaee5\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -698,7 +698,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -805,7 +805,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -859,7 +859,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -913,7 +913,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -967,7 +967,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1075,7 +1075,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1128,4 +1128,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\",\"isFork\":false,\"__typename\":\"Repository\",\"file\":{\"id\":\"MDQ6QmxvYjI1NTA3MDU1MDpmYmU3ZDZmODQ5MWU5NWU0ZmYyNjA3YzMxYzIzYTgyMTA1MjU0M2Q2\",\"sha\":\"fbe7d6f8491e95e4ff2607c31c23a821052543d6\",\"__typename\":\"Blob\"}}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can return entry to draft and delete it.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can return entry to draft and delete it.json index 3479e880..ac0ff0f0 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can return entry to draft and delete it.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can return entry to draft and delete it.json @@ -528,7 +528,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -747,7 +747,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -854,7 +854,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -908,7 +908,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -961,7 +961,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"createPullRequest\",\"variables\":{\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"forkOwner:cms/forkOwner/repo/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createPullRequest($createPullRequestInput: CreatePullRequestInput!) {\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createPullRequest\",\"variables\":{\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"forkOwner:cms/forkOwner/repo/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createPullRequest($createPullRequestInput: CreatePullRequestInput!) {\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -988,7 +988,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1042,7 +1042,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1069,7 +1069,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1123,7 +1123,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1176,7 +1176,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"closePullRequestAndDeleteBranch\",\"variables\":{\"deleteRefInput\":{\"refId\":\"MDM6UmVmMjU1MDcxMDMyOmNtcy9lcmV6cm9rYWgtdGVzdC9nYXRzYnktbmV0bGlmeS1jbXMtYXdzLXRlc3QtMTU4NjY5MTkyNjc3Mi0yOGQ4YmhubjgzOC9wb3N0cy8xOTcwLTAxLTAxLWZpcnN0LXRpdGxl\"},\"closePullRequestInput\":{\"pullRequestId\":\"MDExOlB1bGxSZXF1ZXN0NDAyMzI3NDI1\"}},\"query\":\"mutation closePullRequestAndDeleteBranch($closePullRequestInput: ClosePullRequestInput!, $deleteRefInput: DeleteRefInput!) {\\n closePullRequest(input: $closePullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n deleteRef(input: $deleteRefInput) {\\n clientMutationId\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"closePullRequestAndDeleteBranch\",\"variables\":{\"deleteRefInput\":{\"refId\":\"MDM6UmVmMjU1MDcxMDMyOmNtcy9lcmV6cm9rYWgtdGVzdC9nYXRzYnktbmV0bGlmeS1jbXMtYXdzLXRlc3QtMTU4NjY5MTkyNjc3Mi0yOGQ4YmhubjgzOC9wb3N0cy8xOTcwLTAxLTAxLWZpcnN0LXRpdGxl\"},\"closePullRequestInput\":{\"pullRequestId\":\"MDExOlB1bGxSZXF1ZXN0NDAyMzI3NDI1\"}},\"query\":\"mutation closePullRequestAndDeleteBranch($closePullRequestInput: ClosePullRequestInput!, $deleteRefInput: DeleteRefInput!) {\\n closePullRequest(input: $closePullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n deleteRef(input: $deleteRefInput) {\\n clientMutationId\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1202,4 +1202,4 @@ "response": "{\"data\":{\"closePullRequest\":{\"clientMutationId\":null,\"pullRequest\":{\"id\":\"MDExOlB1bGxSZXF1ZXN0NDAyMzI3NDI1\",\"baseRefName\":\"master\",\"baseRefOid\":\"b33a2edece736f6f228c7ec28c385c57d5f890af\",\"body\":\"Automatically generated by Netlify CMS\",\"headRefName\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"headRefOid\":\"7759f4536c04abf8f5dd542e1f7917b0bbe36fd7\",\"number\":6,\"state\":\"CLOSED\",\"title\":\"Create Post “1970-01-01-first-title”\",\"merged_at\":null,\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\",\"isFork\":false,\"__typename\":\"Repository\"},\"labels\":{\"nodes\":[],\"__typename\":\"LabelConnection\"},\"__typename\":\"PullRequest\"},\"__typename\":\"ClosePullRequestPayload\"},\"deleteRef\":{\"clientMutationId\":null,\"__typename\":\"DeleteRefPayload\"}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can update a draft entry on fork.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can update a draft entry on fork.json index c8bf6326..dcf6ffa6 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can update a draft entry on fork.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can update a draft entry on fork.json @@ -501,7 +501,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -747,7 +747,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -854,7 +854,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -908,7 +908,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1015,7 +1015,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1069,7 +1069,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1123,7 +1123,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1257,7 +1257,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1394,7 +1394,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1448,7 +1448,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1502,7 +1502,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1556,7 +1556,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/forkOwner/repo/posts/1970-01-01-first-title\",\"states\":[\"OPEN\",\"CLOSED\",\"MERGED\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1609,4 +1609,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\",\"isFork\":false,\"__typename\":\"Repository\",\"object\":{\"id\":\"MDY6Q29tbWl0MjU1MDcwNTUwOmYxZjc5OWI5Yzc3YWVmZDU0MDliN2EwMmFjODRkZmU1MGQ1ZGIzYzM=\",\"sha\":\"f1f799b9c77aefd5409b7a02ac84dfe50d5db3c3\",\"__typename\":\"Commit\",\"status\":null}}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can update an entry.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can update an entry.json index 460941ea..14d32681 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can update an entry.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API - Open Authoring__can update an entry.json @@ -425,7 +425,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -452,7 +452,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -479,7 +479,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -644,7 +644,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"8ac793644b57607b35a15858b44ed7d90b794e73\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"8ac793644b57607b35a15858b44ed7d90b794e73\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -698,7 +698,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -805,7 +805,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -859,7 +859,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -966,7 +966,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1020,7 +1020,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1102,7 +1102,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1208,7 +1208,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1318,7 +1318,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1399,7 +1399,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1453,7 +1453,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1507,7 +1507,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1561,7 +1561,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1588,7 +1588,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1614,4 +1614,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzA1NTA=\",\"pullRequests\":{\"nodes\":[],\"__typename\":\"PullRequestConnection\"},\"__typename\":\"Repository\"}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can change status on and publish multiple entries.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can change status on and publish multiple entries.json index 0dfb0e6f..96f55758 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can change status on and publish multiple entries.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can change status on and publish multiple entries.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -427,7 +427,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -592,7 +592,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"571269df37e7bd0ef10aac9c761e90a69c17fd57\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"571269df37e7bd0ef10aac9c761e90a69c17fd57\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -646,7 +646,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -753,7 +753,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -834,7 +834,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1026,7 +1026,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-second-title\",\"oid\":\"aa6c40132d5f93181dcae30d8cf077aa24939bf3\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-second-title”\",\"headRefName\":\"cms/posts/1970-01-01-second-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-second-title\",\"oid\":\"aa6c40132d5f93181dcae30d8cf077aa24939bf3\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-second-title”\",\"headRefName\":\"cms/posts/1970-01-01-second-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1053,7 +1053,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1134,7 +1134,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1241,7 +1241,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1295,7 +1295,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1322,7 +1322,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1514,7 +1514,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-third-title\",\"oid\":\"1d7fdf834dec9af4a36f5bd3065a208841877dad\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-third-title”\",\"headRefName\":\"cms/posts/1970-01-01-third-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-third-title\",\"oid\":\"1d7fdf834dec9af4a36f5bd3065a208841877dad\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-third-title”\",\"headRefName\":\"cms/posts/1970-01-01-third-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1568,7 +1568,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1595,7 +1595,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1729,7 +1729,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1783,7 +1783,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1837,7 +1837,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1891,7 +1891,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1945,7 +1945,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1999,7 +1999,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -2053,7 +2053,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-third-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -2188,7 +2188,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-second-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -2323,7 +2323,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -2457,4 +2457,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\",\"isFork\":false,\"__typename\":\"Repository\",\"file\":{\"id\":\"MDQ6QmxvYjI1NTA3MTg4NzpmYmU3ZDZmODQ5MWU5NWU0ZmYyNjA3YzMxYzIzYTgyMTA1MjU0M2Q2\",\"sha\":\"fbe7d6f8491e95e4ff2607c31c23a821052543d6\",\"__typename\":\"Blob\"}}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can change workflow status.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can change workflow status.json index 9d271f9e..95936cf4 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can change workflow status.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can change workflow status.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -427,7 +427,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -592,7 +592,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"73880ce4abc0d7d45e5db855ca9bc31838b854ef\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"73880ce4abc0d7d45e5db855ca9bc31838b854ef\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -646,7 +646,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -753,7 +753,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -861,7 +861,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -915,7 +915,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -969,7 +969,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1023,7 +1023,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1077,7 +1077,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1131,7 +1131,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1184,4 +1184,4 @@ "response": "[\n {\n \"id\": 1980278805,\n \"node_id\": \"MDU6TGFiZWwxOTgwMjc4ODA1\",\n \"url\": \"https://api.github.com/repos/owner/repo/labels/netlify-cms/pending_publish\",\n \"name\": \"netlify-cms/pending_publish\",\n \"color\": \"ededed\",\n \"default\": false,\n \"description\": null\n }\n]\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can create an entry.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can create an entry.json index d621a0db..98f429f4 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can create an entry.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can create an entry.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -427,7 +427,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -592,7 +592,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"a89131a394e181f5d708de4939bfd4b43f99f885\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"a89131a394e181f5d708de4939bfd4b43f99f885\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -646,7 +646,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -753,7 +753,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -833,4 +833,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\",\"pullRequests\":{\"nodes\":[],\"__typename\":\"PullRequestConnection\"},\"__typename\":\"Repository\"}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can delete an entry.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can delete an entry.json index f34c6bf8..979f22a9 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can delete an entry.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can delete an entry.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -427,7 +427,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -592,7 +592,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"4e8d4d1eb33817b761f1ceacaeb3db2ab2ef5337\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"4e8d4d1eb33817b761f1ceacaeb3db2ab2ef5337\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -646,7 +646,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -753,7 +753,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -860,7 +860,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"closePullRequestAndDeleteBranch\",\"variables\":{\"deleteRefInput\":{\"refId\":\"MDM6UmVmMjU1MDcxODg3OmNtcy9wb3N0cy8xOTcwLTAxLTAxLWZpcnN0LXRpdGxl\"},\"closePullRequestInput\":{\"pullRequestId\":\"MDExOlB1bGxSZXF1ZXN0NDAyMzI4NDA0\"}},\"query\":\"mutation closePullRequestAndDeleteBranch($closePullRequestInput: ClosePullRequestInput!, $deleteRefInput: DeleteRefInput!) {\\n closePullRequest(input: $closePullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n deleteRef(input: $deleteRefInput) {\\n clientMutationId\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"closePullRequestAndDeleteBranch\",\"variables\":{\"deleteRefInput\":{\"refId\":\"MDM6UmVmMjU1MDcxODg3OmNtcy9wb3N0cy8xOTcwLTAxLTAxLWZpcnN0LXRpdGxl\"},\"closePullRequestInput\":{\"pullRequestId\":\"MDExOlB1bGxSZXF1ZXN0NDAyMzI4NDA0\"}},\"query\":\"mutation closePullRequestAndDeleteBranch($closePullRequestInput: ClosePullRequestInput!, $deleteRefInput: DeleteRefInput!) {\\n closePullRequest(input: $closePullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n deleteRef(input: $deleteRefInput) {\\n clientMutationId\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -887,7 +887,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -914,7 +914,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -940,4 +940,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\",\"pullRequests\":{\"nodes\":[],\"__typename\":\"PullRequestConnection\"},\"__typename\":\"Repository\"}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can publish an editorial workflow entry.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can publish an editorial workflow entry.json index cd355228..fb197659 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can publish an editorial workflow entry.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can publish an editorial workflow entry.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -427,7 +427,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -592,7 +592,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"f9e82b0fc1c4a4600eafea6f32692441169390cc\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"f9e82b0fc1c4a4600eafea6f32692441169390cc\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -646,7 +646,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -753,7 +753,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -861,7 +861,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -915,7 +915,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -996,7 +996,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1076,4 +1076,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\",\"isFork\":false,\"__typename\":\"Repository\",\"file\":{\"id\":\"MDQ6QmxvYjI1NTA3MTg4NzpmYmU3ZDZmODQ5MWU5NWU0ZmYyNjA3YzMxYzIzYTgyMTA1MjU0M2Q2\",\"sha\":\"fbe7d6f8491e95e4ff2607c31c23a821052543d6\",\"__typename\":\"Blob\"}}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can update an entry.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can update an entry.json index 7bd7bab8..568f8fd6 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can update an entry.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can update an entry.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -427,7 +427,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -592,7 +592,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"c502fbb54c429d6b7fc056e86ad5739bb96283a0\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"c502fbb54c429d6b7fc056e86ad5739bb96283a0\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -646,7 +646,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -753,7 +753,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -914,7 +914,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -968,7 +968,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1022,7 +1022,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1156,7 +1156,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1293,7 +1293,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1347,7 +1347,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1401,7 +1401,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1455,7 +1455,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1482,7 +1482,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1508,4 +1508,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\",\"pullRequests\":{\"nodes\":[],\"__typename\":\"PullRequestConnection\"},\"__typename\":\"Repository\"}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can update workflow status from within the editor.json b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can update workflow status from within the editor.json index 5bd8ae57..50ad33ed 100644 --- a/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can update workflow status from within the editor.json +++ b/cypress/fixtures/Github Backend Editorial Workflow - GraphQL API__can update workflow status from within the editor.json @@ -373,7 +373,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -400,7 +400,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -454,7 +454,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -592,7 +592,7 @@ "status": 201 }, { - "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"585270ed13aff33126aeecabc57869d63388ff11\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"createBranchAndPullRequest\",\"variables\":{\"createRefInput\":{\"name\":\"refs/heads/cms/posts/1970-01-01-first-title\",\"oid\":\"585270ed13aff33126aeecabc57869d63388ff11\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"},\"createPullRequestInput\":{\"baseRefName\":\"master\",\"body\":\"Automatically generated by Netlify CMS\",\"title\":\"Create Post “1970-01-01-first-title”\",\"headRefName\":\"cms/posts/1970-01-01-first-title\",\"repositoryId\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\"}},\"query\":\"mutation createBranchAndPullRequest($createRefInput: CreateRefInput!, $createPullRequestInput: CreatePullRequestInput!) {\\n createRef(input: $createRefInput) {\\n branch: ref {\\n ...BranchParts\\n __typename\\n }\\n __typename\\n }\\n createPullRequest(input: $createPullRequestInput) {\\n clientMutationId\\n pullRequest {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment BranchParts on Ref {\\n commit: target {\\n ...ObjectParts\\n __typename\\n }\\n id\\n name\\n prefix\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n __typename\\n}\\n\\nfragment ObjectParts on GitObject {\\n id\\n sha: oid\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -646,7 +646,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -753,7 +753,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -807,7 +807,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -861,7 +861,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -915,7 +915,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -969,7 +969,7 @@ "status": 200 }, { - "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", + "body": "{\"operationName\":\"pullRequests\",\"variables\":{\"owner\":\"owner\",\"name\":\"repo\",\"head\":\"cms/posts/1970-01-01-first-title\",\"states\":[\"OPEN\"]},\"query\":\"query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {\\n repository(owner: $owner, name: $name) {\\n id\\n pullRequests(last: 100, headRefName: $head, states: $states) {\\n nodes {\\n ...PullRequestParts\\n __typename\\n }\\n __typename\\n }\\n __typename\\n }\\n}\\n\\nfragment PullRequestParts on PullRequest {\\n id\\n baseRefName\\n baseRefOid\\n body\\n headRefName\\n headRefOid\\n number\\n state\\n title\\n merged_at: mergedAt\\n updated_at: updatedAt\\n user: author {\\n login\\n ... on User {\\n name\\n __typename\\n }\\n __typename\\n }\\n repository {\\n ...RepositoryParts\\n __typename\\n }\\n labels(last: 100) {\\n nodes {\\n name\\n __typename\\n }\\n __typename\\n }\\n __typename\\n}\\n\\nfragment RepositoryParts on Repository {\\n id\\n isFork\\n __typename\\n}\\n\"}", "method": "POST", "url": "/graphql", "headers": { @@ -1022,4 +1022,4 @@ "response": "{\"data\":{\"repository\":{\"id\":\"MDEwOlJlcG9zaXRvcnkyNTUwNzE4ODc=\",\"isFork\":false,\"__typename\":\"Repository\",\"object\":{\"id\":\"MDY6Q29tbWl0MjU1MDcxODg3OjU4NTI3MGVkMTNhZmYzMzEyNmFlZWNhYmM1Nzg2OWQ2MzM4OGZmMTE=\",\"sha\":\"585270ed13aff33126aeecabc57869d63388ff11\",\"__typename\":\"Commit\",\"status\":null}}}}\n", "status": 200 } -] \ No newline at end of file +] diff --git a/packages/netlify-cms-backend-azure/src/API.ts b/packages/netlify-cms-backend-azure/src/API.ts index c32d3e7c..536f2b9c 100644 --- a/packages/netlify-cms-backend-azure/src/API.ts +++ b/packages/netlify-cms-backend-azure/src/API.ts @@ -62,6 +62,10 @@ type AzurePullRequest = { pullRequestId: number; labels: AzureWebApiTagDefinition[]; sourceRefName: string; + createdBy?: { + displayName?: string; + uniqueName: string; + }; }; type AzurePullRequestCommit = { commitId: string }; @@ -458,12 +462,15 @@ export default class API { const status = labelToStatus(labelName, this.cmsLabelPrefix); // Uses creationDate, as we do not have direct access to the updated date const updatedAt = pullRequest.closedDate ? pullRequest.closedDate : pullRequest.creationDate; + const pullRequestAuthor = + pullRequest.createdBy?.displayName || pullRequest.createdBy?.uniqueName; return { collection, slug, status, diffs: diffsWithIds, updatedAt, + pullRequestAuthor, }; } diff --git a/packages/netlify-cms-backend-bitbucket/src/API.ts b/packages/netlify-cms-backend-bitbucket/src/API.ts index 56597836..5e1ec935 100644 --- a/packages/netlify-cms-backend-bitbucket/src/API.ts +++ b/packages/netlify-cms-backend-bitbucket/src/API.ts @@ -84,6 +84,7 @@ type BitBucketPullRequest = { name: string; }; }; + author: BitBucketUser; }; type BitBucketPullRequests = { @@ -699,6 +700,7 @@ export default class API { const label = await this.getPullRequestLabel(pullRequest.id); const status = labelToStatus(label, this.cmsLabelPrefix); const updatedAt = pullRequest.updated_on; + const pullRequestAuthor = pullRequest.author.display_name; return { collection, slug, @@ -708,6 +710,7 @@ export default class API { .filter(d => d.status !== 'deleted') .map(d => ({ path: d.path, newFile: d.newFile, id: '' })), updatedAt, + pullRequestAuthor, }; } diff --git a/packages/netlify-cms-backend-github/src/API.ts b/packages/netlify-cms-backend-github/src/API.ts index 3472dd85..bc773364 100644 --- a/packages/netlify-cms-backend-github/src/API.ts +++ b/packages/netlify-cms-backend-github/src/API.ts @@ -570,11 +570,27 @@ export default class API { } } + async getPullRequestAuthor(pullRequest: Octokit.PullsListResponseItem) { + if (!pullRequest.user?.login) { + return; + } + + try { + const user: GitHubUser = await this.request(`/users/${pullRequest.user.login}`); + return user.name || user.login; + } catch { + return; + } + } + async retrieveUnpublishedEntryData(contentKey: string) { const { collection, slug } = this.parseContentKey(contentKey); const branch = branchFromContentKey(contentKey); const pullRequest = await this.getBranchPullRequest(branch); - const { files } = await this.getDifferences(this.branch, pullRequest.head.sha); + const [{ files }, pullRequestAuthor] = await Promise.all([ + this.getDifferences(this.branch, pullRequest.head.sha), + this.getPullRequestAuthor(pullRequest), + ]); const diffs = await Promise.all(files.map(file => this.diffFromFile(file))); const label = pullRequest.labels.find(l => isCMSLabel(l.name, this.cmsLabelPrefix)) as { name: string; @@ -587,6 +603,7 @@ export default class API { status, diffs: diffs.map(d => ({ path: d.path, newFile: d.newFile, id: d.sha })), updatedAt, + pullRequestAuthor, }; } diff --git a/packages/netlify-cms-backend-github/src/GraphQLAPI.ts b/packages/netlify-cms-backend-github/src/GraphQLAPI.ts index 94dbf3e9..23090dd2 100644 --- a/packages/netlify-cms-backend-github/src/GraphQLAPI.ts +++ b/packages/netlify-cms-backend-github/src/GraphQLAPI.ts @@ -72,6 +72,14 @@ type GraphQLPullRequest = { id: string; isFork: boolean; }; + user: GraphQLPullsListResponseItemUser; +}; + +type GraphQLPullsListResponseItemUser = { + avatar_url: string; + login: string; + url: string; + name: string; }; function transformPullRequest(pr: GraphQLPullRequest) { @@ -272,6 +280,11 @@ export default class GraphQLAPI extends API { } } + async getPullRequestAuthor(pullRequest: Octokit.PullsListResponseItem) { + const user = pullRequest.user as unknown as GraphQLPullsListResponseItemUser; + return user?.name || user?.login; + } + async getPullRequests( head: string | undefined, state: PullRequestState, diff --git a/packages/netlify-cms-backend-github/src/fragments.ts b/packages/netlify-cms-backend-github/src/fragments.ts index 55038854..a44a88dd 100644 --- a/packages/netlify-cms-backend-github/src/fragments.ts +++ b/packages/netlify-cms-backend-github/src/fragments.ts @@ -51,6 +51,12 @@ export const pullRequest = gql` title merged_at: mergedAt updated_at: updatedAt + user: author { + login + ... on User { + name + } + } repository { ...RepositoryParts } diff --git a/packages/netlify-cms-backend-gitlab/src/API.ts b/packages/netlify-cms-backend-gitlab/src/API.ts index bee48570..32b50894 100644 --- a/packages/netlify-cms-backend-gitlab/src/API.ts +++ b/packages/netlify-cms-backend-gitlab/src/API.ts @@ -655,12 +655,14 @@ export default class API { const label = mergeRequest.labels.find(l => isCMSLabel(l, this.cmsLabelPrefix)) as string; const status = labelToStatus(label, this.cmsLabelPrefix); const updatedAt = mergeRequest.updated_at; + const pullRequestAuthor = mergeRequest.author.name; return { collection, slug, status, diffs: diffsWithIds, updatedAt, + pullRequestAuthor, }; } diff --git a/packages/netlify-cms-core/src/backend.ts b/packages/netlify-cms-core/src/backend.ts index 0b7680c8..b24b33a9 100644 --- a/packages/netlify-cms-core/src/backend.ts +++ b/packages/netlify-cms-core/src/backend.ts @@ -882,6 +882,7 @@ export class Backend { label: collection && selectFileEntryLabel(collection, slug), mediaFiles, updatedOn: entryData.updatedAt, + author: entryData.pullRequestAuthor, status: entryData.status, meta: { path: prepareMetaPath(path, collection) }, }); diff --git a/packages/netlify-cms-core/src/components/Workflow/WorkflowCard.js b/packages/netlify-cms-core/src/components/Workflow/WorkflowCard.js index aa73ae7d..0ca914af 100644 --- a/packages/netlify-cms-core/src/components/Workflow/WorkflowCard.js +++ b/packages/netlify-cms-core/src/components/Workflow/WorkflowCard.js @@ -128,12 +128,14 @@ function WorkflowCard({ allowPublish, canPublish, onPublish, + postAuthor, t, }) { return ( {collectionLabel} + {postAuthor} {title} {(timestamp || authorLastChange) && } {body} @@ -168,6 +170,7 @@ WorkflowCard.propTypes = { allowPublish: PropTypes.bool.isRequired, canPublish: PropTypes.bool.isRequired, onPublish: PropTypes.func.isRequired, + postAuthor: PropTypes.string, t: PropTypes.func.isRequired, }; diff --git a/packages/netlify-cms-core/src/components/Workflow/WorkflowList.js b/packages/netlify-cms-core/src/components/Workflow/WorkflowList.js index c24f5293..7e0a9a7b 100644 --- a/packages/netlify-cms-core/src/components/Workflow/WorkflowList.js +++ b/packages/netlify-cms-core/src/components/Workflow/WorkflowList.js @@ -220,6 +220,7 @@ class WorkflowList extends React.Component { const allowPublish = collection?.get('publish'); const canPublish = ownStatus === status.last() && !entry.get('isPersisting', false); + const postAuthor = entry.get('author'); return ( , ) diff --git a/packages/netlify-cms-lib-util/src/implementation.ts b/packages/netlify-cms-lib-util/src/implementation.ts index 15f908b2..cb2e62b5 100644 --- a/packages/netlify-cms-lib-util/src/implementation.ts +++ b/packages/netlify-cms-lib-util/src/implementation.ts @@ -40,6 +40,7 @@ export interface UnpublishedEntryDiff { } export interface UnpublishedEntry { + pullRequestAuthor?: string; slug: string; collection: string; status: string;