mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Update Repository.rst (#1118)
the example confused me until I found https://github.com/PyGithub/PyGithub/issues/545
This commit is contained in:
committed by
Steve Kowalik
parent
befce37e20
commit
fd090eccbb
@@ -115,7 +115,7 @@ Create a new file in the repository
|
||||
.. code-block:: python
|
||||
|
||||
>>> repo = g.get_repo("PyGithub/PyGithub")
|
||||
>>> repo.create_file("test.txt", "test", "test", branch="test")
|
||||
>>> repo.create_file("/test.txt", "test", "test", branch="test")
|
||||
{'content': ContentFile(path="test.txt"), 'commit': Commit(sha="5b584cf6d32d960bb7bee8ce94f161d939aec377")}
|
||||
|
||||
Update a file in the repository
|
||||
|
||||
Reference in New Issue
Block a user