Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: Add discord-message action logging

+4 -6
+4 -6
.github/actions/discord-message/action.mjs
··· 28 28 29 29 async function getReleaseBody(name, version) { 30 30 const tag = `${name}@${version}`; 31 - const result = await octokit.rest.repos.getReleaseByTag({ 32 - owner: 'urql-graphql', 33 - repo: 'urql', 34 - tag, 35 - }); 31 + const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); 32 + const result = await octokit.rest.repos.getReleaseByTag({ owner, repo, tag }); 36 33 37 34 const release = result.status === 200 ? result.data : undefined; 38 35 if (!release || !release.body) return; ··· 75 72 }); 76 73 77 74 if (!response.ok) { 78 - console.log('Something went wrong while sending the discord webhook.'); 75 + console.error('Something went wrong while sending the discord webhook.', response.status); 76 + console.error(await response.text()); 79 77 return; 80 78 } 81 79