This is an automated email from the ASF dual-hosted git repository.
klesh 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 5da519b55 feat: adjust some content for github app (#8036)
5da519b55 is described below
commit 5da519b552dfc40a0b3b4dcc24001ecacbe015ce
Author: 青湛 <[email protected]>
AuthorDate: Fri Sep 13 14:06:04 2024 +1200
feat: adjust some content for github app (#8036)
---
.../src/plugins/components/connection-form/fields/endpoint.tsx | 2 +-
.../plugins/register/github/connection-fields/authentication.tsx | 6 +++---
.../src/plugins/register/github/connection-fields/githubapp.tsx | 7 ++++---
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git
a/config-ui/src/plugins/components/connection-form/fields/endpoint.tsx
b/config-ui/src/plugins/components/connection-form/fields/endpoint.tsx
index 2dc3d3ed4..882951dab 100644
--- a/config-ui/src/plugins/components/connection-form/fields/endpoint.tsx
+++ b/config-ui/src/plugins/components/connection-form/fields/endpoint.tsx
@@ -77,7 +77,7 @@ export const ConnectionEndpoint = ({
if (multipleVersions) {
return (
<>
- <Block title={name} required>
+ <Block title={`${name} Version`} required>
<Radio.Group value={version} onChange={handleChange}>
<Radio value="cloud">{name} Cloud</Radio>
<Radio value="server" disabled={!multipleVersions.server}>
diff --git
a/config-ui/src/plugins/register/github/connection-fields/authentication.tsx
b/config-ui/src/plugins/register/github/connection-fields/authentication.tsx
index 5012db76c..e411efaad 100644
--- a/config-ui/src/plugins/register/github/connection-fields/authentication.tsx
+++ b/config-ui/src/plugins/register/github/connection-fields/authentication.tsx
@@ -33,10 +33,10 @@ export const Authentication = ({ initialValue, value,
setValue }: Props) => {
}, [initialValue]);
return (
- <Block title="Authentication type" required>
+ <Block title="Authentication Type" required>
<Radio.Group value={value || initialValue} onChange={(e) =>
setValue(e.target.value)}>
- <Radio value="AccessToken">Github Access Token</Radio>
- <Radio value="AppKey">Github App</Radio>
+ <Radio value="AccessToken">GitHub Access Token</Radio>
+ <Radio value="AppKey">GitHub App(Beta)</Radio>
</Radio.Group>
</Block>
);
diff --git
a/config-ui/src/plugins/register/github/connection-fields/githubapp.tsx
b/config-ui/src/plugins/register/github/connection-fields/githubapp.tsx
index 0355be9b9..a93b4960e 100644
--- a/config-ui/src/plugins/register/github/connection-fields/githubapp.tsx
+++ b/config-ui/src/plugins/register/github/connection-fields/githubapp.tsx
@@ -139,12 +139,13 @@ export const GithubApp = ({ endpoint, proxy,
initialValue, value, error, setValu
return (
<Block
- title="Github App settings"
+ title="GitHub App Settings"
description={
<>
- Input information about your Github App{' '}
+ GitHub App token expires every hour. To collect large resposities,
please choose the GitHub Access Token to
+ authenticate.{' '}
<ExternalLink
link="https://docs.github.com/en/apps/maintaining-github-apps/modifying-a-github-app-registration#navigating-to-your-github-app-settings">
- Learn how to create a github app
+ Learn how to create a GitHub App
</ExternalLink>
</>
}