Commit Graph
68 Commits
Author SHA1 Message Date
Steve Kowalik f93207b4ca Run flake8 in Travis (#1163)
Clean up a few errors I missed, ignore another, and configure flake8 using
a config file to ignore certain errors. The next step would be to remove
the F* ignores.
2019-08-05 15:03:10 +10: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
Filipe LaínsandWan Liuyang ec7bbcf586 issue: add lock/unlock (#1107)
* issue: add lock/unlock

* tests: add test for issue lock/unlock

* tests: add lock/unlock sample data

* Fix tests, add locked and active_lock_reason


Co-authored-by: Wan Liuyang <tsfdye@gmail.com>
2019-05-06 09:38:05 +08:00
Aaron L. Levine 7ac2a2ac97 Adding new attributes to IssueEvent (#857)
See Issue #855 

The class [IssueEvent](https://github.com/PyGithub/PyGithub/blob/master/github/IssueEvent.py) is missing a large number of attributes documented in the [API](https://developer.github.com/v3/issues/events/).

This is also commented about in #653 to a degree

27 of the tests 27 known event types have tests.

**Currently Tested using Issue #30**            
- [x] subscribed
- [x] assigned
- [x] referenced               
- [x] closed                   
- [x] labeled                  

**Currently Tested using Issue/PR #538**
- [x] merged
- [x] mentioned
- [x] review_requested

**Currently Tested using Issue/PR #857**
- [x] reopened
- [x] unassigned
- [x] unlabeled
- [x] renamed
- [x] base_ref_changed
- [x] head_ref_deleted 
- [x] head_ref_restored
- [x] milestoned
- [x] demilestoned
- [x] locked
- [x] unlocked
- [x] review_dismissed
- [x] review_request_removed
- [x] marked_as_duplicate
- [x] unmarked_as_duplicate
- [x] added_to_project       
- [x] moved_columns_in_project
- [x] removed_from_project
- [x] converted_note_to_issue - Note: this event is tied into Issue #866 

This PR is now ready to be merged
2018-08-25 00:01:29 +08:00
Wan Liuyang ae5cdb285e Refactor common header constants and custom media type 2018-08-21 15:01:23 +08:00
Wan Liuyang 3f0caa4057 Sync copyright header 2018-08-19 10:47:41 +08:00
per1234 bed4009361 Fix incorrect formatting in docstrings (#816) 2018-06-11 22:24:27 +08:00
Steve Kowalik 85dcc44650 Correct docstring for set_labels (#766)
Both Issue and PullRequest have a set_labels method whose docstring did
not exactly describe the parameter, correct it.
2018-04-23 14:27:18 +08:00
Shinichi TAMURA 6bf2acc74d Added Issue.as_pull_request() and PullReqest.as_issue() (#630) 2018-03-26 10:25:45 +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
Wan Liuyang a32a17bf81 Fix broken Github reference link in class docstrings 2018-03-13 15:07:07 +08:00
Simon 6bc804dc15 ♻️ Fix all pep8 coding conventions 2018-01-16 13:41:02 -08:00
Nicolas Agustín Torres ba50af53a0 Add Reactions feature (#671)
* List reactions of issue

* Create issue reaction

* List reactions of an issue comment

* Create a reaction on an issue comment

* List reactions of a commit comment

*  Create a reaction on a commit comment

* List reactions of a pull request review comment

* Create a reaction on a pull request review comment

* Delete reaction

* Renames IssueReaction to Reaction

* Fixes docstring in Reaction class

* Removes issue_url on Reaction class

* Fixes string concatenation that does not work on python 2.6
2017-12-14 19:23:33 -08:00
@tmshn 66430d7831 Added "add_to_assignees" & "remove_from_assignees" method to Issue object. 2016-11-27 21:31:30 +09:00
@tmshn 14dd9f0850 Enhance support of "assignees" argument in Issue.edit() 2016-10-10 11:08:41 +09:00
@tmshn e0e5fdf9c0 Added "assignees" attribute to Issue object. 2016-10-09 01:22:03 +09:00
Jannis Gebauer 3a8edc771a add issue assignee param 2016-10-05 11:31:09 +02:00
Jannis Gebauer 8571d87c77 adds a nicer __repr__ 2016-09-08 10:25:48 +02:00
Matt Babineau 3c6f99feb4 Adding "since" param to Issue.get_comments() (#426) 2016-07-21 11:19:13 -04:00
Peter Buckley cb0cf0a680 update doc url everywhere (#420) 2016-07-12 16:38:02 -04:00
Raja Reddy Karri 3aee448428 Fixing https://github.com/PyGithub/PyGithub/issues/335.
Issue.remove_from_labels fails when the label passed is a string with whitespace characters
2015-08-27 15:49:35 +05:30
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
David Farr 10bbfc1def Now accepts strings for assignee.
When calling pygithub for calls associated with assignees you can now simply pass a string instead of a NamedUser object. This applies to the following methods:
- issue.edit()
- repo.create_issue()
- repo.get_issues()
- repo.has_in_assignees()
- repo.has_in_collaborators()
- repo.remove_from_collaborators()
- repo.add_to_collaborators()
2013-12-16 11:15:17 -08:00
Vincent Jacques 22f366b540 Accept strings as well as Label objects (#202)
This should be more generic, but it's a wig work to do it
everywhere. Let's keep that in mind for V2.
2013-11-10 15:45:33 -08:00
Vincent Jacques 072bf24277 Raise exception only when user *accesses* an attribute with a bad value (#195) 2013-09-12 11:45:29 +02: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 ba5b0d5ea9 Fix merge of #192
One branch modified signature of constructors,
another branch added a call to a constructor.
2013-08-22 10:44:38 +02:00
Vincent Jacques 8a2624e3a1 Merge branch 'topic/RememberHeaders' into develop (#192)
Conflicts:
	github/Issue.py
	github/MainClass.py
	github/PaginatedList.py
	github/Repository.py
	github/Requester.py
2013-08-22 10:30:14 +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
Vincent Jacques 20107078d2 Fix copyrights (#181 #182 #184 #186 #187) 2013-08-21 16:08:02 +02:00
AKFish 912bec79d2 Update copyright information 2013-08-21 17:45:01 +08:00
AKFish 3c1d17cd64 Update Repository.py 2013-08-21 17:13:03 +08:00
AKFish ba6800ada4 Update NamedUser.py 2013-08-21 16:57:10 +08:00
AKFish e4baf577ed Update Milestone.py 2013-08-21 16:24:27 +08:00
AKFish 175488270a Update Label.py 2013-08-21 16:21:22 +08:00
AKFish 8f2ba4f522 Update IssueComment.py 2013-08-21 16:13:22 +08:00
AKFish 49a69c9425 Update Issue.py 2013-08-21 16:08:54 +08:00
AKFish ca6189c3c9 Change CompletableGithubObject.__init__ without breaking build. 2013-08-21 14:49:20 +08:00
AKFish d6170e36de Update IssuePullRequest.py 2013-08-21 14:03:57 +08:00
Vincent Jacques df8df543c3 Merge branch 'develop' into topic/KnowYourParent 2013-08-15 08:20:01 +02: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
Stuart Glaser 5b2954e471 Populates Issue's repository from URL when not in response. 2013-06-29 03:43:12 -07:00