mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
style(prettier): format source files
This commit is contained in:
@@ -31,7 +31,12 @@ const getGitRemotes = async () => {
|
||||
|
||||
const hasUpstreamBranch = async (): Promise<boolean> => {
|
||||
try {
|
||||
await execa('git', ['rev-parse', '--abbrev-ref', '--symbolic-full-name', '@{u}']);
|
||||
await execa('git', [
|
||||
'rev-parse',
|
||||
'--abbrev-ref',
|
||||
'--symbolic-full-name',
|
||||
'@{u}'
|
||||
]);
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
|
||||
@@ -723,8 +723,7 @@ export const configValidators = {
|
||||
[CONFIG_KEYS.OCO_API_URL](value: any) {
|
||||
validateConfig(
|
||||
CONFIG_KEYS.OCO_API_URL,
|
||||
typeof value === 'string' &&
|
||||
/^(https?:\/\/)/.test(value),
|
||||
typeof value === 'string' && /^(https?:\/\/)/.test(value),
|
||||
`${value} is not a valid URL. It should start with 'http://' or 'https://'.`
|
||||
);
|
||||
return value;
|
||||
|
||||
@@ -98,8 +98,8 @@ const getCommitConvention = (fullGitMojiSpec: boolean) =>
|
||||
fullGitMojiSpec
|
||||
? FULL_GITMOJI_SPEC
|
||||
: config.OCO_EMOJI
|
||||
? GITMOJI_HELP
|
||||
: CONVENTIONAL_COMMIT_KEYWORDS;
|
||||
? GITMOJI_HELP
|
||||
: CONVENTIONAL_COMMIT_KEYWORDS;
|
||||
|
||||
const getDescriptionInstruction = () =>
|
||||
config.OCO_DESCRIPTION
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
import axios from 'axios';
|
||||
import { HttpsProxyAgent } from 'https-proxy-agent';
|
||||
import {
|
||||
Agent,
|
||||
ProxyAgent,
|
||||
setGlobalDispatcher
|
||||
} from 'undici';
|
||||
import { Agent, ProxyAgent, setGlobalDispatcher } from 'undici';
|
||||
|
||||
export type ProxySetting = string | null | undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user