This is an automated email from the ASF dual-hosted git repository. mintsweet pushed a commit to branch feat-github-app in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 137fafdee8ac7fe15e3d6ac84860017b78886f3a Author: mintsweet <[email protected]> AuthorDate: Thu Sep 12 14:43:01 2024 +1200 feat: adjust some content for github app --- .../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> </> }
