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

Add community message for adding contributor to contributors.json #35430

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions .github/github_workflow_scripts/handle_external_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,14 +572,14 @@ def main():
ver = get_pack_metadata(pr_files[0]).get('currentVersion')
print(f'version is: {ver}')
if pr.user.login == MARKETPLACE_CONTRIBUTION_PR_AUTHOR:
contributors_body = 'Thanks for contributing to a Cortex XSOAR supported pack. To receive credit for your generous' \
contributors_body = 'Thanks for contributing to the XSOAR marketplace. To receive credit for your generous' \
' contribution, please ask the reviewer to update your information in the pack contributors file.' \
' See more information here [link](https://xsoar.pan.dev/docs/packs/packs-format#contributorsjson)'
else:
contributors_body = f'Hi @{pr.user.login}, thanks for contributing to a Cortex XSOAR supported pack. To receive ' \
contributors_body = f'Hi @{pr.user.login}, thanks for contributing to the XSOAR marketplace. To receive ' \
f'credit for your generous contribution please follow this [link]' \
f'(https://xsoar.pan.dev/docs/packs/packs-format#contributorsjson).'
if XSOAR_SUPPORT_LEVEL_LABEL in labels_to_add and ver != '1.0.0':
if XSOAR_SUPPORT_LEVEL_LABEL or COMMUNITY_SUPPORT_LEVEL_LABEL in labels_to_add and ver != '1.0.0':
pr.create_issue_comment(contributors_body)


Expand Down
Loading