contentctl 4.4.0__py3-none-any.whl → 4.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,9 +114,11 @@ class ReleaseNotes:
114
114
  #If a branch name is supplied, compare against develop
115
115
  if config.latest_branch not in repo.branches:
116
116
  raise ValueError(f"latest branch {config.latest_branch} does not exist in the repository. Make sure your branch name is correct")
117
- compare_against = "develop"
117
+ if config.compare_against not in repo.branches:
118
+ raise ValueError(f"compare_against branch {config.compare_against} does not exist in the repository. Make sure your branch name is correct")
119
+
118
120
  commit1 = repo.commit(config.latest_branch)
119
- commit2 = repo.commit(compare_against)
121
+ commit2 = repo.commit(config.compare_against)
120
122
  diff_index = commit2.diff(commit1)
121
123
 
122
124
  modified_files:List[pathlib.Path] = []
@@ -189,7 +191,7 @@ class ReleaseNotes:
189
191
 
190
192
  if config.latest_branch:
191
193
  print(f"Generating release notes - \033[92m{config.latest_branch}\033[0m")
192
- print(f"Compared against - \033[92m{compare_against}\033[0m")
194
+ print(f"Compared against - \033[92m{config.compare_against}\033[0m")
193
195
  print("\n## Release notes for ESCU " + config.latest_branch)
194
196
 
195
197
  notes = [self.create_notes(config.path, stories_added, header="New Analytic Story"),
@@ -965,8 +965,9 @@ class release_notes(Config_Base):
965
965
  "second newest tag at runtime.")
966
966
  new_tag:Optional[str] = Field(None, description="Name of the tag containing new content. If it is not supplied,"
967
967
  " then it will be inferred as the newest tag at runtime.")
968
- latest_branch:Optional[str] = Field(None, description="Branch for which we are generating release notes")
969
-
968
+ latest_branch:Optional[str] = Field(None, description="Branch name for which we are generating release notes for")
969
+ compare_against:Optional[str] = Field(default="develop", description="Branch name for which we are comparing the files changes against")
970
+
970
971
  def releaseNotesFilename(self, filename:str)->pathlib.Path:
971
972
  #Assume that notes are written to dist/. This does not respect build_dir since that is
972
973
  #only a member of build
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: contentctl
3
- Version: 4.4.0
3
+ Version: 4.4.1
4
4
  Summary: Splunk Content Control Tool
5
5
  License: Apache 2.0
6
6
  Author: STRT
@@ -17,7 +17,7 @@ contentctl/actions/initialize.py,sha256=wEO3u8vJYP8Xh2OSJ_HxfMV6mqOdkPyWbUzNGEqM
17
17
  contentctl/actions/initialize_old.py,sha256=0qXbW_fNDvkcnEeL6Zpte8d-hpTu1REyzHsXOCY-YB8,9333
18
18
  contentctl/actions/inspect.py,sha256=dXV020g_GwwspSgiS6jQxW0JEVr_nublJBevwZ79mZo,17424
19
19
  contentctl/actions/new_content.py,sha256=Mz70StFt0bbuUYUHzQ1NINAbPqPsM4deUdlxgQ5S7-k,6481
20
- contentctl/actions/release_notes.py,sha256=akkFfLhsJuaPUyjsb6dLlKt9cUM-JApAjTFQMbYoXeM,13115
20
+ contentctl/actions/release_notes.py,sha256=0K7zHQyVHVYK_whiv4PvxOKS4_0s1Ya_RDCrrcT3FW4,13319
21
21
  contentctl/actions/reporting.py,sha256=MJEmvmoA1WnSFZEU9QM6daL_W94oOX0WXAcX1qAM2As,1583
22
22
  contentctl/actions/test.py,sha256=jv12UO_PTjZwvo4G-Dr8fE2gsuWvuvAmO2QQM4q7TL0,5917
23
23
  contentctl/actions/validate.py,sha256=eVxXf67b65ywe4yXYqaTXJShvqbzG9vd6jlkq-YVzy8,5538
@@ -42,7 +42,7 @@ contentctl/objects/base_test.py,sha256=qUtKQJrqCto_fwCBdiH68_tXqokhcv9ceu2fQlBxs
42
42
  contentctl/objects/base_test_result.py,sha256=pr-rwr80bJej8hHNhiVBvw49FZmRuPfOIChLJjY22lY,5205
43
43
  contentctl/objects/baseline.py,sha256=cnJQt1z-PQDH6mbDU-eqo-l41LSWsaKmqU0IxuJWnGk,2139
44
44
  contentctl/objects/baseline_tags.py,sha256=fyfH2KZqUhPGCwfverYw2_ZGXQIjgkT3P7hiYDPnN4Y,1599
45
- contentctl/objects/config.py,sha256=Y_l7A_Ku0TEtMmWBT3-Pdu_Vo1zUGvJPkqw1RoVYPLI,50328
45
+ contentctl/objects/config.py,sha256=XYkDRHeULwCzOfYKnj8xsLcHrZ_HdUlR-XsO0mupXGo,50474
46
46
  contentctl/objects/constants.py,sha256=scKaQlubfjkW5n2AztY5zneAgjVLXbnyK0ZBALxPUV8,5529
47
47
  contentctl/objects/correlation_search.py,sha256=_BlHgLmmY5OdrV3f301radrH1cE2Gpr1GqVTmCxWP44,46272
48
48
  contentctl/objects/dashboard.py,sha256=GKb_YqZMSP98Y97AlKffJrtVUufZzJag-zdmqRePLZ4,4114
@@ -167,8 +167,8 @@ contentctl/templates/detections/web/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
167
167
  contentctl/templates/macros/security_content_ctime.yml,sha256=Gg1YNllHVsX_YB716H1SJLWzxXZEfuJlnsgB2fuyoHU,159
168
168
  contentctl/templates/macros/security_content_summariesonly.yml,sha256=9BYUxAl2E4Nwh8K19F3AJS8Ka7ceO6ZDBjFiO3l3LY0,162
169
169
  contentctl/templates/stories/cobalt_strike.yml,sha256=rlaXxMN-5k8LnKBLPafBoksyMtlmsPMHPJOjTiMiZ-M,3063
170
- contentctl-4.4.0.dist-info/LICENSE.md,sha256=hQWUayRk-pAiOZbZnuy8djmoZkjKBx8MrCFpW-JiOgo,11344
171
- contentctl-4.4.0.dist-info/METADATA,sha256=t549QwVJvw3Mh33Z1UlOWrdGfWdbSqU9KWkhSdvmIiw,21536
172
- contentctl-4.4.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
173
- contentctl-4.4.0.dist-info/entry_points.txt,sha256=5bjZ2NkbQfSwK47uOnA77yCtjgXhvgxnmCQiynRF_-U,57
174
- contentctl-4.4.0.dist-info/RECORD,,
170
+ contentctl-4.4.1.dist-info/LICENSE.md,sha256=hQWUayRk-pAiOZbZnuy8djmoZkjKBx8MrCFpW-JiOgo,11344
171
+ contentctl-4.4.1.dist-info/METADATA,sha256=zVFQfn81KezVcmp4T2cbTvaX3Abvvtp-qnp5p3NWpAo,21536
172
+ contentctl-4.4.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
173
+ contentctl-4.4.1.dist-info/entry_points.txt,sha256=5bjZ2NkbQfSwK47uOnA77yCtjgXhvgxnmCQiynRF_-U,57
174
+ contentctl-4.4.1.dist-info/RECORD,,