Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Dec 9, 2023
1 parent 62f7721 commit e8d4247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion megalinter/reporters/GithubCommentReporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def comment_marker(self):
jobid = os.getenv("GITHUB_JOB")
workflow = workflow and f"workflow={workflow!r}"
jobid = jobid and f"jobid={jobid!r}"
workspace = get_workspace_marker(self)
workspace = get_workspace_marker(self.master.request_id)
identifier = " ".join(
["github-comment-reporter", *filter(None, (workflow, jobid, workspace))]
)
Expand Down
4 changes: 2 additions & 2 deletions megalinter/utils_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ def get_linter_infos(linter):
linter_infos["iconPngUrl"] = linter.linter_icon_png_url
return linter_infos

def get_workspace_marker(reporter_self):
def get_workspace_marker(request_id):
github_workspace = os.getenv("GITHUB_WORKSPACE")
workspace = config.get(reporter_self.master.request_id, "DEFAULT_WORKSPACE", github_workspace)
workspace = config.get(request_id, "DEFAULT_WORKSPACE", github_workspace)
if github_workspace is None or workspace == github_workspace:
workspace = None
workspace = workspace and f"workspace={workspace!r}"
Expand Down

0 comments on commit e8d4247

Please sign in to comment.