Skip to content

Commit 448ea03

Browse files
committed
forgot to remove debug statement and unused dependencies
1 parent 9ef48b8 commit 448ea03

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@ inputs:
2727
runs:
2828
using: "composite"
2929
steps:
30-
- run: python3 -m pip install PyGithub
31-
shell: bash
3230
- run: python3 ${{ github.action_path }}/main.py "${{ inputs.pattern }}" "${{ inputs.check_commit_title }}" "${{ inputs.check_commit_body }}" "${{ inputs.check_commit_message }}" "${{ inputs.check_all_commits }}" "${{ inputs.github_token }}"
3331
shell: bash

main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ def get_github_commits_from_api(pull_request_json):
140140
pull_request_json = get_pull_request_json()
141141

142142
if check_all_commits:
143-
print("Fetching all commits with the Github REST API")
144-
145143
# Get a json list of commmits, they dont contain title/body, so we need to parse that ourself
146144
github_api_commits = get_github_commits_from_api(pull_request_json)
147145

@@ -156,7 +154,7 @@ def get_github_commits_from_api(pull_request_json):
156154
valid_pull_request = False
157155

158156
if check_commit_message:
159-
if not check_valid_title_from_api(commit):
157+
if not check_valid_message_from_api(commit):
160158
valid_pull_request = False
161159
else:
162160
# We can rely on just the pull request json without having to use PyGithub

0 commit comments

Comments
 (0)