Skip to content

Commit f614b62

Browse files
chore: update GitHub branch references to use HEAD (#143)
1 parent 40e9458 commit f614b62

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Nathan Seebarran](https://github.com/nathan78906)!
113113
## [3.0.0] - 2017-08-11
114114
### BREAKING CHANGE
115115
- The breaking change actually happened in [version 2.3.0](https://github.com/sendgrid/python-http-client/releases/tag/v2.3.0), which I mistakenly applied a minor version bump.
116-
- This version replaces error handling via HTTPError from urllib in favor of custom error handling via the [HTTPError class](https://github.com/sendgrid/python-http-client/blob/master/python_http_client/exceptions.py).
116+
- This version replaces error handling via HTTPError from urllib in favor of custom error handling via the [HTTPError class](python_http_client/exceptions.py).
117117

118118
## [2.4.0] - 2017-07-03
119119
### Added

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ cd python-http-client
7878

7979
##### Execute: #####
8080

81-
See the [examples folder](https://github.com/sendgrid/python-http-client/tree/master/examples) to get started quickly.
81+
See the [examples folder](examples) to get started quickly.
8282

8383
<a name="understanding-the-codebase"></a>
8484
## Understanding the Code Base
@@ -93,11 +93,11 @@ Unit and profiling tests.
9393

9494
**/python_http_client/client.py**
9595

96-
An HTTP client with a fluent interface using method chaining and reflection. By returning self on [__getattr__](https://github.com/sendgrid/python-http-client/blob/master/client.py#L74) and [_()](https://github.com/sendgrid/python-http-client/blob/master/client.py#L70), we can dynamically build the URL using method chaining and [__getattr__](https://github.com/sendgrid/python-http-client/blob/master/client.py#L74) allows us to dynamically receive the method calls to achieve reflection.
96+
An HTTP client with a fluent interface using method chaining and reflection. By returning self on [__getattr__](python_http_client/client.py#L198), we can dynamically build the URL using method chaining and [__getattr__](python_http_client/client.py#L198) allows us to dynamically receive the method calls to achieve reflection.
9797

9898
This allows for the following mapping from a URL to a method chain:
9999

100-
`/api_client/{api_key_id}/version` maps to `client.api_client._(api_key_id).version.<method>()` where <method> is a [HTTP verb](https://github.com/sendgrid/python-http-client/blob/master/client.py#L24).
100+
`/api_client/{api_key_id}/version` maps to `client.api_client._(api_key_id).version.<method>()` where <method> is a [HTTP verb](python_http_client/client.py#L69).
101101

102102
**/python_http_client/config.py**
103103

@@ -108,9 +108,9 @@ Loads the environment variables, if applicable.
108108

109109
All PRs require passing tests before the PR will be reviewed.
110110

111-
All test files are in the [`tests`](https://github.com/sendgrid/python-http-client/tree/master/tests) directory.
111+
All test files are in the [`tests`](tests) directory.
112112

113-
For the purposes of contributing to this repo, please update the [`test_unit.py`](https://github.com/sendgrid/python-http-client/blob/master/test/test_unit.py) file with unit tests as you modify the code.
113+
For the purposes of contributing to this repo, please update the [`test_unit.py`](tests/test_unit.py) file with unit tests as you modify the code.
114114

115115
```bash
116116
python -m unittest discover -v

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM ubuntu:xenial
22
ENV PYTHON_VERSIONS='python2.7 python3.4 python3.5 python3.6 python3.7' \
3-
OAI_SPEC_URL="https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json"
3+
OAI_SPEC_URL="https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/oai_stoplight.json"
44

55
# install testing versions of python, including old versions, from deadsnakes
66
RUN set -x \
@@ -17,7 +17,7 @@ RUN set -x \
1717
WORKDIR /root
1818

1919
# install Prism
20-
ADD https://raw.githubusercontent.com/stoplightio/prism/master/install.sh install.sh
20+
ADD https://raw.githubusercontent.com/stoplightio/prism/HEAD/install.sh install.sh
2121
RUN chmod +x ./install.sh && \
2222
./install.sh && \
2323
rm ./install.sh

README.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. image:: https://github.com/sendgrid/sendgrid-python/raw/master/twilio_sendgrid_logo.png
1+
.. image:: https://github.com/sendgrid/sendgrid-python/raw/HEAD/twilio_sendgrid_logo.png
22
:target: https://www.sendgrid.com
33

44
|Build Status| |Email Notifications Badge| |Twitter Follow| |Codecov branch| |Code Climate| |Python Versions| |PyPI Version| |GitHub contributors| |MIT licensed|
@@ -151,27 +151,27 @@ License
151151
`The MIT License (MIT)`_
152152

153153
.. _this repo: https://github.com/sendgrid/sendgrid-python
154-
.. _Example Code: https://github.com/sendgrid/python-http-client/tree/master/examples
154+
.. _Example Code: https://github.com/sendgrid/python-http-client/tree/HEAD/examples
155155
.. _milestones: https://github.com/sendgrid/python-http-client/milestones
156-
.. _CONTRIBUTING: https://github.com/sendgrid/python-http-client/blob/master/CONTRIBUTING.md
157-
.. _Feature Request: https://github.com/sendgrid/python-http-client/blob/master/CONTRIBUTING.md#feature-request
158-
.. _Bug Reports: https://github.com/sendgrid/python-http-client/blob/master/CONTRIBUTING.md#submit-a-bug-report
159-
.. _Improvements to the Codebase: https://github.com/sendgrid/python-http-client/blob/master/CONTRIBUTING.md#improvements-to-the-codebase
160-
.. _Review Pull Requests: https://github.com/sendgrid/python-http-client/blob/master/CONTRIBUTING.md#code-reviews
161-
.. _troubleshooting guide: https://github.com/sendgrid/python-http-client/blob/master/TROUBLESHOOTING.md
162-
.. _CHANGELOG: https://github.com/sendgrid/python-http-client/blob/master/CHANGELOG.md
156+
.. _CONTRIBUTING: https://github.com/sendgrid/python-http-client/blob/HEAD/CONTRIBUTING.md
157+
.. _Feature Request: https://github.com/sendgrid/python-http-client/blob/HEAD/CONTRIBUTING.md#feature-request
158+
.. _Bug Reports: https://github.com/sendgrid/python-http-client/blob/HEAD/CONTRIBUTING.md#submit-a-bug-report
159+
.. _Improvements to the Codebase: https://github.com/sendgrid/python-http-client/blob/HEAD/CONTRIBUTING.md#improvements-to-the-codebase
160+
.. _Review Pull Requests: https://github.com/sendgrid/python-http-client/blob/HEAD/CONTRIBUTING.md#code-reviews
161+
.. _troubleshooting guide: https://github.com/sendgrid/python-http-client/blob/HEAD/TROUBLESHOOTING.md
162+
.. _CHANGELOG: https://github.com/sendgrid/python-http-client/blob/HEAD/CHANGELOG.md
163163
.. _birdy: https://github.com/inueni/birdy
164164
.. _universalclient: https://github.com/dgreisen/universalclient
165-
.. _The MIT License (MIT): https://github.com/sendgrid/python-http-client/blob/master/LICENSE.md
165+
.. _The MIT License (MIT): https://github.com/sendgrid/python-http-client/blob/HEAD/LICENSE.md
166166
.. _this is an incredible opportunity to join our #DX team: https://sendgrid.com/careers/role/1421152/?gh_jid=1421152
167167

168-
.. |Build Status| image:: https://travis-ci.org/sendgrid/python-http-client.svg?branch=master
168+
.. |Build Status| image:: https://travis-ci.org/sendgrid/python-http-client.svg?branch=main
169169
:target: https://travis-ci.org/sendgrid/python-http-client
170170
.. |Email Notifications Badge| image:: https://dx.sendgrid.com/badge/python
171171
:target: https://dx.sendgrid.com/newsletter/python
172172
.. |Twitter Follow| image:: https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow
173173
:target: https://twitter.com/sendgrid
174-
.. |Codecov branch| image:: https://img.shields.io/codecov/c/github/sendgrid/python-http-client/master.svg?style=flat-square&label=Codecov+Coverage
174+
.. |Codecov branch| image:: https://img.shields.io/codecov/c/github/sendgrid/python-http-client/main.svg?style=flat-square&label=Codecov+Coverage
175175
:target: https://codecov.io/gh/sendgrid/python-http-client
176176
.. |Code Climate| image:: https://codeclimate.com/github/sendgrid/python-http-client/badges/gpa.svg
177177
:target: https://codeclimate.com/github/sendgrid/python-http-client
@@ -182,4 +182,4 @@ License
182182
.. |GitHub contributors| image:: https://img.shields.io/github/contributors/sendgrid/python-http-client.svg
183183
:target: https://github.com/sendgrid/python-http-client/graphs/contributors
184184
.. |MIT licensed| image:: https://img.shields.io/badge/license-MIT-blue.svg
185-
:target: https://github.com/sendgrid/python-http-client/blob/master/LICENSE.md
185+
:target: https://github.com/sendgrid/python-http-client/blob/HEAD/LICENSE.md

first-timers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ To make a pull request, follow these steps:
3333
feature to tidy up your commits before making them public. Probably you will also have to create tests (if needed) or create or update the example code that demonstrates the functionality of this change to the code.
3434
6. __Locally merge (or rebase)__ the upstream development branch into your topic branch:
3535
```
36-
git pull [--rebase] upstream master
36+
git pull [--rebase] upstream main
3737
```
3838

3939
7. __Push__ your topic branch up to your fork:
4040
```
4141
git push origin <topic-branch-name>
4242
```
4343
8. __[Open a Pull Request](https://help.github.com/articles/creating-a-pull-request/#changing-the-branch-range-and-destination-repository/)__
44-
with a clear title and description against the `master` branch. All tests must be passing before we will review the PR.
44+
with a clear title and description against the `main` branch. All tests must be passing before we will review the PR.
4545
### Important notice
4646
Before creating a pull request, make sure that you respect the repository's constraints regarding contributions. You can find them in the [CONTRIBUTING.md](./CONTRIBUTING.md) file.
4747
## Repositories with Open, Easy, Help Wanted, Issue Filters

twilio_sendgrid_logo.png

14.3 KB
Loading

0 commit comments

Comments
 (0)