This is an automated email from the ASF dual-hosted git repository.
zky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new f99d5bd61 fix: onboard / configure connection's plugin name is fixed
to GitHub (#8156)
f99d5bd61 is described below
commit f99d5bd6145467fda99c49f5bc1af66821e787db
Author: Klesh Wong <[email protected]>
AuthorDate: Wed Oct 23 16:33:15 2024 +0800
fix: onboard / configure connection's plugin name is fixed to GitHub (#8156)
---
config-ui/src/routes/onboard/step-2.tsx | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/config-ui/src/routes/onboard/step-2.tsx
b/config-ui/src/routes/onboard/step-2.tsx
index 9460c6a47..d2ed2cf81 100644
--- a/config-ui/src/routes/onboard/step-2.tsx
+++ b/config-ui/src/routes/onboard/step-2.tsx
@@ -108,17 +108,23 @@ export const Step2 = () => {
return null;
}
+ const platformNames: Record<string, string> = {
+ github: 'GitHub',
+ gitlab: 'GitLab',
+ azuredevops: 'Azure DevOps',
+ }
+
return (
<>
<S.StepContent>
- {['github', 'gitlab', 'azuredevops'].includes(plugin) && (
+ {platformNames[plugin] && (
<div className="content">
<ConnectionToken
type="create"
label="Personal Access Token"
subLabel={
<p>
- Create a personal access token in GitHub. For self-managed
{config.name}, please skip the onboarding
+ Create a personal access token in {platformNames[plugin]}.
For self-managed {config.name}, please skip the onboarding
and configure via <Link to={'/connections'}>Data
Connections</Link>.
</p>
}