Skip to content

Commit 7c711d9

Browse files
authored
Merge branch 'master' into anurag-patch
2 parents a29c161 + 7f2a456 commit 7c711d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+297
-232
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TODo...
1616
1.
1717
1.
1818

19-
# Specifications
19+
## Specifications
2020

2121
- Python version (`python --version`)
2222
- OS (Mac/Linux/Windows)

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Fetch and Diff PR with base from which it was cloned
2121
if: ${{ github.event.pull_request.base.sha }}
2222
run: |
23-
git fetch origin main "${{ github.event.pull_request.base.sha }}"
23+
git fetch origin master "${{ github.event.pull_request.base.sha }}"
2424
git diff --diff-filter=ACM --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}" > "${HOME}/changed_files.txt"
2525
- name: Set up Python ${{ matrix.python-version }}
2626
uses: actions/setup-python@v2

.github/workflows/lint.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,25 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
name: Lint
15-
16-
on: [push, pull_request]
17-
15+
on:
16+
push:
17+
branches:
18+
- master
19+
pull_request:
20+
branches:
21+
- master
1822
jobs:
1923
lint:
24+
concurrency:
25+
group: ${{ github.head_ref || github.ref }}
26+
cancel-in-progress: true
2027
runs-on: ubuntu-20.04
2128
steps:
22-
- uses: actions/checkout@v2.3.4
29+
- uses: actions/checkout@v2.4.0
2330
- uses: github/super-linter/[email protected]
2431
env:
2532
ERROR_ON_MISSING_EXEC_BIT: true
2633
VALIDATE_JSCPD: false
2734
VALIDATE_PYTHON_BLACK: false
2835
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' }}
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ have to jump a couple of legal hurdles.
88
Please fill out either the individual or corporate Contributor License Agreement
99
(CLA).
1010

11-
* If you are an individual writing original source code and you're sure you
12-
own the intellectual property, then you'll need to sign an
13-
[individual CLA](https://developers.google.com/open-source/cla/individual).
14-
* If you work for a company that wants to allow you to contribute your work,
11+
* If you are an individual writing original source code and you're sure you
12+
own the intellectual property, then you'll need to sign an
13+
[individual CLA](https://developers.google.com/open-source/cla/individual).
14+
* If you work for a company that wants to allow you to contribute your work,
1515
then you'll need to sign a
1616
[corporate CLA](https://developers.google.com/open-source/cla/corporate).
1717

@@ -21,10 +21,10 @@ accept your pull requests.
2121

2222
## Contributing A Patch
2323

24-
1. Submit an issue describing your proposed change to the repo in question.
25-
1. The repo owner will respond to your issue promptly.
24+
1. Submit an issue describing your proposed change to the repository in question.
25+
1. The repository owner will respond to your issue promptly.
2626
1. If your proposed change is accepted, and you haven't already done so, sign a Contributor License Agreement (see details above).
27-
1. Fork the desired repo, develop and test your code changes.
27+
1. Fork the desired repository, develop and test your code changes.
2828
1. Ensure that your code adheres to the existing style in the sample to which you are contributing.
2929
1. Ensure that your code has an appropriate set of unit tests which all pass.
3030
1. Submit a pull request!

admin_sdk/directory/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Directory API.
77

88
## Install
99

10-
```
10+
```shell
1111
pip install -r requirements.txt
1212
```
1313

1414
## Run
1515

16-
```
16+
```shell
1717
python quickstart.py
1818
```

admin_sdk/directory/quickstart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
# [START admin_sdk_directory_quickstart]
1616
from __future__ import print_function
17+
1718
import os.path
18-
from googleapiclient.discovery import build
19-
from google_auth_oauthlib.flow import InstalledAppFlow
19+
2020
from google.auth.transport.requests import Request
2121
from google.oauth2.credentials import Credentials
22+
from google_auth_oauthlib.flow import InstalledAppFlow
23+
from googleapiclient.discovery import build
2224

2325
# If modifying these scopes, delete the file token.json.
2426
SCOPES = ['https://www.googleapis.com/auth/admin.directory.user']

admin_sdk/reports/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ that makes requests to the Google Admin SDK Reports API.
77

88
## Install
99

10-
```
10+
```shell
1111
pip install -r requirements.txt
1212
```
1313

1414
## Run
1515

16-
```
16+
```shell
1717
python quickstart.py
1818
```

admin_sdk/reports/quickstart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
# [START admin_sdk_reports_quickstart]
1616
from __future__ import print_function
17+
1718
import os.path
18-
from googleapiclient.discovery import build
19-
from google_auth_oauthlib.flow import InstalledAppFlow
19+
2020
from google.auth.transport.requests import Request
2121
from google.oauth2.credentials import Credentials
22+
from google_auth_oauthlib.flow import InstalledAppFlow
23+
from googleapiclient.discovery import build
2224

2325
# If modifying these scopes, delete the file token.json.
2426
SCOPES = ['https://www.googleapis.com/auth/admin.reports.audit.readonly']

admin_sdk/reseller/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ that makes requests to the Google Admin SDK Reseller API.
77

88
## Install
99

10-
```
10+
```shell
1111
pip install -r requirements.txt
1212
```
1313

1414
## Run
1515

16-
```
16+
```shell
1717
python quickstart.py
1818
```

admin_sdk/reseller/quickstart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
# [START admin_sdk_reseller_quickstart]
1616
from __future__ import print_function
17+
1718
import os.path
18-
from googleapiclient.discovery import build
19-
from google_auth_oauthlib.flow import InstalledAppFlow
19+
2020
from google.auth.transport.requests import Request
2121
from google.oauth2.credentials import Credentials
22+
from google_auth_oauthlib.flow import InstalledAppFlow
23+
from googleapiclient.discovery import build
2224

2325
# If modifying these scopes, delete the file token.json.
2426
SCOPES = ['https://www.googleapis.com/auth/apps.order']

0 commit comments

Comments
 (0)