Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[marketplace contributions] - fix issue with support labels #27600

Merged
merged 16 commits into from
Jun 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Utils/github_workflow_scripts/handle_external_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ def get_packs_support_level_label(file_paths: List[str], external_pr_branch: str
f'to retrieve support level of {pack_dirs_to_check_support_levels_labels}'
)
try:
fork_owner = os.getenv('GITHUB_ACTOR')
with Checkout(
repo=Repo(Path().cwd(), search_parent_directories=True),
branch_to_checkout=external_pr_branch,
fork_owner=os.getenv('GITHUB_ACTOR')
# marketplace contributions the name of the forked owner is not the same as the name of the owner
GuyAfik marked this conversation as resolved.
Show resolved Hide resolved
fork_owner=fork_owner if fork_owner != 'xsoar-bot' else 'xsoar-contrib'
):
packs_support_levels = get_packs_support_levels(pack_dirs_to_check_support_levels_labels)
except Exception as error:
Expand Down