8000 Merge pull request #719 from cclauss/patch-1 · pythonthings/github3.py@6e5a8b7 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 6e5a8b7

Browse files
authored
Merge pull request sigmavirus24#719 from cclauss/patch-1
This example does not create a commit
2 parents 47727c9 + 45eadd1 commit 6e5a8b7

File tree

2 files changed

+8
-1
lines changed

docs/examples/git.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Creating a Blob Object
99
----------------------
1010

1111
One of the really cool (and under used, it seems) parts of the GitHub API
12-
involves the ability to create commit and blob objects.
12+
involves the ability to create blob objects.
1313

1414
.. code-block:: python
1515

docs/examples/github.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ Creating a new repository
121121
if r:
122122
print("Created {0} successfully.".format(r.name))
123123

124+
Create a commit to change an existing file
125+
------------------------------------------
126+
127+
::
128+
129+
repo.contents('/README.md').update('commit message', 'file content'.encode('utf-8'))
130+
124131
Follow another user on GitHub
125132
-----------------------------
126133

0 commit comments

Comments
 (0)
0