-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_multiple_issues.py
96 lines (85 loc) · 4.06 KB
/
create_multiple_issues.py
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import subprocess
# Script for quickly creating issues
# Run file with 'python create-multiple-issues.py' using GH CLI
repo = "your-username/your-repository"
# Create 1 Prework Checklist issue
for i in range(1):
title = "Skills Issue: Developer: Test"
description = "This is a skills checklist."
labels = "Complexity: Prework,role: front end,role: back end/devOps,size: 1pt"
command = f'gh issue create --repo {repo} --title "{title}" --body "{description}" --label "{labels}"'
print(f"Executing: {command}")
subprocess.run(command, shell=True)
print("----------------------")
# Create 3 Good first issues with any roles
for i in range(3):
title = "Good first issue"
description = "This is a good first issue."
labels = "P-Feature: Home page,good first issue,role: front end,role: back end/devOps,size: 1pt"
command = f'gh issue create --repo {repo} --title "{title}" --body "{description}" --label "{labels}"'
print(f"Executing: {command}")
subprocess.run(command, shell=True)
print("----------------------")
# Create 2 Small Issues with front end role
for i in range(2):
title = "Small issue"
description = "This is a small issue."
labels = "P-Feature: Home page,Complexity: Small,role: front end,size: 1pt"
command = f'gh issue create --repo {repo} --title "{title}" --body "{description}" --label "{labels}"'
print(f"Executing: {command}")
subprocess.run(command, shell=True)
print("----------------------")
# Create 2 Small issues with back end role
for i in range(2):
title = "Small issue"
description = "This is a small issue."
labels = "P-Feature: Home page,Complexity: Small,role: back end/devOps,size: 1pt"
command = f'gh issue create --repo {repo} --title "{title}" --body "{description}" --label "{labels}"'
print(f"Executing: {command}")
subprocess.run(command, shell=True)
print("----------------------")
# Create 2 Small issues with both roles
for i in range(2):
title = "Small issue"
description = "This is a small issue."
labels = "P-Feature: Home page,Complexity: Small,role: front end,role: back end/devOps,size: 1pt"
command = f'gh issue create --repo {repo} --title "{title}" --body "{description}" --label "{labels}"'
print(f"Executing: {command}")
subprocess.run(command, shell=True)
print("----------------------")
# Create 2 Medium Issues with front end role
for i in range(2):
title = "Medium issue"
description = "This is a medium issue."
labels = "P-Feature: Home page,Complexity: Medium,role: front end,size: 2pt"
command = f'gh issue create --repo {repo} --title "{title}" --body "{description}" --label "{labels}"'
print(f"Executing: {command}")
subprocess.run(command, shell=True)
print("----------------------")
# Create 2 Medium issues with back end role
for i in range(2):
title = "Medium issue"
description = "This is a medium issue."
labels = "P-Feature: Home page,Complexity: Medium,role: back end/devOps,size: 2pt"
command = f'gh issue create --repo {repo} --title "{title}" --body "{description}" --label "{labels}"'
print(f"Executing: {command}")
subprocess.run(command, shell=True)
print("----------------------")
# Create 2 Medium issues with both roles
for i in range(2):
title = "Medium issue"
description = "This is a medium issue."
labels = "P-Feature: Home page,Complexity: Medium,role: front end,role: back end/devOps,size: 2pt"
command = f'gh issue create --repo {repo} --title "{title}" --body "{description}" --label "{labels}"'
print(f"Executing: {command}")
subprocess.run(command, shell=True)
print("----------------------")
# Create 2 Large Issues with any roles
for i in range(2):
title = "Large issue"
description = "This is a large issue."
labels = "P-Feature: Home page,Complexity: Large,role: front end,role: back end/devOps,size: 5pt"
command = f'gh issue create --repo {repo} --title "{title}" --body "{description}" --label "{labels}"'
print(f"Executing: {command}")
subprocess.run(command, shell=True)
print("----------------------")