File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,5 @@ inputs:
2727runs :
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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments