Skip to content

Commit

Permalink
docs: add note on default envvar behaviour (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardcooke53 committed Dec 22, 2023
1 parent c1059f5 commit 0b07cae
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,16 @@ environment variable if you wish.
configuring the environment variable for your remote VCS authentication token.
**Default:** ``{ env = "GH_TOKEN" }``
The default value for this setting depends on what you specify as
:ref:`remote.type <config-remote-type>`. If you set ``remote.type = "github"``,
the default value for ``remote.token`` will be ``{ env = "GH_TOKEN" }``;
if you set ``remote.type = "gitlab"``, the default value will be
``{ env = "GITLAB_TOKEN" }``; and if you set ``remote.type = "gitea"``, the
default value of ``remote.token`` will be ``{ env = "GITEA_TOKEN" }``.
**Default:** ``{ env = "<envvar name>" }``, where ``<envvar name>`` depends on
:ref:`remote.type <config-remote-type>` as indicated above.
.. _config-publish:
Expand Down

0 comments on commit 0b07cae

Please sign in to comment.