Skip to content

Commit 1efb166

Browse files
committed
Adds minor code update
1 parent 09b802e commit 1efb166

File tree

3 files changed

+36
-13
lines changed

3 files changed

+36
-13
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
2424

2525
-
2626

27+
## [**1.2.1**] - 2023-03-13
28+
29+
### Added
30+
31+
-
32+
33+
### Changed
34+
35+
- Improved post gen. hooks, now tells to look for the checklist associated with each action.
36+
- Improved existing documentation to reflect changes and better explain functionality.
37+
38+
### Fixed
39+
40+
- Minor errors in C++ CI UT template.
41+
2742
## [**1.1.0**] - 2023-03-13
2843

2944
### Added

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This repository can be used for adding Github Actions and templates to an existi
44

55
## Version
66

7-
Current version is 1.2.0 and was set according to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
Current version is 1.2.1 and was set according to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

99
Project's version should be updated, when applicable:
1010

@@ -23,16 +23,16 @@ $ cookiecutter https://github.com/ferreteleco/cookie-github.git
2323
It will create the appropriate .github folder in your project directory (wherever you invoke
2424
cookiecutter).
2525

26-
NOTE: it can also be cloned using GIT over SSH, if properly configured in your account.
26+
**NOTE:** it can also be cloned using GIT over SSH, if properly configured in your account.
2727

28-
NOTE1: after the repository is downloaded, the template can be used again without downloading it
28+
**NOTE:** after the repository is downloaded, the template can be used again without downloading it
2929
again. In order to do so, simply specify template name as argument for cookiecutter:
3030

3131
```bash
3232
$ cookiecutter cookie-github
3333
```
3434

35-
NOTE: alternatively, you can use [Cookieninja](https://github.com/cookieninja-generator/cookieninja),
35+
**NOTE:** alternatively, you can use [Cookieninja](https://github.com/cookieninja-generator/cookieninja),
3636
forked and more updated version of Cookiecutter with backward compatibility.
3737

3838
## Variables
@@ -53,6 +53,9 @@ you will be prompted to fill in the following values:
5353
project built with Poetry.
5454
- other, which does not generate any action.
5555

56+
**NOTE:** Each added action will be accompanied of a markdown checklist, stating the changes /
57+
configuration required to fine tune it.
58+
5659
## Contributing
5760

5861
If you want to contribute to this template, feel free to do so! Create a new branch to work in, and

hooks/post_gen_project.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,25 @@ def add_ci_action_unit_tests_runner():
3131

3232
target_language = "{{cookiecutter.project_language}}"
3333

34-
if {{cookiecutter.add_ci_action_unit_tests_runner}} and target_language.lower() != "other":
34+
if {{cookiecutter.add_ci_action_unit_tests_runner}}
3535

36-
LOG.info("Adding action for running unit tests (workflows folder) with default config...")
36+
if target_language.lower() != "other":
3737

38-
destination = Path("workflows")
39-
ci_test_workflow_files_path = Path("_", "workflows", target_language)
40-
copytree(ci_test_workflow_files_path, destination)
38+
LOG.info("Adding action for running unit tests (workflows folder) with default config...")
4139

42-
print("\n\n#################################################################")
43-
print("# Please check gen. checklist in order to adjust CI UT basic action #")
44-
print("#################################################################\n\n")
40+
destination = Path("workflows")
41+
ci_test_workflow_files_path = Path("_", "workflows", target_language)
42+
copytree(ci_test_workflow_files_path, destination)
43+
44+
print("\n\n#################################################################")
45+
print("# Please check gen. checklist in order to adjust CI UT basic action #")
46+
print("#################################################################\n\n")
47+
48+
else:
49+
LOG.info("CI action for running unit tests file generation is not defined for %s language. Skipping...", target_language)
4550

4651
else:
47-
LOG.info("Skipping CI action for running unit tests file generation (%s language selected) ...", target_language)
52+
LOG.info("Skipping CI action for running unit tests file generation")
4853

4954

5055
def clean():

0 commit comments

Comments
 (0)