From 7cdd4ffd1fc52902c0ffc9f4d482f3c8b9a1bf7a Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Mon, 12 May 2025 06:31:45 +0200 Subject: [PATCH] chore(common): revert stats.sh --- resources/stats/stats.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/stats/stats.sh b/resources/stats/stats.sh index c07fde2a72..949d137e4b 100755 --- a/resources/stats/stats.sh +++ b/resources/stats/stats.sh @@ -76,10 +76,10 @@ echo -e "Platform\tAll PRs\t${stableBranch}\tFeatures\tIssues" > "${STATS_ROOT}s for p in "${platforms[@]}"; do echo "Getting stats for $p" mkdir -p "$STATS_ROOT/$p" - gh pr list --json author,createdAt,number,title,labels,state --template "$(cat gh-pr.txt)" --limit 1000 --search "$SEARCH_RANGE -author:keyman-server AND -label:auto AND label:$p" --state all > "$STATS_ROOT/${p}pulls.tsv" - gh pr list --json author,createdAt,number,title,labels,state --template "$(cat gh-pr.txt)" --limit 1000 --search "base:$stableBranch $SEARCH_RANGE AND -author:keyman-server AND -label:auto AND label:$p" --state all > "$STATS_ROOT/${p}pulls-stable.tsv" - gh pr list --json author,createdAt,number,title,labels,state --template "$(cat gh-pr.txt)" --limit 1000 --search "$SEARCH_RANGE AND -author:keyman-server AND -label:auto AND (label:feat OR label:$p)" --state all > "$STATS_ROOT/${p}pulls-feat.tsv" - gh issue list --json author,createdAt,number,title,labels,state --template "$(cat gh-pr.txt)" --limit 1000 --search "$SEARCH_RANGE AND -author:keyman-server AND -label:auto AND label:$p" --state all > "$STATS_ROOT/${p}issues.tsv" + gh pr list --json author,createdAt,number,title,labels,state --template "$(cat gh-pr.txt)" --limit 1000 --search "$SEARCH_RANGE -label:auto label:$p" --state all > "$STATS_ROOT/${p}pulls.tsv" + gh pr list --json author,createdAt,number,title,labels,state --template "$(cat gh-pr.txt)" --limit 1000 --search "base:$stableBranch $SEARCH_RANGE -label:auto label:$p" --state all > "$STATS_ROOT/${p}pulls-stable.tsv" + gh pr list --json author,createdAt,number,title,labels,state --template "$(cat gh-pr.txt)" --limit 1000 --search "$SEARCH_RANGE -label:auto label:feat label:$p" --state all > "$STATS_ROOT/${p}pulls-feat.tsv" + gh issue list --json author,createdAt,number,title,labels,state --template "$(cat gh-pr.txt)" --limit 1000 --search "$SEARCH_RANGE -label:auto label:$p" --state all > "$STATS_ROOT/${p}issues.tsv" stat_all=`cat "$STATS_ROOT/${p}pulls.tsv" | wc -l` stat_stable=`cat "$STATS_ROOT/${p}pulls-stable.tsv" | wc -l` stat_feat=`cat "$STATS_ROOT/${p}pulls-feat.tsv" | wc -l`