Skip to content
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

Add missing arguments to Repository.edit #844

Merged
merged 1 commit into from Jul 15, 2018
Merged

Add missing arguments to Repository.edit #844

merged 1 commit into from Jul 15, 2018

Conversation

jacquerie
Copy link
Contributor

As promised in #842, here's a PR to update the edit method so that it allows editing the newly added properties.

@@ -4,10 +4,10 @@ api.github.com
None
/repos/jacquev6/PyGithub
{'Content-Type': 'application/json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
{"has_wiki": false, "name": "PyGithub", "has_downloads": true, "has_issues": true, "homepage": "http://vincent-jacques.net/PyGithub", "private": true, "description": "Description edited by PyGithub"}
{"has_wiki": false, "name": "PyGithub", "has_downloads": true, "has_issues": true, "homepage": "http://vincent-jacques.net/PyGithub", "private": true, "description": "Description edited by PyGithub", "has_projects": false, "allow_squash_merge": true, "allow_merge_commit": true, "allow_rebase_merge": true}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually editing the request/response pair is error prone and ugly, but it is necessitated by the fact that self.repo in the test points to a repository nobody else has the correct rights to, so whenever one needs to modify one of the existing tests there's no way to just re-record the exchange.

@sfdye sfdye merged commit 29d2315 into PyGithub:master Jul 15, 2018
@jacquerie jacquerie deleted the add-missing-arguments-to-repository.edit branch July 15, 2018 06:14
jacquerie added a commit to jacquerie/PyGithub that referenced this pull request Sep 16, 2018
Allows to pass falsy values to the new arguments introduced in PyGithub#844.

Closes PyGithub#903
@jacquerie jacquerie mentioned this pull request Sep 16, 2018
sfdye pushed a commit that referenced this pull request Sep 16, 2018
Allows to pass falsy values to the new arguments introduced in #844.

Closes #903
candrikos pushed a commit to candrikos/PyGithub that referenced this pull request Sep 25, 2020
As promised in PyGithub#842, here's a PR to update the `edit` method so that it allows editing the newly added properties.
candrikos pushed a commit to candrikos/PyGithub that referenced this pull request Sep 25, 2020
Allows to pass falsy values to the new arguments introduced in PyGithub#844.

Closes PyGithub#903
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants