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 24 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',
},
};
16 changes: 16 additions & 0 deletions .github/actions/javascript/authorChecklist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/awaitStagingDeploys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/checkDeployBlockers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/createOrUpdateStagingDeploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/getArtifactInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/getDeployPullRequestList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/getPreviousVersion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/getPullRequestDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/getReleaseBody/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/isStagingDeployLocked/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/markPullRequestsAsDeployed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions .github/actions/javascript/postTestBuildComment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
15 changes: 15 additions & 0 deletions .github/actions/javascript/proposalPoliceComment/action.yml
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:
Copy link
Contributor

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

Suggested change
OPENAI_API_KEY:
PROPOSAL_POLICE_API_KEY:

description: 'OpenAI API key for accessing AI services'
required: true
OPENAI_ASSISTANT_ID:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this one to PROPOSAL_POLICE_ASSISTANT_ID

Suggested change
OPENAI_ASSISTANT_ID:
PROPOSAL_POLICE_ASSISTANT_ID:

description: 'OpenAI Assistant ID for personalized AI assistant'
required: true
runs:
using: 'node20'
main: './index.js'
Loading
Loading