Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 06f9e68

Browse files
author
Thiago C. D'Ávila
authored
Merge pull request #7 from staticdev/bug-create-pull
Fix create pull
2 parents f46e8aa + a4a9a3f commit 06f9e68

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/__main__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ def create_pull_requests(self) -> None:
140140
),
141141
]
142142
answers = inquirer.prompt(questions)
143-
labels = (
144-
set(label.strip() for label in answers["labels"].split(","))
145-
if answers["labels"]
146-
else set()
147-
)
148143
if answers["correct"]:
149-
body = answers["body"]
150144
for github_repo in self.configs.github_selected_repos:
151145
repo = self.github_connection.get_repo(github_repo)
146+
body = answers["body"]
147+
labels = (
148+
set(label.strip() for label in answers["labels"].split(","))
149+
if answers["labels"]
150+
else set()
151+
)
152152
# link issues
153153
if answers["confirmation"]:
154154
issues = repo.get_issues(state="open")

0 commit comments

Comments
 (0)