You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2024/01/16 07:35:02 UTC
(incubator-devlake) branch fix-github-token created (now 6efbe8864)
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a change to branch fix-github-token
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
at 6efbe8864 fix(config-ui): github token is valid condition error
This branch includes the following new commits:
new 6efbe8864 fix(config-ui): github token is valid condition error
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(incubator-devlake) 01/01: fix(config-ui): github token is valid condition error
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch fix-github-token
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 6efbe8864d2a2bbeecc7b54128446636ade44569
Author: mintsweet <0x...@gmail.com>
AuthorDate: Tue Jan 16 20:34:47 2024 +1300
fix(config-ui): github token is valid condition error
---
config-ui/src/plugins/register/github/connection-fields/token.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config-ui/src/plugins/register/github/connection-fields/token.tsx b/config-ui/src/plugins/register/github/connection-fields/token.tsx
index 9c99523a9..62b05bc0e 100644
--- a/config-ui/src/plugins/register/github/connection-fields/token.tsx
+++ b/config-ui/src/plugins/register/github/connection-fields/token.tsx
@@ -92,7 +92,7 @@ export const Token = ({
setTokens(
(res.tokens ?? []).map((it) => ({
value: it.token,
- isValid: it.success || it.warning,
+ isValid: !!it.login,
from: it.login,
status: !it.success ? 'error' : it.warning ? 'warning' : 'success',
})),