Skip to content

Commit 9a1657d

Browse files
committed
🚀 releasing version 2.2.4 @ 2021-08-11 02:33
[skip ci]
1 parent 3419789 commit 9a1657d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+152
-66
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ 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.4" (2021-08-11)
17+
====================
18+
19+
Bugfixes
20+
--------
21+
22+
- Fixed dependency update news file bug (#202108110247)
23+
- Fixed local assert news file (#20210811024701)
24+
25+
26+
Misc
27+
----
28+
29+
- #202108110255
30+
31+
1632
"2.2.3" (2021-08-11)
1733
====================
1834

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.3"
14-
COMMIT = "e35be277302dcfa48495d5da398730e67d0d91ba"
13+
__version__ = "2.2.4"
14+
COMMIT = "3419789b01c48e806cf32b55fb5eb7834195d7d9"
1515
MAJOR = 2
1616
MINOR = 2
17-
PATCH = 3
17+
PATCH = 4

docs/assert_news.html

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.assert_news</code></h
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2021 Arm. All rights reserved.
35+
# Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Checks if valid news files are created for changes in the project.&#34;&#34;&#34;
@@ -126,12 +126,12 @@ <h1 class="title">Module <code>continuous_delivery_scripts.assert_news</code></h
126126
validate_news_file(absolute_file_path)
127127

128128

129-
def generate_news_file(git: GitWrapper, news_dir: str) -&gt; pathlib.Path:
129+
def generate_news_file(git: GitWrapper, news_dir: pathlib.Path) -&gt; pathlib.Path:
130130
&#34;&#34;&#34;Adds a news file if the branch corresponds to an dependency update.
131131

132132
Args:
133133
git: Instance of GitWrapper.
134-
news_dir: Relative path to news directory.
134+
news_dir: path to news directory.
135135
&#34;&#34;&#34;
136136
current_branch = str(git.get_current_branch())
137137
is_dependency_update, groups = git.is_current_branch_of_type(
@@ -147,19 +147,21 @@ <h1 class="title">Module <code>continuous_delivery_scripts.assert_news</code></h
147147
)
148148
logger.info(f&#34;Generating a news file with content: {message}...&#34;)
149149
return create_news_file(
150-
news_dir,
150+
str(news_dir),
151151
message,
152152
configuration.get_value(ConfigurationVariable.DEPENDENCY_UPDATE_NEWS_TYPE),
153153
)
154154

155155

156-
def _commit_news_file(git: GitWrapper, news_file: pathlib.Path) -&gt; None:
156+
def _commit_news_file(git: GitWrapper, news_file: pathlib.Path, local: bool) -&gt; None:
157157
logger.info(f&#34;Committing news file {str(news_file)}...&#34;)
158-
git.configure_for_github()
158+
if not local:
159+
git.configure_for_github()
159160
git.add(str(news_file))
160161
git.commit(&#34;📰 Automatic changes ⚙ Adding news file&#34;)
161-
git.push()
162-
git.pull()
162+
if not local:
163+
git.push()
164+
git.pull()
163165

164166

165167
def main() -&gt; None:
@@ -185,8 +187,8 @@ <h1 class="title">Module <code>continuous_delivery_scripts.assert_news</code></h
185187
except Exception as e:
186188
log_exception(logger, e)
187189
try:
188-
news_file = generate_news_file(git, absolute_news_dir)
189-
_commit_news_file(git, news_file)
190+
news_file = generate_news_file(git, git.get_corresponding_path(pathlib.Path(news_dir)))
191+
_commit_news_file(git, news_file, args.local)
190192
except Exception as e2:
191193
log_exception(logger, e2)
192194
sys.exit(1)
@@ -245,7 +247,7 @@ <h2 id="returns">Returns</h2>
245247
</details>
246248
</dd>
247249
<dt id="continuous_delivery_scripts.assert_news.generate_news_file"><code class="name flex">
248-
<span>def <span class="ident">generate_news_file</span></span>(<span>git: <a title="continuous_delivery_scripts.utils.git_helpers.GitWrapper" href="utils/git_helpers.html#continuous_delivery_scripts.utils.git_helpers.GitWrapper">GitWrapper</a>, news_dir: str) ‑> pathlib.Path</span>
250+
<span>def <span class="ident">generate_news_file</span></span>(<span>git: <a title="continuous_delivery_scripts.utils.git_helpers.GitWrapper" href="utils/git_helpers.html#continuous_delivery_scripts.utils.git_helpers.GitWrapper">GitWrapper</a>, news_dir: pathlib.Path) ‑> pathlib.Path</span>
249251
</code></dt>
250252
<dd>
251253
<div class="desc"><p>Adds a news file if the branch corresponds to an dependency update.</p>
@@ -254,18 +256,18 @@ <h2 id="args">Args</h2>
254256
<dt><strong><code>git</code></strong></dt>
255257
<dd>Instance of GitWrapper.</dd>
256258
<dt><strong><code>news_dir</code></strong></dt>
257-
<dd>Relative path to news directory.</dd>
259+
<dd>path to news directory.</dd>
258260
</dl></div>
259261
<details class="source">
260262
<summary>
261263
<span>Expand source code</span>
262264
</summary>
263-
<pre><code class="python">def generate_news_file(git: GitWrapper, news_dir: str) -&gt; pathlib.Path:
265+
<pre><code class="python">def generate_news_file(git: GitWrapper, news_dir: pathlib.Path) -&gt; pathlib.Path:
264266
&#34;&#34;&#34;Adds a news file if the branch corresponds to an dependency update.
265267

266268
Args:
267269
git: Instance of GitWrapper.
268-
news_dir: Relative path to news directory.
270+
news_dir: path to news directory.
269271
&#34;&#34;&#34;
270272
current_branch = str(git.get_current_branch())
271273
is_dependency_update, groups = git.is_current_branch_of_type(
@@ -281,7 +283,7 @@ <h2 id="args">Args</h2>
281283
)
282284
logger.info(f&#34;Generating a news file with content: {message}...&#34;)
283285
return create_news_file(
284-
news_dir,
286+
str(news_dir),
285287
message,
286288
configuration.get_value(ConfigurationVariable.DEPENDENCY_UPDATE_NEWS_TYPE),
287289
)</code></pre>
@@ -319,8 +321,8 @@ <h2 id="args">Args</h2>
319321
except Exception as e:
320322
log_exception(logger, e)
321323
try:
322-
news_file = generate_news_file(git, absolute_news_dir)
323-
_commit_news_file(git, news_file)
324+
news_file = generate_news_file(git, git.get_corresponding_path(pathlib.Path(news_dir)))
325+
_commit_news_file(git, news_file, args.local)
324326
except Exception as e2:
325327
log_exception(logger, e2)
326328
sys.exit(1)</code></pre>

docs/create_news_file.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2 id="usage">Usage</h2>
3434
<span>Expand source code</span>
3535
</summary>
3636
<pre><code class="python">#
37-
# Copyright (C) 2020-2021 Arm. All rights reserved.
37+
# Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
3838
# SPDX-License-Identifier: Apache-2.0
3939
#
4040
&#34;&#34;&#34;Easy news files generation.

docs/generate_docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.generate_docs</code><
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2021 Arm. All rights reserved.
35+
# Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Generates documentation.&#34;&#34;&#34;

docs/generate_news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.generate_news</code><
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2021 Arm. All rights reserved.
35+
# Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Handles usage of towncrier for automated changelog generation and pyautoversion for versioning.&#34;&#34;&#34;

docs/get_config.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.get_config</code></h1
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2021 Arm. All rights reserved.
35+
# Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Retrieves configuration values.&#34;&#34;&#34;

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Package <code>continuous_delivery_scripts</code></h1>
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2021 Arm. All rights reserved.
35+
# Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Scripts and utilities used by the CI pipeline.&#34;&#34;&#34;

docs/language_specifics.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.language_specifics</c
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2021 Arm. All rights reserved.
35+
# Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Language plugins Loader.&#34;&#34;&#34;

docs/license_files.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.license_files</code><
3434
<span>Expand source code</span>
3535
</summary>
3636
<pre><code class="python">#
37-
# Copyright (C) 2020-2021 Arm. All rights reserved.
37+
# Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
3838
# SPDX-License-Identifier: Apache-2.0
3939
#
4040
&#34;&#34;&#34;Apply copyright and licensing to all source files present in a project.

0 commit comments

Comments
 (0)