Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions .changelog/5186.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changes:
- description: Added the missing release note headers for the *AgentixAction* and the *AgentixAgent* content types.
type: fix
pr_number: 5186
8 changes: 8 additions & 0 deletions demisto_sdk/commands/content_graph/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ def as_rn_header(self) -> str:
return "Modules"
elif self == ContentType.CASE_LAYOUT:
return "Layouts"
elif self == ContentType.AGENTIX_ACTION:
return "Actions"
elif self == ContentType.AGENTIX_AGENT:
return "Agents"
separated_str = pascalToSpace(self)
return f"{separated_str}s"

Expand All @@ -330,6 +334,10 @@ def convert_header_to_content_type(header: str) -> "ContentType":
return ContentType.GENERIC_TYPE
elif header == "Object Fields":
return ContentType.GENERIC_FIELD
elif header == "Actions":
return ContentType.AGENTIX_ACTION
elif header == "Agents":
return ContentType.AGENTIX_AGENT
normalized_header = header.rstrip("s").replace(" ", "_").upper()
return ContentType[normalized_header]

Expand Down