Skip to content

Commit

Permalink
[prepare-content] Fix issue with the description of Developer support (
Browse files Browse the repository at this point in the history
…#4151)

* [prepare-content] Fix issue with the description of Developer support

* Add changelog

* Update .changelog/4151.yml

Co-authored-by: Guy Afik <53861351+GuyAfik@users.noreply.github.com>

---------

Co-authored-by: Guy Afik <53861351+GuyAfik@users.noreply.github.com>
  • Loading branch information
mmhw and GuyAfik committed Mar 21, 2024
1 parent e4b990e commit 0539bcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .changelog/4151.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changes:
- description: Fixed an issue where **prepare-content** command didn't add contribution section to description files when support level of pack-metadata was `developer` support.
type: fix
pr_number: 4151
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
COMMUNITY_SUPPORT,
CONTRIBUTORS_LIST,
DEFAULT_IMAGE_PREFIX,
DEVELOPER_SUPPORT,
PARTNER_SUPPORT,
SUPPORT_LEVEL_HEADER,
TYPE_TO_EXTENSION,
Expand Down Expand Up @@ -617,7 +618,7 @@ def add_contributors_support(

if contributor_type == COMMUNITY_SUPPORT:
contributor_description = CONTRIBUTOR_COMMUNITY_DETAILED_DESC.format(author)
elif contributor_type == PARTNER_SUPPORT:
elif contributor_type in (PARTNER_SUPPORT, DEVELOPER_SUPPORT):
contributor_description = CONTRIBUTOR_DETAILED_DESC.format(
contributor_type.capitalize(), author
)
Expand Down

0 comments on commit 0539bcc

Please sign in to comment.