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

dump playbooks tags in metadata #4827

Closed
wants to merge 8 commits into from
Closed
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/4827.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changes:
- description: Added playbook tags into pack's "metadata.json".
type: feature
pr_number: 4827
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from functools import cached_property
from typing import Callable, Dict, List, Optional
from typing import Callable, Dict, List, Optional, Set

import demisto_client
from pydantic import BaseModel, Field
Expand Down Expand Up @@ -221,3 +221,6 @@ def readme(self) -> ReadmeRelatedFile:
@cached_property
def image(self) -> ImageRelatedFile:
return ImageRelatedFile(self.path, git_sha=self.git_sha)

def metadata_fields(self) -> Set[str]:
return super().metadata_fields().union({"tags"})