Skip to content

Commit 9d94809

Browse files
committed
Add empty changeset
1 parent a057c0b commit 9d94809

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

β€Žprocess_prs.shβ€Ž

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/bash
2+
3+
# Script to process PRs: checkout, add empty changeset, commit, and push
4+
# Usage: ./process_prs.sh
5+
6+
set -e # Exit on any error
7+
8+
# Array of PR numbers to process
9+
PRS=(577 578)
10+
11+
echo "πŸš€ Starting PR processing script..."
12+
13+
for pr in "${PRS[@]}"; do
14+
echo ""
15+
echo "πŸ“‹ Processing PR #$pr..."
16+
17+
# Checkout the PR
18+
echo " πŸ”„ Checking out PR #$pr..."
19+
gh pr checkout $pr
20+
21+
# Add empty changeset
22+
echo " πŸ“ Adding empty changeset..."
23+
yarn changeset --empty
24+
25+
# Add changes to git
26+
echo " βž• Adding changes to git..."
27+
git add .
28+
29+
# Commit changes
30+
echo " πŸ’Ύ Committing changes..."
31+
git commit -m "Add empty changeset"
32+
33+
# Push changes
34+
echo " πŸš€ Pushing changes..."
35+
git push
36+
37+
echo " βœ… PR #$pr completed successfully!"
38+
done
39+
40+
echo ""
41+
echo "πŸŽ‰ All PRs processed successfully!"
42+
echo "πŸ“Š Summary:"
43+
echo " - PR #575: βœ… Already completed"
44+
echo " - PR #576: βœ… Already completed"
45+
for pr in "${PRS[@]}"; do
46+
echo " - PR #$pr: βœ… Completed"
47+
done

0 commit comments

Comments
Β (0)