Skip to content

Commit 144b1b2

Browse files
committed
🚀 releasing version 2.2.1 @ 2021-08-10 17:05
[skip ci]
1 parent 56551d8 commit 144b1b2

File tree

7 files changed

+32
-13
lines changed

7 files changed

+32
-13
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ This project was forked from version 1.7.4 of [mbed-tools-ci-scripts](https://gi
1313

1414
[//]: # (begin_release_notes)
1515

16+
"2.2.1" (2021-08-10)
17+
====================
18+
19+
Bugfixes
20+
--------
21+
22+
- Fixed news file type bug (#202108101200)
23+
24+
1625
"2.2.0" (2021-08-10)
1726
====================
1827

continuous_delivery_scripts/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
1111
This file is autogenerated, do not modify by hand.
1212
"""
13-
__version__ = "2.2.0"
14-
COMMIT = "c40601694f6867d2215d8d5d10bd482117938aa9"
13+
__version__ = "2.2.1"
14+
COMMIT = "56551d8dab891793efe2386e266a437e647a2e6e"
1515
MAJOR = 2
1616
MINOR = 2
17-
PATCH = 0
17+
PATCH = 1

docs/third_party_IP_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</head>
6666
<body>
6767
<h1>Project's 3rd party IP report</h1>
68-
<p><i>2021-08-10 10:38:59.122764</i></p>
68+
<p><i>2021-08-10 17:05:14.725298</i></p>
6969
<h2>Summary</h2>
7070
<table>
7171
<thead>

docs/third_party_IP_report.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
3rd party IP report for continuous-delivery-scripts
22

3-
2021-08-10 10:38:59.122764
3+
2021-08-10 17:05:14.725298
44

55
# Summary:
66
Licence compliance: Compliant

docs/utils/configuration.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.configuration</
191191
AWS_BUCKET = &#34;Unknown&#34;
192192
AUTOGENERATE_NEWS_FILE_ON_DEPENDENCY_UPDATE = True
193193
DEPENDENCY_UPDATE_NEWS_MESSAGE = &#34;Dependency upgrade: {message}&#34;
194-
DEPENDENCY_UPDATE_NEWS_TYPE = NewsType.bugfix.name
194+
DEPENDENCY_UPDATE_NEWS_TYPE = NewsType.bugfix
195195
DEPENDENCY_UPDATE_BRANCH_PATTERN = r&#34;^\s*[Dd]ependabot\/.+\/(?P&lt;DEPENDENCY&gt;.+)&#34;
196196
ACCEPTED_THIRD_PARTY_LICENCES = [&#34;Apache-2.0&#34;, &#34;BSD*&#34;, &#34;JSON&#34;, &#34;MIT&#34;, &#34;Python-2.0&#34;, &#34;PSF-2.0&#34;, &#34;MPL-2.0&#34;]
197197
PACKAGES_WITH_CHECKED_LICENCE: List[str] = []
@@ -1042,7 +1042,7 @@ <h3>Inherited members</h3>
10421042
AWS_BUCKET = &#34;Unknown&#34;
10431043
AUTOGENERATE_NEWS_FILE_ON_DEPENDENCY_UPDATE = True
10441044
DEPENDENCY_UPDATE_NEWS_MESSAGE = &#34;Dependency upgrade: {message}&#34;
1045-
DEPENDENCY_UPDATE_NEWS_TYPE = NewsType.bugfix.name
1045+
DEPENDENCY_UPDATE_NEWS_TYPE = NewsType.bugfix
10461046
DEPENDENCY_UPDATE_BRANCH_PATTERN = r&#34;^\s*[Dd]ependabot\/.+\/(?P&lt;DEPENDENCY&gt;.+)&#34;
10471047
ACCEPTED_THIRD_PARTY_LICENCES = [&#34;Apache-2.0&#34;, &#34;BSD*&#34;, &#34;JSON&#34;, &#34;MIT&#34;, &#34;Python-2.0&#34;, &#34;PSF-2.0&#34;, &#34;MPL-2.0&#34;]
10481048
PACKAGES_WITH_CHECKED_LICENCE: List[str] = []

docs/utils/news_file.html

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.news_file</code
3939
import enum
4040
import pathlib
4141
from datetime import datetime
42+
from typing import Any
4243

4344

4445
class NewsType(enum.Enum):
@@ -52,9 +53,14 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.news_file</code
5253
removal = 5
5354

5455

55-
def create_news_file(news_dir: str, news_text: str, news_type: NewsType) -&gt; pathlib.Path:
56+
def create_news_file(news_dir: str, news_text: str, news_type: Any) -&gt; pathlib.Path:
5657
&#34;&#34;&#34;Facilitates creating a news file, determining it&#39;s file name based on the type.&#34;&#34;&#34;
57-
file_path = determine_news_file_path(news_dir, news_type)
58+
message_type = NewsType.misc
59+
if isinstance(news_type, str):
60+
message_type = NewsType[news_type]
61+
elif isinstance(news_type, NewsType):
62+
message_type = news_type
63+
file_path = determine_news_file_path(news_dir, message_type)
5864
_write_file(file_path, news_text)
5965
return file_path
6066

@@ -89,17 +95,22 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.news_file</code
8995
<h2 class="section-title" id="header-functions">Functions</h2>
9096
<dl>
9197
<dt id="continuous_delivery_scripts.utils.news_file.create_news_file"><code class="name flex">
92-
<span>def <span class="ident">create_news_file</span></span>(<span>news_dir: str, news_text: str, news_type: <a title="continuous_delivery_scripts.utils.news_file.NewsType" href="#continuous_delivery_scripts.utils.news_file.NewsType">NewsType</a>) ‑> pathlib.Path</span>
98+
<span>def <span class="ident">create_news_file</span></span>(<span>news_dir: str, news_text: str, news_type: Any) ‑> pathlib.Path</span>
9399
</code></dt>
94100
<dd>
95101
<div class="desc"><p>Facilitates creating a news file, determining it's file name based on the type.</p></div>
96102
<details class="source">
97103
<summary>
98104
<span>Expand source code</span>
99105
</summary>
100-
<pre><code class="python">def create_news_file(news_dir: str, news_text: str, news_type: NewsType) -&gt; pathlib.Path:
106+
<pre><code class="python">def create_news_file(news_dir: str, news_text: str, news_type: Any) -&gt; pathlib.Path:
101107
&#34;&#34;&#34;Facilitates creating a news file, determining it&#39;s file name based on the type.&#34;&#34;&#34;
102-
file_path = determine_news_file_path(news_dir, news_type)
108+
message_type = NewsType.misc
109+
if isinstance(news_type, str):
110+
message_type = NewsType[news_type]
111+
elif isinstance(news_type, NewsType):
112+
message_type = news_type
113+
file_path = determine_news_file_path(news_dir, message_type)
103114
_write_file(file_path, news_text)
104115
return file_path</code></pre>
105116
</details>

news/202108101200.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)