GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — body is optional parameter for opening pull request. · ask/python-github2@8bf92e6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • github2
    • pull_requests.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎github2/pull_requests.py‎

Copy file name to clipboardExpand all lines: github2/pull_requests.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ def new(self, project, base, head, title=None, body=None, issue=None):
4040
post_data = {"base": base, "head": head}
4141
if issue:
4242
post_data["issue"] = issue
43-
elif title and body:
43+
elif title:
4444
post_data["title"] = title
45-
post_data["body"] = body
45+
if body:
46+
post_data["body"] = body
4647
pull_request_data = [("pull[%s]" % k, v) for k, v in post_data.items()]
4748
return self.get_value(project, post_data=dict(pull_request_data),
4849
filter="pull", datatype=PullRequest)

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.