Skip to content

Commit 335b11a

Browse files
authored
Feat 009 (#23)
* fix(template): fix for pyproject.toml * chore(update): Update template
1 parent 5800fa3 commit 335b11a

6 files changed

Lines changed: 47 additions & 47 deletions

File tree

.cookiecutter_includes/workflows/contributor-assistant.j2

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ on:
3939
synchronize
4040
]
4141

42-
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
42+
# explicitly configure permissions, in case your GITHUB_TOKEN
43+
# workflow permissions are set to read-only in repository settings
4344
permissions:
4445
actions: write
4546
contents: write # this can be 'read' if the signatures are in remote repository
@@ -51,28 +52,26 @@ jobs:
5152
runs-on: ubuntu-latest
5253
steps:
5354
- name: "{{ cookiecutter.contribution_model | upper }} Assistant"
54-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the {{ cookiecutter.contribution_model | upper }} Document and I hereby sign the {{ cookiecutter.contribution_model | upper }}') || github.event_name == 'pull_request_target'
55+
if: >-
56+
(github.event.comment.body == 'recheck' ||
57+
github.event.comment.body == 'I have read the {{ cookiecutter.contribution_model | upper }} Document and I hereby sign the {{ cookiecutter.contribution_model | upper }}') ||
58+
github.event_name == 'pull_request_target'
5559
uses: contributor-assistant/github-action@v2.6.1
5660
env:
57-
GITHUB_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
58-
# the below token should have repo scope and must be manually added by you in the repository's secret
59-
# This token is required only if you have configured to store the signatures in a remote repository/organization
60-
# PERSONAL_ACCESS_TOKEN: {% raw %}${{ secrets.PERSONAL_ACCESS_TOKEN }}{% endraw +%}
61+
GITHUB_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw +%}
6162
with:
6263
path-to-signatures: "{{ cookiecutter.contribution_model | lower }}/v1/signatures.json"
63-
path-to-document: "{{ cookiecutter.github_io }}/manual/developer-resources/{{ cookiecutter.contribution_model | lower }}" # e.g. a CLA or a DCO document
64+
path-to-document: "{{ cookiecutter.github_io }}/manual/developer-resources/{{ cookiecutter.contribution_model | lower }}"
6465
# branch should not be protected
6566
branch: "{{ cookiecutter._default_branch }}" # Should match the branch that github pages are hosted from.
6667
allowlist: "{{ cookiecutter.github_username }},github-actions[bot],dependabot[bot],bot*"
6768

68-
# the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
69-
# remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
70-
# remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
69+
# If the below optional inputs are not given, then default values will be taken:
7170
create-file-commit-message: "chore({{ cookiecutter.contribution_model | upper }}): Creating file for storing {{ cookiecutter.contribution_model | upper }} Signatures."
7271
signed-commit-message: "chore({{ cookiecutter.contribution_model | upper }}): $contributorName has signed the {{ cookiecutter.contribution_model | upper }}."
7372
# custom-notsigned-prcomment: "pull request comment with Introductory message to ask new contributors to sign"
7473
# custom-pr-sign-comment: "The signature to be committed in order to sign the {{ cookiecutter.contribution_model | upper }}"
75-
# custom-allsigned-prcomment: "pull request comment when all contributors has signed, defaults to **{{ cookiecutter.contribution_model | upper }} Assistant Lite bot** All Contributors have signed the {{ cookiecutter.contribution_model | upper }}."
76-
# lock-pullrequest-aftermerge: false - if you don"t want this bot to automatically lock the pull request after merging (default - true)
77-
use-dco-flag: {{ true if cookiecutter.contribution_model|lower == 'dco' else false }} # If you are using DCO instead of CLA
74+
# custom-allsigned-prcomment: "**{{ cookiecutter.contribution_model | upper }} Assistant Lite bot** All Contributors have signed the {{ cookiecutter.contribution_model | upper }}."
75+
lock-pullrequest-aftermerge: true
76+
use-dco-flag: {{ 'true' if cookiecutter.contribution_model|lower == 'dco' else 'false' }} # If you are using DCO instead of CLA
7877
{% endmacro %}

.github/workflows/cla.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ on:
2727
synchronize
2828
]
2929

30-
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
30+
# explicitly configure permissions, in case your GITHUB_TOKEN
31+
# workflow permissions are set to read-only in repository settings
3132
permissions:
3233
actions: write
3334
contents: write # this can be 'read' if the signatures are in remote repository
@@ -39,26 +40,25 @@ jobs:
3940
runs-on: ubuntu-latest
4041
steps:
4142
- name: "CLA Assistant"
42-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
43+
if: >-
44+
(github.event.comment.body == 'recheck' ||
45+
github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') ||
46+
github.event_name == 'pull_request_target'
4347
uses: contributor-assistant/github-action@v2.6.1
4448
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # the below token should have repo scope and must be manually added by you in the repository's secret
46-
# This token is required only if you have configured to store the signatures in a remote repository/organization
47-
# PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4850
with:
4951
path-to-signatures: "cla/v1/signatures.json"
50-
path-to-document: "https://jcook3701.github.io/ansible-galaxy-cookiecutter/manual/developer-resources/cla" # e.g. a CLA or a DCO document
52+
path-to-document: "https://jcook3701.github.io/ansible-galaxy-cookiecutter/manual/developer-resources/cla"
5153
# branch should not be protected
5254
branch: "main" # Should match the branch that github pages are hosted from.
5355
allowlist: "jcook3701,github-actions[bot],dependabot[bot],bot*"
5456

55-
# the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
56-
# remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
57-
# remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
57+
# If the below optional inputs are not given, then default values will be taken:
5858
create-file-commit-message: "chore(CLA): Creating file for storing CLA Signatures."
5959
signed-commit-message: "chore(CLA): $contributorName has signed the CLA."
6060
# custom-notsigned-prcomment: "pull request comment with Introductory message to ask new contributors to sign"
6161
# custom-pr-sign-comment: "The signature to be committed in order to sign the CLA"
62-
# custom-allsigned-prcomment: "pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA."
63-
# lock-pullrequest-aftermerge: false - if you don"t want this bot to automatically lock the pull request after merging (default - true)
64-
use-dco-flag: False # If you are using DCO instead of CLA
62+
# custom-allsigned-prcomment: "**CLA Assistant Lite bot** All Contributors have signed the CLA."
63+
lock-pullrequest-aftermerge: true
64+
use-dco-flag: false # If you are using DCO instead of CLA

changelogs/CHANGELOG.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,19 +151,20 @@ Feat 006 (#16)
151151
- Merge pull request #20 from jcook3701/develop
152152

153153
Feat 007 (#19)
154-
- Update template
155-
- Update template
156-
- Update template
157-
- Update template
158-
- Merge branch 'cookiecutter-template' into feat-008
154+
- Feat 008 (#21)
159155

160-
### 🐛 Fixed
156+
* fix(docs): documentation fix for jekyll main page.
157+
158+
* feat(docs): added emojis to readme.
161159

162-
- *(docs)* Documentation fix for jekyll main page.
160+
* feat(template): community health files + CLA + Jekyll updates.
161+
- Merge pull request #22 from jcook3701/develop
163162

164-
### 🚀 Added
163+
Feat 008 (#21)
164+
165+
### 🐛 Fixed
165166

166-
- *(docs)* Added emojis to readme.
167+
- *(template)* Fix for pyproject.toml
167168
## [0.1.0] - 2025-12-13
168169

169170
### ⚙️ Miscellaneous

changelogs/releases/v0.1.1.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,17 @@ Feat 006 (#16)
151151
- Merge pull request #20 from jcook3701/develop
152152

153153
Feat 007 (#19)
154-
- Update template
155-
- Update template
156-
- Update template
157-
- Update template
158-
- Merge branch 'cookiecutter-template' into feat-008
154+
- Feat 008 (#21)
159155

160-
### 🐛 Fixed
156+
* fix(docs): documentation fix for jekyll main page.
157+
158+
* feat(docs): added emojis to readme.
161159

162-
- *(docs)* Documentation fix for jekyll main page.
160+
* feat(template): community health files + CLA + Jekyll updates.
161+
- Merge pull request #22 from jcook3701/develop
163162

164-
### 🚀 Added
163+
Feat 008 (#21)
164+
165+
### 🐛 Fixed
165166

166-
- *(docs)* Added emojis to readme.
167+
- *(template)* Fix for pyproject.toml

{{ cookiecutter.project_slug }}/.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Python
2727
uses: actions/setup-python@v5
2828
with:
29-
python-version: '3.11'
29+
python-version: "3.11"
3030

3131
- name: Install antsichaut
3232
run: pip install antsichaut

{{ cookiecutter.project_slug }}/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ readme = "./README.md"
2020
license = "{{ cookiecutter.license }}"
2121
license-files = ["LICENSE.md"]
2222
requires-python = ">={{ cookiecutter.python_version }}"
23-
dependencies = [
24-
"nutri-matic>=0.1",
25-
]
23+
dependencies = []
2624
keywords = [
2725
"ansible",
2826
"galaxy",
@@ -62,6 +60,7 @@ tools = [
6260
"jinja2-time>=0.2",
6361
"mypy==1.9",
6462
"nameisok>=0.1",
63+
"nutri-matic>=0.1",
6564
"pip-audit>=2.10",
6665
"pre-commit>=4.5",
6766
"pytest>=9.0",

0 commit comments

Comments
 (0)