Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues reported by codacy #3

Merged
merged 4 commits into from
Mar 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.6.10-alpine3.10

RUN pip3 install pygithub
RUN pip3 install pygithub==1.47

COPY verify_pr_lables.py /verify_pr_lables.py

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ Instead, consider the same example, the action is triggered by `pull_request`'s

## Inputs

### `github-token`:
### `github-token`

**Required** The GitHub token.

### `valid-labels`:
### `valid-labels`

**Required** A list of valid labels. It must be a quoted string, with label separated by colons. For example: `'bug, enhancement'`

## Example usage

In your workflow YAML file add this step:
```
```yaml
uses: actions/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
valid-labels: 'bug, enhancement'
```

and trigger it with:
```
```yaml
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
Expand Down
1 change: 1 addition & 0 deletions verify_pr_lables.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

def get_env_var(env_var_name, echo_value=False):
"""Try to get the value from a environmental variable.

If the values is 'None', then a ValueError exception will
be thrown.

Expand Down