Skip to content

Commit e3ae577

Browse files
authored
fix: add github api failed response (#72)
1 parent bbfa423 commit e3ae577

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

github_actions/action/run.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def get_pr_commit_messages(event: GitHubEvent) -> Iterable[str]:
8787
)
8888

8989
if status != 200:
90-
sys.exit(f"::error::Github API failed with status code {status}")
90+
sys.exit(
91+
f"::error::Github API failed with status code {status}. Response: {data}"
92+
)
9193

9294
commits.extend(commit_data["commit"]["message"] for commit_data in data)
9395

0 commit comments

Comments
 (0)