Kevin Grandjean
f82ad61c37
Fix broken urls in docstrings ( #2393 )
2023-06-01 10:36:31 +02:00
秋葉
6570892a79
Feat: Add html_url property in Team Class. ( #1983 )
...
Fixes : #1942
2021-10-13 15:57:07 +11:00
Mark Walker
ab36b89aa5
Fixed links to github docs. [ #2009 ]
2021-07-31 02:34:34 +01:00
Steve Kowalik
babcbcd04f
Update most URLs to docs.github.com ( #1896 )
...
Now that GitHub have moved their documentation from
developer.github.com, we should update our links. I have also tried to
update the call strings to their new format, but since it was done via
regex, some of them may not match exactly.
2021-03-26 20:43:48 +11:00
Steve Kowalik
290b62726f
Switch all string addition to using f-strings ( #1774 )
...
Now that we no longer support Python 3.5, stop using string addition
everywhere it makes sense, and move to the best feature 3.6+ gives us,
f-strings!
2021-03-03 14:50:57 +11:00
Steve Kowalik
e113e37de1
Add pyupgrade to pre-commit configuration ( #1783 )
...
To help us switch to f-strings and other 3.6+ changes, add pyupgrade to
our pre-commit configuration to keep the codebase clean.
2020-12-15 14:07:33 +11:00
Andy Grunwald
1c55be5174
Fix #1507 : Add new Teams: Add or update team repository endpoint ( #1509 )
...
* Add new Team.update_team_repository()
* Mark Team.set_repo_permission() as deprecated
Fixes #1507
2020-10-28 13:43:35 +11:00
Steve Kowalik
07e29fe014
Format with new black ( #1679 )
...
Black is very opinionated, but sometimes those opinions change. Run the
new black version across the codebase, and lock down the version used by
pre-commit so we don't get surprised like this again.
2020-09-02 14:59:09 +10:00
Tal Machani
749e8d359a
Add method get_team_membership for user to Team ( #1658 )
...
* - Add method get_team_membership for user
* add typing get_team_membership for member
Fixes #1657
2020-08-18 17:45:01 +10:00
Adrian Bridgett
219bde53d3
Add "get_repo_permission" to Team class ( #1416 )
...
* Add "get_repo_permission" to Team class
* second attempt:
- accept repo name or repo object
- return github.Permissions.Permissions object
- try and following CONTRIBUTING.md better
* add missing import to tests
patch replay data with permission data
* assert a specific permission rather than just the type
Fixes #1415
2020-03-13 11:01:16 +11:00
Steve Kowalik
784deb5f68
Run black over the entire tree ( #1386 )
...
It's been a while since black was run over the entire tree, and since CI
still doesn't check it, we can get behind.
2020-02-11 10:37:25 +11:00
Gilad Shefer
eacabb2fb9
Added nested teams and parent ( #1348 )
...
* Added nested teams and parent
- Added github.Team.Team.get_teams() to get nested teams.
- Added github.Team.Team.parent which points to the parent team.
Fixes #1337
2020-01-12 10:17:54 +10:00
Steve Kowalik
b7894ea00c
Drop Python 2 support ( #1329 )
...
With the Python 2 deadline gone, it's time to move with the times and
switch to Python 3 only.
2020-01-06 18:01:38 +11:00
Wan Liuyang
540a085001
Fix isort - add known first and third party
2019-12-11 00:54:59 +08:00
Wan Liuyang
6ceb9e9a15
Apply black to whole codebase ( #1303 )
2019-12-10 17:14:33 +08:00
Adam Baratz
ec3c8d7b3b
Add support for team discussions ( #1246 ) ( #1249 )
...
* Add support for team discussions (#1246 )
* Make a TeamDiscussion completeable
2019-10-31 21:19:10 +11:00
Steve Kowalik
dc2f2ad8cb
Switch to using six ( #1189 )
...
With the Python 2.7 deadline fast approaching, modernize the codebase
making use of the modernize module to switch to using six, as well as
other upcoming features, such as absolute imports . Stop using 2to3
for Travis, yay!
2019-08-05 14:06:19 +10:00
Steve Kowalik
828b53b756
Silence more flake8 errors ( #1160 )
...
Make more whitespace changes to silence flake8 errors under the github
directory only.
2019-07-02 17:55:04 +08:00
Shibasis Patel and Wan Liuyang
edab176b5d
Adding support for pending team invitations ( #993 )
...
* fixes issue#823
* Update GithubObject.py
* Added tests for Pending team invitations(Issue#823)
Co-authored-by: Wan Liuyang <tsfdye@gmail.com >
2019-06-28 11:35:58 +08:00
Wan Liuyang
3f0caa4057
Sync copyright header
2018-08-19 10:47:41 +08:00
Jacopo Notarstefano
c00217472b
Allow editing of Team descriptions ( #839 )
...
PR https://github.com/PyGithub/PyGithub/pull/753 added this property but forgot to make it editable. The current PR fixes this omission.
2018-07-10 21:35:00 +08:00
Tim Boring
817f22303c
Add remove_membership() method to Teams class ( #807 )
...
Per the Github v3 API [docs](https://developer.github.com/v3/teams/members/#deprecation-notice-2 ), the "remove team member" api is deprecated. This PR implements the new API call.
Deprecated API:
```
DELETE /teams/:team_id/members/:username
```
New API:
```
DELETE /teams/:team_id/memberships/:username
```
This PR also adds a `deprecation` notice to the docstring of the deprecated methods.
2018-06-19 11:19:27 +08:00
Maarten Fonville
0e8ae376a7
Fix Team.description ( #797 )
...
fixes #796
2018-05-21 10:32:02 +08:00
Steve Kowalik
1f23c06a4d
Add support for team privacy ( #763 )
...
Teams contain support for privacy, by being either closed, or secret.
Export the string via a property, and allow editing it via the edit
method.
2018-04-20 15:17:58 +08:00
Manu Hortet
980b67f930
Team description added to Team.py ( #753 )
...
* team description added to Team.py
* minor correction on initAttributes
2018-04-17 18:22:11 +08:00
Michał Górny
10ee17a25c
Filter team members by role ( #491 )
...
* Team: support filtering members by role
* Team: support adding membership with role
2018-03-17 22:05:13 +08:00
sfdye
365a0a24d3
Apply fix_headers script to update copyright info
2018-03-17 20:06:16 +08:00
sfdye
58e1ef9ccb
Fix copyright formatting
2018-03-13 22:30:47 +08:00
sfdye
020c136a40
Update doc link in copyright text
2018-03-13 22:07:38 +08:00
Isuru Fernando
d9c5a07fcf
Get organization from the team ( #590 )
...
* Get organization from the team
* Fix ReplayData for Team
2018-03-10 20:13:44 +08:00
James D'Amato
01ab4cc6ae
Add role parameter to Team.add_membership method ( #638 )
2018-02-07 01:25:24 -08:00
mattjmorrison
93473458a1
Add permission param documentation
2016-09-16 14:28:26 -05:00
mattjmorrison
5dddea78f0
Add ability to set permission for team repo
...
https://developer.github.com/v3/orgs/teams/#add-or-update-team-repository
2016-09-16 14:16:54 -05:00
Jannis Gebauer
8571d87c77
adds a nicer __repr__
2016-09-08 10:25:48 +02:00
Peter Buckley
cb0cf0a680
update doc url everywhere ( #420 )
2016-07-12 16:38:02 -04:00
Aron Culotta
a06b5ecfb2
fix misspelling: https://github.com/PyGithub/PyGithub/issues/363
2015-12-15 17:21:05 -06:00
Jan Orel
16d0a8bf55
Add team membership call
2014-11-10 14:01:07 +01:00
Vincent Jacques
abca7a026e
pep8
...
This is strange, maybe Cygwin's version is stricter.
No time to investigate.
2014-05-04 12:54:05 -07:00
Vincent Jacques
597e123029
Factorize the creation of attributes (preparation for #195 )
2013-09-12 09:27:25 +02:00
Vincent Jacques
4a5009741a
Use ValuedAttribute and NotSet.value (preparation for #195 )
2013-09-12 00:40:27 +02:00
Vincent Jacques
c0dae31a97
Add many missing attributes
2013-09-06 17:14:59 +02:00
Vincent Jacques
f2feb81dae
Add default parameters to greatly reduce code redoundancy
2013-09-06 11:01:32 +02:00
Vincent Jacques
64cf539c83
#193 : Add a param to Requester.requestXxx for request headers
2013-08-23 11:31:01 +02:00
Vincent Jacques
5c475c7683
First review of #192 (pep8, headers... nothing important)
...
./manage.sh check
./manage.sh fix_headers
2013-08-22 10:12:38 +02:00
AKFish
1070631c73
Update Team.py
2013-08-21 17:18:01 +08:00
AKFish
ca6189c3c9
Change CompletableGithubObject.__init__ without breaking build.
2013-08-21 14:49:20 +08:00
Vincent Jacques
7c49e48305
Fix links to ref in :calls: sections
2013-07-16 23:46:23 +02:00
Vincent Jacques
8484260dc5
Fix our doc to match URLs described in Github API v3 ref doc
2013-07-16 10:32:57 +02:00
Vincent Jacques
06a3d87098
Change source file header format
2013-07-13 19:03:53 +02:00
Vincent Jacques
d0002b7a3c
Fix pep8 and copyrights
2013-06-18 22:35:46 +02:00