We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
des ptits morceaux de code
const unsubscribeQuery = ` mutation ($input: UpdateSubscriptionInput!) { updateSubscription(input: $input) { subscribable { id viewerSubscription } } } `;
const response = await fetch('https://api.github.com/graphql', { method: 'POST', headers: { 'Authorization': `Bearer ${token}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ query: unsubscribeQuery, variables: { input: { subscribableId: `REPO_ID`, state: 'UNSUBSCRIBED' } } }) });
async function getRepoId() { const repoIdQuery = ` query { repository(owner: "${owner}", name: "${repo}") { id } } `; const response = await fetch('https://api.github.com/graphql', { method: 'POST', headers: { 'Authorization': `Bearer ${token}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ query: repoIdQuery }) }); const result = await response.json(); return result.data.repository.id; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
des ptits morceaux de code
The text was updated successfully, but these errors were encountered: