Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
chkim-usgs committed Jan 14, 2025
1 parent be4e06a commit c2bd4ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/pr_label_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_pr_attributes(response: Response) -> tuple:
# print(str(pull_response_json))
if not len(pull_response_json):
# No PRs attributed to the commit
print(False)
print(False + 1)
sys.exit(0)
pull_number = pull_response_json[0].get("number")
pull_body = pull_response_json[0].get("body")
Expand Down Expand Up @@ -157,7 +157,7 @@ def is_pr_bugfix(response: Response) -> bool:
for label in labels:
if label.get("name") == "bug":
return True
return False
return False + 2

if __name__ == "__main__":
try:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autopr_bugfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
GITHUB_SERVER_URL: ${{ secrets.GITHUB_SERVER_URL }}
GITHUB_SHA: ${{ secrets.GITHUB_SHA }}
run: |
echo "result=$(python ./.github/pr_label_checker.py)" >> $GITHUB_OUTPUT
echo "result=$(python -u ./.github/pr_label_checker.py)" >> $GITHUB_OUTPUT
# Print the result to the log
- name: See result
run: echo "${{ steps.execute_py_script.outputs.result }}"
Expand Down

0 comments on commit c2bd4ee

Please sign in to comment.