8000 Add PR Links as Task List Items to Issues by saadmk11 · Pull Request #518 · python/bedevere · GitHub
[go: up one dir, main page]

Skip to content

Add PR Links as Task List Items to Issues #518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint
  • Loading branch information
saadmk11 authored Nov 9, 2022
commit 26f01e706558fa541069a20c9648f24cdf17dd2c
4 changes: 2 additions & 2 deletions bedevere/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def build_issue_body(pr_number: int, body: str) -> str:
body += ISSUE_BODY_TASK_LIST_TEMPLATE.format(pr_number=pr_number)
return body

# If the body already contains a tasklist, only add the new PR to the list
# If the body already contains a tasklist, only append the new PR to the list
return ISSUE_BODY_TASK_LIST_PATTERN.sub(
fr"\g<start>\g<tasks>- [ ] gh-{pr_number}\n\g<end>",
body
Expand All @@ -175,7 +175,7 @@ async def patch_body(
if content_type == ISSUE
else build_pr_body(pr_or_issue_number, body)
)
return await gh.patch( pr_or_issue["url"], data={"body": updated_body})
return await gh.patch(pr_or_issue["url"], data={"body": updated_body})
return None


Expand Down
0