Skip to content

Commit

Permalink
Update scripts to pull from intersectMBO
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Aug 28, 2024
1 parent 94304ff commit 7892b41
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
18 changes: 9 additions & 9 deletions scripts/create-slug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ hide_table_of_contents: false
### CI & project maintenance
EOF

source scripts/download-prs.sh IntersectMBO/cardano-node $DATE
source scripts/download-prs.sh IntersectMBO/cardano-cli $DATE
source scripts/download-prs.sh IntersectMBO/cardano-api $DATE
source scripts/download-prs.sh https://github.com/IntersectMBO/cardano-node.git $DATE
source scripts/download-prs.sh https://github.com/IntersectMBO/cardano-cli.git $DATE
source scripts/download-prs.sh https://github.com/IntersectMBO/cardano-api.git $DATE

source scripts/distribute-merged-prs.sh IntersectMBO/cardano-node current $DATE $END_DATE
source scripts/distribute-merged-prs.sh IntersectMBO/cardano-cli current $DATE $END_DATE
source scripts/distribute-merged-prs.sh IntersectMBO/cardano-api current $DATE $END_DATE
source scripts/distribute-merged-prs.sh https://github.com/IntersectMBO/cardano-node.git current $DATE $END_DATE
source scripts/distribute-merged-prs.sh https://github.com/IntersectMBO/cardano-cli.git current $DATE $END_DATE
source scripts/distribute-merged-prs.sh https://github.com/IntersectMBO/cardano-api.git current $DATE $END_DATE

source scripts/summarise-merged-prs.sh IntersectMBO/cardano-node current
source scripts/summarise-merged-prs.sh IntersectMBO/cardano-cli current
source scripts/summarise-merged-prs.sh IntersectMBO/cardano-api current
source scripts/summarise-merged-prs.sh https://github.com/IntersectMBO/cardano-node.git current
source scripts/summarise-merged-prs.sh https://github.com/IntersectMBO/cardano-cli.git current
source scripts/summarise-merged-prs.sh https://github.com/IntersectMBO/cardano-api.git current
2 changes: 1 addition & 1 deletion scripts/distribute-merged-prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -euo pipefail

if [ "$#" -ne 4 ]; then
echo "Usage: $0 repository sub_dir start_date end_date" >&2
echo "Example: $0 input-output-hk/cardano-node v8.0.0 2023-02-22 '2023-02-22 +14 days'" >&2
echo "Example: $0 IntersectMBO/cardano-node v8.0.0 2023-02-22 '2023-02-22 +14 days'" >&2
exit 1
fi

Expand Down
5 changes: 4 additions & 1 deletion scripts/download-prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -euo pipefail

if [ "$#" -ne 2 ]; then
echo "Usage: $0 repository" >&2
echo "Example: $0 input-output-hk/cardano-node" >&2
echo "Example: $0 IntersectMBO/cardano-node" >&2
exit 1
fi

Expand All @@ -31,6 +31,9 @@ temp_json_file="$(mktemp).json"
# Find a reasonable number for -L
max_pr_number="$(gh pr list --repo "$repository" --state all --search "created:>=$date" -L 1000 --json number | jq length)"


echo "Repository: $repository"
echo "Date: $date"
echo "Downloading up to $max_pr_number PRs"

gh pr list --repo "$repository" \
Expand Down
2 changes: 1 addition & 1 deletion scripts/summarise-merged-prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -euo pipefail

if [ "$#" -ne 2 ]; then
echo "Usage: $0 repository output_subdir" >&2
echo "Example: $0 input-output-hk/cardano-node v8.0.0" >&2
echo "Example: $0 IntersectMBO/cardano-node v8.0.0" >&2
exit 1
fi

Expand Down

0 comments on commit 7892b41

Please sign in to comment.