From 3bd28f37a4776e0778765ad76a19bb844d827520 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Mon, 24 Jun 2024 19:02:04 +0200 Subject: [PATCH] Fixed Contributing.md guide --- docs/CONTRIBUTING.md | 13 ++++++++++--- pkgs/clan-cli/tests/test_secrets_generate.py | 1 - 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 864caa18..38dabaec 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -44,6 +44,14 @@ Let's get your development environment up and running: ```bash git remote add upstream gitea@git.clan.lol:clan/clan-core.git ``` +5. **Create an access token**: + - Log in to Gitea. + - Go to your account settings. + - Navigate to the Applications section. + - Click Generate New Token. + - Name your token and select all available scopes. + - Generate the token and copy it for later use. + - Your access token is now ready to use with all permissions. 5. **Register Your Gitea Account Locally**: @@ -54,9 +62,8 @@ Let's get your development environment up and running: - Fill out the prompt as follows: - URL of Gitea instance: `https://git.clan.lol` - Name of new Login [git.clan.lol]: - - Do you have an access token? No - - Username: YourUsername - - Password: YourPassword + - Do you have an access token? Yes + - Token: - Set Optional settings: No diff --git a/pkgs/clan-cli/tests/test_secrets_generate.py b/pkgs/clan-cli/tests/test_secrets_generate.py index 55ae9c94..05e75916 100644 --- a/pkgs/clan-cli/tests/test_secrets_generate.py +++ b/pkgs/clan-cli/tests/test_secrets_generate.py @@ -98,7 +98,6 @@ def test_generate_secret( assert pwd_secret.isprintable() assert pwd_secret.isascii() - # test idempotency for vm1 and also generate for vm2 cli.run(["facts", "generate", "--flake", str(test_flake_with_core.path)]) assert age_key.lstat().st_mtime_ns == age_key_mtime