Log issue stats for easier debugging

This commit is contained in:
TSRBerry 2023-09-20 18:15:35 +02:00 committed by TSR Berry
parent aceb2183ae
commit 0855ceb943
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2

View file

@ -23,7 +23,7 @@ jobs:
with: with:
result-encoding: string result-encoding: string
script: | script: |
const query = `query($owner: String!, $name: String!) { const query = `query($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) { repository(owner: $owner, name: $name) {
labels(first: 100, query: "status") { labels(first: 100, query: "status") {
nodes { nodes {
@ -48,6 +48,8 @@ jobs:
labelsWithIssueCount.forEach((label) => { labelsWithIssueCount.forEach((label) => {
formattedData[label.name] = label.issues.totalCount; formattedData[label.name] = label.issues.totalCount;
}); });
console.log(formattedData);
return formattedData; return formattedData;
@ -55,7 +57,7 @@ jobs:
run: | run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
cat << $EOF > compat-stats.json cat << $EOF > compat-stats.json
${{steps.stats.outputs.result}} ${{ steps.stats.outputs.result }}
$EOF $EOF
- name: Commit stats - name: Commit stats