You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 13, 2023. It is now read-only.
inquirer.Text('title', message='Write an issue title', validate=_not_empty_validation),
48
-
inquirer.Text('body', message='Write an issue body [optional]'),
49
-
inquirer.Text('labels', message='Write issue labels [optional, separated by comma]'),
50
-
inquirer.Confirm('correct', message='Confirm creation of issue for the project(s) {}. Continue?'.format(self.configs.github_selected_repos), default=False),
47
+
inquirer.Text(
48
+
"title", message="Write an issue title", validate=_not_empty_validation
49
+
),
50
+
inquirer.Text("body", message="Write an issue body [optional]"),
51
+
inquirer.Text(
52
+
"labels", message="Write issue labels [optional, separated by comma]"
53
+
),
54
+
inquirer.Confirm(
55
+
"correct",
56
+
message="Confirm creation of issue for the project(s) {}. Continue?".format(
# TODO create issue for github to add labels to their API
68
95
questions= [
69
-
inquirer.Text('base', message='Write base branch name (destination)', default="master", validate=_not_empty_validation),
70
-
inquirer.Text('head', message='Write the head branch name (source)', validate=_not_empty_validation),
71
-
inquirer.Text('title', message='Write a PR title', validate=_not_empty_validation),
72
-
inquirer.Text('body', message='Write an PR body [optional]'),
73
-
inquirer.Confirm('draft', message='Do you want to create a draft PR?', default=False),
74
-
inquirer.Text('labels', message='Write PR labels [optional, separated by comma]'),
75
-
inquirer.Confirm('confirmation', message='Do you want to link pull request to issues by title?', default=False),
76
-
inquirer.Text('link', message='Write issue title (or part of it)', validate=_not_empty_validation, ignore=_ignore_if_not_confirmed),
77
-
inquirer.Confirm('inherit_labels', message='Do you want to add labels inherited from the issues?', default=True, ignore=_ignore_if_not_confirmed),
78
-
inquirer.Confirm('correct', message='Confirm creation of pull request(s) for the project(s) {}. Continue?'.format(self.configs.github_selected_repos), default=False)
96
+
inquirer.Text(
97
+
"base",
98
+
message="Write base branch name (destination)",
99
+
default="master",
100
+
validate=_not_empty_validation,
101
+
),
102
+
inquirer.Text(
103
+
"head",
104
+
message="Write the head branch name (source)",
105
+
validate=_not_empty_validation,
106
+
),
107
+
inquirer.Text(
108
+
"title", message="Write a PR title", validate=_not_empty_validation
109
+
),
110
+
inquirer.Text("body", message="Write an PR body [optional]"),
111
+
inquirer.Confirm(
112
+
"draft", message="Do you want to create a draft PR?", default=False
113
+
),
114
+
inquirer.Text(
115
+
"labels", message="Write PR labels [optional, separated by comma]"
116
+
),
117
+
inquirer.Confirm(
118
+
"confirmation",
119
+
message="Do you want to link pull request to issues by title?",
120
+
default=False,
121
+
),
122
+
inquirer.Text(
123
+
"link",
124
+
message="Write issue title (or part of it)",
125
+
validate=_not_empty_validation,
126
+
ignore=_ignore_if_not_confirmed,
127
+
),
128
+
inquirer.Confirm(
129
+
"inherit_labels",
130
+
message="Do you want to add labels inherited from the issues?",
131
+
default=True,
132
+
ignore=_ignore_if_not_confirmed,
133
+
),
134
+
inquirer.Confirm(
135
+
"correct",
136
+
message="Confirm creation of pull request(s) for the project(s) {}. Continue?".format(
github_repo, github_exception.data["message"], extra
189
+
)
190
+
)
113
191
114
192
defmerge_pull_requests(self) ->None:
115
193
"""Merge pull request."""
116
194
state="open"
117
195
questions= [
118
-
inquirer.Text('base', message='Write base branch name (destination)', default="master", validate=_not_empty_validation),
119
-
inquirer.Text('head', message='Write the head branch name (source)', validate=_not_empty_validation),
120
-
inquirer.Text('prefix', message='Write base user or organization name from PR head', default=self.github_username, validate=_not_empty_validation),
121
-
inquirer.Confirm('correct', message='Confirm merging of pull request(s) for the project(s) {}. Continue?'.format(self.configs.github_selected_repos), default=False)
196
+
inquirer.Text(
197
+
"base",
198
+
message="Write base branch name (destination)",
199
+
default="master",
200
+
validate=_not_empty_validation,
201
+
),
202
+
inquirer.Text(
203
+
"head",
204
+
message="Write the head branch name (source)",
205
+
validate=_not_empty_validation,
206
+
),
207
+
inquirer.Text(
208
+
"prefix",
209
+
message="Write base user or organization name from PR head",
210
+
default=self.github_username,
211
+
validate=_not_empty_validation,
212
+
),
213
+
inquirer.Confirm(
214
+
"correct",
215
+
message="Confirm merging of pull request(s) for the project(s) {}. Continue?".format(
216
+
self.configs.github_selected_repos
217
+
),
218
+
default=False,
219
+
),
122
220
]
123
221
answers=inquirer.prompt(questions)
124
222
# Important note: base and head arguments have different import formats.
print("{}: PR not mergeable, GitHub checks may be running.".format(github_repo))
244
+
print(
245
+
"{}: PR not mergeable, GitHub checks may be running.".format(
246
+
github_repo
247
+
)
248
+
)
143
249
else:
144
-
print("{}: no open PR found for {}:{}.".format(github_repo, answers['base'], answers['head']))
250
+
print(
251
+
"{}: no open PR found for {}:{}.".format(
252
+
github_repo, answers["base"], answers["head"]
253
+
)
254
+
)
145
255
146
256
defdelete_branches(self):
147
257
questions= [
148
-
inquirer.Text('branch', message='Write the branch name', validate=_not_empty_validation),
149
-
inquirer.Confirm('correct', message='Confirm deleting of branch(es) for the project(s) {}. Continue?'.format(self.configs.github_selected_repos), default=False)
258
+
inquirer.Text(
259
+
"branch",
260
+
message="Write the branch name",
261
+
validate=_not_empty_validation,
262
+
),
263
+
inquirer.Confirm(
264
+
"correct",
265
+
message="Confirm deleting of branch(es) for the project(s) {}. Continue?".format(
0 commit comments