forked from QuorumProof/QuorumProof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_pr.sh
More file actions
executable file
·66 lines (59 loc) · 2.15 KB
/
create_pr.sh
File metadata and controls
executable file
·66 lines (59 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
# Script to push branch and create PR for Issue #21
echo "=========================================="
echo "Issue #21 Fix - Push and Create PR"
echo "=========================================="
echo ""
# Check if we're on the correct branch
CURRENT_BRANCH=$(git branch --show-current)
if [ "$CURRENT_BRANCH" != "fix/issue-21-issuer-revocation" ]; then
echo "❌ Error: Not on the correct branch"
echo "Current branch: $CURRENT_BRANCH"
echo "Expected: fix/issue-21-issuer-revocation"
exit 1
fi
echo "✅ On correct branch: $CURRENT_BRANCH"
echo ""
# Show commit summary
echo "📝 Commit Summary:"
git log --oneline -1
echo ""
# Push to origin (your fork)
echo "🚀 Pushing to origin (your fork)..."
git push -u origin fix/issue-21-issuer-revocation
if [ $? -eq 0 ]; then
echo ""
echo "✅ Successfully pushed to origin!"
echo ""
echo "=========================================="
echo "Next Steps:"
echo "=========================================="
echo ""
echo "1. Go to: https://github.com/Chibey-max/QuorumProof/pull/new/fix/issue-21-issuer-revocation"
echo ""
echo "2. Or go to: https://github.com/QuorumProof/QuorumProof/compare/main...Chibey-max:QuorumProof:fix/issue-21-issuer-revocation"
echo ""
echo "3. Use the PR description from PR_DESCRIPTION.md"
echo ""
echo "4. Set the following:"
echo " - Base repository: QuorumProof/QuorumProof"
echo " - Base branch: main"
echo " - Head repository: Chibey-max/QuorumProof"
echo " - Compare branch: fix/issue-21-issuer-revocation"
echo ""
echo "5. Title: Fix #21: Add issuer revocation support"
echo ""
echo "6. Add labels: bug, smart-contract, high-priority"
echo ""
echo "=========================================="
else
echo ""
echo "❌ Push failed. You may need to authenticate."
echo ""
echo "Options:"
echo "1. Set up SSH key: https://docs.github.com/en/authentication/connecting-to-github-with-ssh"
echo "2. Use GitHub CLI: gh auth login"
echo "3. Use Personal Access Token"
echo ""
echo "After authentication, run: git push -u origin fix/issue-21-issuer-revocation"
fi