Skip to content

Commit

Permalink
Add sponsors raw response output in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Dec 17, 2022
1 parent 390833f commit 1dd216c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/update-sponsors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
}
}
`;
const response = JSON.parse(await github.graphql(query));
const rawResponse = await github.graphql(query);
console.log(rawResponse);
const response = JSON.parse(rawResponse);
let html = '';
for (const node of response.data.user.sponsorshipsAsMaintainer.nodes) {
html += '<a href="' + node.sponsor.url + '" title="' + node.sponsor.login + (node.sponsor.name ? (' (' + node.sponsor.name + ')') : '') + '" target=_blank><image src="' + node.sponsor.avatarUrl + '" alt="@' + node.sponsor.login + '" width="35" height="35" style="border-radius: 17px;" /></a>\n';
Expand Down

0 comments on commit 1dd216c

Please sign in to comment.