-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Changes from 24 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
d5dd18e
ProposalPolice™ GH Actions Workflow
ikevin127 dd16598
refactoring
ikevin127 709846a
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 d073a6c
new refactoring
ikevin127 741fc96
refactoring 2.0
ikevin127 35d0877
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 da27fb3
synced w/ main and npm ci, package-lock.json bump
ikevin127 0245beb
fixed lint and rebuilt
ikevin127 a85b61f
prettier
ikevin127 b69f414
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 00b8d89
github actions build
ikevin127 0d3c926
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 bf2f252
updated actions/ version
ikevin127 a949548
fixed action.yml errors
ikevin127 98dd06c
refactoring 3.0: OpenAIUtils, one action, constants
ikevin127 df9ef9c
refactoring 3.1: lint
ikevin127 623ca4d
refactoring 3.2: lint import
ikevin127 4ffbd42
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 090e17c
applied diff
ikevin127 5bf76b5
solved conflict
ikevin127 3f0a87f
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 edb3c56
added @octokit/webhooks-types and rebuilt gh-actions
ikevin127 036f890
fixed proposalPolice.yml
ikevin127 d252bff
lint, ready for review
ikevin127 02c2cf0
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 c04dc7c
added 'Proposal' keyword check
ikevin127 0b86bb7
clean install & rebuild
ikevin127 2cf10a1
Updated OpenAI keys
ikevin127 595eb1b
actions rebuild to fix validate fail
ikevin127 c0f2960
Merge branch 'main' of https://github.com/Expensify/App into feat/pro…
ikevin127 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17016,14 +17016,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12257,14 +12257,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11540,14 +11540,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14352,14 +14352,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11501,14 +11501,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11616,14 +11616,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2768,14 +2768,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11603,14 +11603,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11547,14 +11547,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11501,14 +11501,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11708,14 +11708,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11600,14 +11600,30 @@ 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', | ||
}, | ||
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: `[email protected]:${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.APP_REPO}.git`, | ||
NO_ACTION: 'NO_ACTION', | ||
OPENAI_POLL_RATE: 1500, | ||
OPENAI_POLL_TIMEOUT: 90000, | ||
}; | ||
exports["default"] = CONST; | ||
|
||
|
15 changes: 15 additions & 0 deletions
15
.github/actions/javascript/proposalPoliceComment/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,15 @@ | ||||||
name: 'ProposalPolice™ Comment Check Script' | ||||||
description: 'Verifies whether a proposal comment follows the template OR an updated proposal had substantial changes' | ||||||
inputs: | ||||||
GITHUB_TOKEN: | ||||||
description: 'Auth token for New Expensify Github' | ||||||
required: true | ||||||
OPENAI_API_KEY: | ||||||
description: 'OpenAI API key for accessing AI services' | ||||||
required: true | ||||||
OPENAI_ASSISTANT_ID: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And this one to
Suggested change
|
||||||
description: 'OpenAI Assistant ID for personalized AI assistant' | ||||||
required: true | ||||||
runs: | ||||||
using: 'node20' | ||||||
main: './index.js' |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's update this to
PROPOSAL_POLICE_API_KEY