use choice var instead of not yet released bool var
This commit is contained in:
parent
0c830127ec
commit
a5627c192d
1
TODO.md
1
TODO.md
|
@ -2,3 +2,4 @@
|
|||
|
||||
- tests
|
||||
- add AGPL
|
||||
- use bool value for `generate_gitea_project` when the feature is available
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}",
|
||||
"gitea_url": "https://git.mineau.eu",
|
||||
"project_url": "{{ cookiecutter.gitea_url }}/{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}",
|
||||
"generate_gitea_project": true,
|
||||
"generate_gitea_project": [ true, false ],
|
||||
"git_origin": "{{ cookiecutter.gitea_url.replace('https://', 'gitea@').replace('http://', 'gitea') }}:{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}.git",
|
||||
"version": "0.1.0",
|
||||
"open_source_license": ["GNU General Public License v3", "MIT license", "BSD license", "ISC license", "Apache Software License 2.0", "Not open source"],
|
||||
|
|
|
@ -32,7 +32,7 @@ if {{cookiecutter.generate_gitea_project}}:
|
|||
my_input = input
|
||||
API_KEY = my_input(
|
||||
"Secret service or secret {'Title': 'Gitea Token'} not available,"
|
||||
"please enter you gitea api key:"
|
||||
"please enter you gitea api token:"
|
||||
)
|
||||
configuration = giteapy.Configuration()
|
||||
configuration.api_key["access_token"] = API_KEY
|
||||
|
|
Loading…
Reference in a new issue