Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProposalPolice™ GH Actions Workflow #41038

Merged
merged 30 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d5dd18e
ProposalPolice™ GH Actions Workflow
ikevin127 Apr 25, 2024
dd16598
refactoring
ikevin127 Apr 27, 2024
709846a
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 Apr 30, 2024
d073a6c
new refactoring
ikevin127 May 8, 2024
741fc96
refactoring 2.0
ikevin127 May 25, 2024
35d0877
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 May 25, 2024
da27fb3
synced w/ main and npm ci, package-lock.json bump
ikevin127 May 25, 2024
0245beb
fixed lint and rebuilt
ikevin127 May 25, 2024
a85b61f
prettier
ikevin127 May 26, 2024
b69f414
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 May 28, 2024
00b8d89
github actions build
ikevin127 May 28, 2024
0d3c926
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 May 28, 2024
bf2f252
updated actions/ version
ikevin127 May 28, 2024
a949548
fixed action.yml errors
ikevin127 May 28, 2024
98dd06c
refactoring 3.0: OpenAIUtils, one action, constants
ikevin127 May 31, 2024
df9ef9c
refactoring 3.1: lint
ikevin127 May 31, 2024
623ca4d
refactoring 3.2: lint import
ikevin127 May 31, 2024
4ffbd42
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 Jun 22, 2024
090e17c
applied diff
ikevin127 Jun 22, 2024
5bf76b5
solved conflict
ikevin127 Jun 22, 2024
3f0a87f
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 Jun 22, 2024
edb3c56
added @octokit/webhooks-types and rebuilt gh-actions
ikevin127 Jun 22, 2024
036f890
fixed proposalPolice.yml
ikevin127 Jun 22, 2024
d252bff
lint, ready for review
ikevin127 Jun 22, 2024
02c2cf0
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 Jun 28, 2024
c04dc7c
added 'Proposal' keyword check
ikevin127 Jun 29, 2024
0b86bb7
clean install & rebuild
ikevin127 Jun 29, 2024
2cf10a1
Updated OpenAI keys
ikevin127 Jul 5, 2024
595eb1b
actions rebuild to fix validate fail
ikevin127 Jul 5, 2024
c0f2960
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 Jul 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module.exports = {
'@lwc/lwc/no-async-await': 'off',
'no-await-in-loop': 'off',
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
'no-continue': 'off',
},
};
17 changes: 17 additions & 0 deletions .github/actions/javascript/authorChecklist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17016,14 +17016,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/awaitStagingDeploys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12257,14 +12257,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/checkDeployBlockers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11540,14 +11540,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/createOrUpdateStagingDeploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14352,14 +14352,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/getArtifactInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11501,14 +11501,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/getDeployPullRequestList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11631,14 +11631,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/getPreviousVersion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2768,14 +2768,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/getPullRequestDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11603,14 +11603,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/getReleaseBody/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11547,14 +11547,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/isStagingDeployLocked/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11501,14 +11501,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/markPullRequestsAsDeployed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11708,14 +11708,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
17 changes: 17 additions & 0 deletions .github/actions/javascript/postTestBuildComment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11600,14 +11600,31 @@ const CONST = {
STAGING_DEPLOY: 'StagingDeployCash',
DEPLOY_BLOCKER: 'DeployBlockerCash',
INTERNAL_QA: 'InternalQA',
HELP_WANTED: 'Help Wanted',
},
ACTIONS: {
CREATED: 'created',
EDIT: 'edited',
},
EVENTS: {
ISSUE_COMMENT: 'issue_comment',
},
OPENAI_ROLES: {
USER: 'user',
ASSISTANT: 'assistant',
},
PROPOSAL_KEYWORD: 'Proposal',
OPENAI_THREAD_COMPLETED: 'completed',
DATE_FORMAT_STRING: 'yyyy-MM-dd',
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),
ISSUE_OR_PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/(?:pull|issues)/([0-9]+).*`),
POLL_RATE: 10000,
APP_REPO_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}`,
APP_REPO_GIT_URL: `git@github.com:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`,
NO_ACTION: 'NO_ACTION',
OPENAI_POLL_RATE: 1500,
OPENAI_POLL_TIMEOUT: 90000,
};
exports["default"] = CONST;

Expand Down
Loading
Loading