8000 Reify notes for the final 1.0 release · staticdev/github4.py@6de8983 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit 6de8983

Browse files
committed
Reify notes for the final 1.0 release
1 parent 10d0343 commit 6de8983

File tree

1 file changed

+172
-159
lines changed

1 file changed

+172
-159
lines changed

LATEST_VERSION_NOTES.rst

Lines changed: 172 additions & 159 deletions
546
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,85 @@
11
.. vim: set tw=100
22
3-
Unreleased
4-
~~~~~~~~~~
3+
1.0.0: 2018-03-13
4+
~~~~~~~~~~~~~~~~~
55

6-
Breaking Changes (since 1.0.0a4)
7-
````````````````````````````````
8-
9-
- Remove ``Thread.comment``, ``Thread.thread``, ``Thread.urls`` attributes.
10-
11-
- Remove ``Thread#is_unread`` method. Use the ``Thread.unread`` attribute
12-
instead.
13-
14-
- ``Subscription`` has been split into two objects: ``ThreadSubscription`` and
15-
``RepositorySubscription`` with the same methods.
16-
17-
- Remove ``is_ignored`` method from our Subscription objects. Use the
18-
``ignored`` attribute instead.
19-
20-
- Remove ``is_subscribed`` method from our Subscription objects. Use the
21-
``subscribed`` attribute instead.
22-
23-
Features Added (since 1.0.0a4)
24-
``````````````````````````````
25-
26-
- Add ``Organization#all_events``.
27-
28-
- Add ``Tag.tagger_as_User`` which attempts to return the tagger as as User.
29-
30-
- Add ``Repo.statuses`` and a corresponding ``repo.status.CombinedStatus`` to
31-
32-
Deprecations and Other Changes (since 1.0.0a4)
33-
``````````````````````````````````````````````
34-
35-
- Deprecate ``Organization#events`` in favor of ``Organization#public_events``.
36-
37-
- Fix test failtures on windows caused by unclosed file handles.
38-
get a combined view of commit statuses for a given ref.
39-
40-
1.0.0a4: 2016-02-19
41-
~~~~~~~~~~~~~~~~~~~
42-
43-
Features Added (since 1.0.0a3)
44-
``````````````````````````````
45-
46-
- Add support for the Issue locking API currently in Preview Mode
47-
48-
Bugs Fixed (since 1.0.0a3)
49-
``````````````````````````
50-
51-
- Fix the dependencies and requirements. In 1.0.0a3 we moved to using the
52-
``setup.cfg`` file to define optional dependencies for wheels. By doing
53-
so we accidentally left out our actual hard dependencies.
54-
55-
1.0.0a3: 2016-02-11
56-
~~~~~~~~~~~~~~~~~~~
57-
58-
Breaking Changes (since 1.0.0a2)
59-
````````````````````````````````
60-
61-
- Move ``Users#add_email_addresses`` to ``GitHub#add_email_addresses``.
62-
63-
- Move ``Users#delete_email_addresses`` to ``GitHub#delete_email_addresses``.
64-
65-
- Remove ``Users#add_email_address`` and ``Users#delete_email_address``.
66-
67-
- Remove ``Repository#update_label``.
68-
69-
Features Added (since 1.0.0a2)
70-
``````````````````````````````
71-
72-
- Support filtering organization members by whether they have 2FA enabled.
73-
74-
- Support filtering organization and team members by role.
6+
1.0.0 is a huge release. It includes a great deal of changes to ``github3.py``.
7+
It is suggested you read the following release notes *very* carefully.
758

76-
- Add ``GitHub#all_organizations``.
9+
Unfortunately, it's plausible that some things have slipped through the cracks
10+
in these release notes.
7711

78-
- Add ``PullRequest#create_comment``.
12+
Breaking Changes
13+
````````````````
7914

80-
- Add ``Repository#release_by_tag_name`` to retrieve a Release from a
81-
Repository by its associated tag name.
15+
- Methods that iterate over collections return a separate class than methods
16+
that retrieve a single instance. These objects have separate representations
17+
when retrieving the data from GitHub's API. They include:
8218

83-
- Add ``Repository#latest_release`` to retrieve the latest Release for a
84-
Repository.
19+
* Team now can be represented by ShortTeam or Team
8520

86-
- Add ``GitHub#license`` to retrieve a ``github3.license.License`` by the
87-
license name.
21+
* Organization now can be represented by ShortOrganization or Organization
8822

89-
- Add ``GitHub#licenses`` to iterate over all the licenses returned by
90-
GitHub's Licenses API.
23+
* Issue now can be represented by ShortIssue or Issue
9124

92-
- Add protection information to ``github3.repos.branch.Branch``.
25+
* PullRequest now can be represented by ShortPullRequest or PullRequest
9326

94-
- Add ``Branch#protect`` and ``Branch#unprotect`` to support updating a
95-
Branch's protection status.
27+
* Commit now can be represented by ShortCommit, or Commit
9628

97-
- Vastly improved GitHub Enterprise support:
29+
* Gist now can be represented by ShortGist, GistFork, or Gist
9830

99-
- Add ``User#rename`` to rename a user in a GitHub Enterprise installation.
31+
* GistFile now can be represented by ShortGistFile or GistFile
10032

101-
- Add ``GitHub#create_user`` to create a user.
33+
* Repository objects:
10234

103-
- Add ``User#impersonate`` to create an impersonation token by an admin for
104-
a particular user.
35+
- Branch now can be represented by ShortBranch or Branch
10536

106-
- Add ``User#revoke_impersonation`` to revoke all impersonation tokens for a
107-
user.
37+
- RepoComment now can be represented by ShortComment or ShortRepoComment
10838

109-
- Add ``User#promote`` to promote a particular user to a site administrator.
39+
- Repository now can be represented by ShortRepository or Repository
11040

111-
- Add ``User#demote`` to demote a site administrator to a simple user.
41+
- RepoCommit now can be represented by MiniCommit, ShortCommit, or
42+
RepoCommit
11243

113-
- Add ``User#suspend`` to suspend a user's account.
44+
- Status now can be represented by ShortStatus or Status
11445

115-
- Add ``User#unsuspend`` to reinstate a user's account.
46+
* User now can be represented by ShortUser, Contributor, User, or
47+
AuthenticatedUser
11648

117-
- Add ``original_content`` attribute to a ``GistFile``
49+
* License now can be represented by ShortLicense or License
11850

119-
- Add ``GistFile#content`` to retrieve the contents of a file in a gist from
120-
the API.
51+
- Refreshing a short representation of an object will result in a new object
52+
of a new class returned. For example:
12153

122-
- Add support for the alpha `bulk issue import API`_
54+
.. code-block:: python
12355
124-
.. _bulk issue import API:
125-
https://gist.github.com/jonmagic/5282384165e0f86ef105
56+
import github3
57+
users = [(u, u.refresh()) for u in github3.all_users(10)]
58+
for short_user, user in users:
59+
assert isinstance(short_user, github3.users.ShortUser)
60+
assert isinstance(user, github3.users.User)
12661
127-
Bugs Fixed (since 1.0.0a2)
128-
``````````````````````````
62+
- Remove ``Thread.comment``, ``Thread.thread``, ``Thread.urls`` attributes.
12963

130-
- The ``context`` parameter to ``Repository#create_status`` now properly
131-
defaults to ``"default"``.
64+
- Remove ``Thread#is_unread`` method. Use the ``Thread.unread`` attribute
65+
instead.
13266

133-
- Fix AttributeError when ``IssueEvent`` has assignee.
67+
- ``Subscription`` has been split into two objects: ``ThreadSubscription`` and
68+
``RepositorySubscription`` with the same methods.
13469

135-
- Correctly set the ``message`` attribute on ``RepoCommit`` instances.
70+
- Remove ``is_ignored`` method from our Subscription objects. Use the
71+
``ignored`` attribute instead.
13672

137-
- Include ``browser_download_url`` on ``Asset`` instances.
73+
- Remove ``is_subscribed`` method from our Subscription objects. Use the
74+
``subscribed`` attribute instead.
13875

139-
- (Packaging related) Fix ``setup.py`` to use proper values for certain
140-
parameters.
76+
- Move ``Users#add_email_addresses`` to ``GitHub#add_email_addresses``.
14177

142-
- Fix ``ValueError`` for ``Repository#create_file``.
78+
- Move ``Users#delete_email_addresses`` to ``GitHub#delete_email_addresses``.
14379

144-
1.0.0a2: 2015-07-14
145-
~~~~~~~~~~~~~~~~~~~
80+
- Remove ``Users#add_email_address`` and ``Users#delete_email_address``.
14681

147-
Breaking Changes (since 1.0.0a1)
148-
````````````````````````````````
82+
- Remove ``Repository#update_label``.
14983

15084
- When you download a release asset, instead of returning ``True`` or
15185
``False``, it will return the name of the file in which it saved the asset.
@@ -158,50 +92,6 @@ Breaking Changes (since 1.0.0a1)
15892

15993
- Replace ``Repository#comments_on_commit`` with ``RepoCommit#comments``.
16094

161-
Features Added (since 1.0.0a1)
162-
``````````````````````````````
163-
164-
- You can now download a file in a pull request to a file on disk.
165-
166-
- You can retrieve the contents of the file in a pull request as bytes.
167-
168-
- Add ``id`` attribute to ``github3.repos.milestone.Milestone``.
169-
170-
- Add support for sort, direction, and since parameters to the ``comments``
171-
method on ``github3.issues.Issue``.
172-
173-
- Add branch argument to update and delete methods on
174-
``github3.repos.contents.Contents``.
175-
176-
- Add ``permissions`` attribute to ``github3.repos.repo.Repository`` object to
177-
retrieve the permissions for a specific repository.
178-
179-
- Allow a deployment to be retrieved by its id.
180-
181-
- Add the ``delete`` method to the ``github3.repos.release.Asset`` class.
182-
183-
Bugs Fixed (since 1.0.0a1)
184-
``````````````````````````
185-
186-
- Pull request files can now be downloaded even when the repository is
187-
private.
188-
189-
- Fix exception when merging a pull request with an empty commit message.
190-
191-
- Add missing Issue events.
192-
193-
- Coerce review comment positions to integers.
194-
195-
196-
1.0.0a1: 2014-12-07
197-
~~~~~~~~~~~~~~~~~~~
198-
199-
1.0.0 is a huge release. It includes a great deal of changes to ``github3.py``.
200-
It is suggested you read the following release notes *very* carefully.
201-
202-
Breaking Changes
203-
````````````````
204-
20595
- ``Organization#add_member`` has been changed. The second parameter has been
20696
changed to ``team_id`` and now expects an integer.
20797

@@ -558,3 +448,126 @@ New Features
558448

559449
i = github3.issue('sigmavirus24', 'github3.py', 301)
560450
pr = i.pull_request()
451+
452+
- Add support for the Issue locking API currently in Preview Mode
453+
454+
- Add ``Organization#all_events``.
455+
456+
- Add ``Tag.tagg F438 er_as_User`` which attempts to return the tagger as as User.
457+
458+
- Add ``Repo.statuses`` and a corresponding ``repo.status.CombinedStatus`` to
459+
460+
- Support filtering organization members by whether they have 2FA enabled.
461+
462+
- Support filtering organization and team members by role.
463+
464+
- Add ``GitHub#all_organizations``.
465+
466+
- Add ``PullRequest#create_comment``.
467+
468+
- Add ``Repository#release_by_tag_name`` to retrieve a Release from a
469+
Repository by its associated tag name.
470+
471+
- Add ``Repository#latest_release`` to retrieve the latest Release for a
472+
Repository.
473+
474+
- Add ``GitHub#license`` to retrieve a ``github3.license.License`` by the
475+
license name.
476+
477+
- Add ``GitHub#licenses`` to iterate over all the licenses returned by
478+
GitHub's Licenses API.
479+
480+
- Add protection information to ``github3.repos.branch.Branch``.
481+
482+
- Add ``Branch#protect`` and ``Branch#unprotect`` to support updating a
483+
Branch's protection status.
484+
485+
- Vastly improved GitHub Enterprise support:
486+
487+
- Add ``User#rename`` to rename a user in a GitHub Enterprise installation.
488+
489+
- Add ``GitHub#create_user`` to create a user.
490+
491+
- Add ``User#impersonate`` to create an impersonation token by an admin for
492+
a particular user.
493+
494+
- Add ``User#revoke_impersonation`` to revoke all impersonation tokens for a
495+
user.
496+
497+
- Add ``User#promote`` to promote a particular user to a site administrator.
498+
499+
- Add ``User#demote`` to demote a site administrator to a simple user.
500+
501+
- Add ``User#suspend`` to suspend a user's account.
502+
503+
- Add ``User#unsuspend`` to reinstate a user's account.
504+
505+
- Add ``original_content`` attribute to a ``GistFile``
506+
507+
- Add ``GistFile#content`` to retrieve the contents of a file in a gist from
508+
the API.
509+
510+
- Add support for the alpha `bulk issue import API`_
511+
512+
- You can now download a file in a pull request to a file on disk.
513+
514+
- You can retrieve the contents of the file in a pull request as bytes.
515+
516+
- Add ``id`` attribute to ``github3.repos.milestone.Milestone``.
517+
518+
- Add support for sort, direction, and since parameters to the ``comments``
519+
method on ``github3.issues.Issue``.
520+
521+
- Add branch argument to update and delete methods on
522+
``github3.repos.contents.Contents``.
523+
524+
- Add ``permissions`` attribute to ``github3.repos.repo.Repository`` object to
525+
retrieve the permissions for a specific repository.
526+
527+
- Allow a deployment to be retrieved by its id.
528+
529+
- Add the ``delete`` method to the ``github3.repos.release.Asset`` class.
530+
531+
.. _bulk issue import API:
532+
https://gist.github.com/jonmagic/5282384165e0f86ef105
533+
534+
Bugs Fixed
535+
``````````
536+
537+
- Fix the dependencies and requirements. In 1.0.0a3 we moved to using the
538+
``setup.cfg`` file to define optional dependencies for wheels. By doing
539+
so we accidentally left out our actual hard dependencies.
540+
541+
- The ``context`` parameter to ``Repository#create_status`` now properly
542+
defaults to ``"default"``.
543+
544+
- Fix AttributeError when ``IssueEvent`` has assignee.
545+
+
- Correctly set the ``message`` attribute on ``RepoCommit`` instances.
547+
548+
- Include ``browser_download_url`` on ``Asset`` instances.
549+
550+
- (Packaging related) Fix ``setup.py`` to use proper values for certain
551+
parameters.
552+
553+
- Fix ``ValueError`` for ``Repository#create_file``.
554+
555+
- Pull request files can now be downloaded even when the repository is
556+
private.
557+
558+
- Fix exception when merging a pull request with an empty commit message.
559+
560+
- Add missing Issue events.
561+
562+
- Coerce review comment positions to integers.
563+
564+
Deprecations and Other Changes
565+
``````````````````````````````
566+
567+
- Deprecate ``Organization#events`` in favor of ``Organization#public_events``.
568+
569+
- Fix test failtures on windows caused by unclosed file handles.
570+
get a combined view of commit statuses for a given ref.
571+
572+
- The ``refresh`` method will eventually stop updating the instance in place
573+
and instead only return new instances of objects.

0 commit comments

Comments
 (0)
0