Skip to content

Commit

Permalink
Update pytest_mergify/resources/github_actions.py
Browse files Browse the repository at this point in the history
Co-authored-by: Greesb <[email protected]>
  • Loading branch information
jd and Greesb committed Jan 21, 2025
1 parent 1bf2d80 commit 397c1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_mergify/resources/github_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class GitHubActionsResourceDetector(ResourceDetector):
@staticmethod
def get_github_actions_head_sha() -> str | None:
if os.getenv("GITHUB_EVENT_NAME") == "pull_request":
# NOTE(leo): we want the head sha of pull request
# NOTE: we want the head sha of the pull request
event_raw_path = os.getenv("GITHUB_EVENT_PATH")
if event_raw_path and (
(event_path := pathlib.Path(event_raw_path)).is_file()
Expand Down

0 comments on commit 397c1f2

Please sign in to comment.