Skip to content

Commit b98f2be

Browse files
efraespadaactions-user
authored andcommitted
gh-action: updated compiled files
1 parent e0f79c9 commit b98f2be

24 files changed

+3263
-341
lines changed

dist/index.js

Lines changed: 2847 additions & 271 deletions
Large diffs are not rendered by default.

dist/src/actions/common_action.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ var __importStar = (this && this.__importStar) || (function () {
3232
return result;
3333
};
3434
})();
35+
var __importDefault = (this && this.__importDefault) || function (mod) {
36+
return (mod && mod.__esModule) ? mod : { "default": mod };
37+
};
3538
Object.defineProperty(exports, "__esModule", { value: true });
3639
exports.mainRun = mainRun;
3740
const core = __importStar(require("@actions/core"));
@@ -42,6 +45,9 @@ const pull_request_review_comment_use_case_1 = require("../usecase/pull_request_
4245
const pull_request_use_case_1 = require("../usecase/pull_request_use_case");
4346
const single_action_use_case_1 = require("../usecase/single_action_use_case");
4447
const logger_1 = require("../utils/logger");
48+
const constants_1 = require("../utils/constants");
49+
const chalk_1 = __importDefault(require("chalk"));
50+
const boxen_1 = __importDefault(require("boxen"));
4551
async function mainRun(execution) {
4652
await execution.setup();
4753
if (execution.runnedByToken) {
@@ -52,6 +58,17 @@ async function mainRun(execution) {
5258
(0, logger_1.logInfo)(`Issue number not found. Skipping.`);
5359
return [];
5460
}
61+
if (execution.welcome) {
62+
(0, logger_1.logInfo)((0, boxen_1.default)(chalk_1.default.cyan(execution.welcome.title) +
63+
execution.welcome.messages.map(message => chalk_1.default.gray(message)).join('\n'), {
64+
padding: 1,
65+
margin: 1,
66+
borderStyle: 'round',
67+
borderColor: 'cyan',
68+
title: constants_1.TITLE,
69+
titleAlignment: 'center'
70+
}));
71+
}
5572
const results = [];
5673
try {
5774
if (execution.isSingleAction) {

dist/src/actions/github_action.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ async function runGitHubAction() {
6666
* Debug
6767
*/
6868
const debug = core.getInput(constants_1.INPUT_KEYS.DEBUG) == 'true';
69+
/**
70+
* Docker
71+
*/
6972
const dockerContainerName = core.getInput(constants_1.INPUT_KEYS.DOCKER_CONTAINER_NAME);
7073
const dockerDomain = core.getInput(constants_1.INPUT_KEYS.DOCKER_DOMAIN);
7174
const dockerPort = parseInt(core.getInput(constants_1.INPUT_KEYS.DOCKER_PORT));
@@ -85,6 +88,7 @@ async function runGitHubAction() {
8588
const openrouterModel = core.getInput(constants_1.INPUT_KEYS.OPENROUTER_MODEL);
8689
const aiPullRequestDescription = core.getInput(constants_1.INPUT_KEYS.AI_PULL_REQUEST_DESCRIPTION) === 'true';
8790
const aiMembersOnly = core.getInput(constants_1.INPUT_KEYS.AI_MEMBERS_ONLY) === 'true';
91+
const aiIncludeReasoning = core.getInput(constants_1.INPUT_KEYS.AI_INCLUDE_REASONING) === 'true';
8892
const aiIgnoreFilesInput = core.getInput(constants_1.INPUT_KEYS.AI_IGNORE_FILES);
8993
const aiIgnoreFiles = aiIgnoreFilesInput
9094
.split(',')
@@ -421,7 +425,7 @@ async function runGitHubAction() {
421425
*/
422426
const supabaseUrl = core.getInput(constants_1.INPUT_KEYS.SUPABASE_URL);
423427
const supabaseKey = core.getInput(constants_1.INPUT_KEYS.SUPABASE_KEY);
424-
const execution = new execution_1.Execution(debug, new docker_config_1.DockerConfig(dockerContainerName, dockerDomain, dockerPort), new single_action_1.SingleAction(singleAction, singleActionIssue), commitPrefixBuilder, new issue_1.Issue(branchManagementAlways, reopenIssueOnPush, issueDesiredAssigneesCount), new pull_request_1.PullRequest(pullRequestDesiredAssigneesCount, pullRequestDesiredReviewersCount, pullRequestMergeTimeout), new emoji_1.Emoji(titleEmoji, branchManagementEmoji), new images_1.Images(imagesOnIssue, imagesOnPullRequest, imagesOnCommit, imagesIssueAutomatic, imagesIssueFeature, imagesIssueBugfix, imagesIssueDocs, imagesIssueChore, imagesIssueRelease, imagesIssueHotfix, imagesPullRequestAutomatic, imagesPullRequestFeature, imagesPullRequestBugfix, imagesPullRequestRelease, imagesPullRequestHotfix, imagesPullRequestDocs, imagesPullRequestChore, imagesCommitAutomatic, imagesCommitFeature, imagesCommitBugfix, imagesCommitRelease, imagesCommitHotfix, imagesCommitDocs, imagesCommitChore), new tokens_1.Tokens(token), new ai_1.Ai(openrouterApiKey, openrouterModel, aiPullRequestDescription, aiMembersOnly, aiIgnoreFiles, Object.keys(providerRouting).length > 0 ? providerRouting : undefined), new labels_1.Labels(branchManagementLauncherLabel, bugLabel, bugfixLabel, hotfixLabel, enhancementLabel, featureLabel, releaseLabel, questionLabel, helpLabel, deployLabel, deployedLabel, docsLabel, documentationLabel, choreLabel, maintenanceLabel, priorityHighLabel, priorityMediumLabel, priorityLowLabel, priorityNoneLabel, sizeXxlLabel, sizeXlLabel, sizeLLabel, sizeMLabel, sizeSLabel, sizeXsLabel), new issue_types_1.IssueTypes(issueTypeTask, issueTypeBug, issueTypeFeature, issueTypeDocumentation, issueTypeMaintenance, issueTypeHotfix, issueTypeRelease, issueTypeQuestion, issueTypeHelp), new locale_1.Locale(issueLocale, pullRequestLocale), new size_thresholds_1.SizeThresholds(new size_threshold_1.SizeThreshold(sizeXxlThresholdLines, sizeXxlThresholdFiles, sizeXxlThresholdCommits), new size_threshold_1.SizeThreshold(sizeXlThresholdLines, sizeXlThresholdFiles, sizeXlThresholdCommits), new size_threshold_1.SizeThreshold(sizeLThresholdLines, sizeLThresholdFiles, sizeLThresholdCommits), new size_threshold_1.SizeThreshold(sizeMThresholdLines, sizeMThresholdFiles, sizeMThresholdCommits), new size_threshold_1.SizeThreshold(sizeSThresholdLines, sizeSThresholdFiles, sizeSThresholdCommits), new size_threshold_1.SizeThreshold(sizeXsThresholdLines, sizeXsThresholdFiles, sizeXsThresholdCommits)), new branches_1.Branches(mainBranch, developmentBranch, featureTree, bugfixTree, hotfixTree, releaseTree, docsTree, choreTree), new release_1.Release(), new hotfix_1.Hotfix(), new workflows_1.Workflows(releaseWorkflow, hotfixWorkflow), new projects_1.Projects(projects, projectColumnIssueCreated, projectColumnPullRequestCreated, projectColumnIssueInProgress, projectColumnPullRequestInProgress), new supabase_config_1.SupabaseConfig(supabaseUrl, supabaseKey), undefined);
428+
const execution = new execution_1.Execution(debug, new docker_config_1.DockerConfig(dockerContainerName, dockerDomain, dockerPort), new single_action_1.SingleAction(singleAction, singleActionIssue), commitPrefixBuilder, new issue_1.Issue(branchManagementAlways, reopenIssueOnPush, issueDesiredAssigneesCount), new pull_request_1.PullRequest(pullRequestDesiredAssigneesCount, pullRequestDesiredReviewersCount, pullRequestMergeTimeout), new emoji_1.Emoji(titleEmoji, branchManagementEmoji), new images_1.Images(imagesOnIssue, imagesOnPullRequest, imagesOnCommit, imagesIssueAutomatic, imagesIssueFeature, imagesIssueBugfix, imagesIssueDocs, imagesIssueChore, imagesIssueRelease, imagesIssueHotfix, imagesPullRequestAutomatic, imagesPullRequestFeature, imagesPullRequestBugfix, imagesPullRequestRelease, imagesPullRequestHotfix, imagesPullRequestDocs, imagesPullRequestChore, imagesCommitAutomatic, imagesCommitFeature, imagesCommitBugfix, imagesCommitRelease, imagesCommitHotfix, imagesCommitDocs, imagesCommitChore), new tokens_1.Tokens(token), new ai_1.Ai(openrouterApiKey, openrouterModel, aiPullRequestDescription, aiMembersOnly, aiIgnoreFiles, aiIncludeReasoning, Object.keys(providerRouting).length > 0 ? providerRouting : undefined), new labels_1.Labels(branchManagementLauncherLabel, bugLabel, bugfixLabel, hotfixLabel, enhancementLabel, featureLabel, releaseLabel, questionLabel, helpLabel, deployLabel, deployedLabel, docsLabel, documentationLabel, choreLabel, maintenanceLabel, priorityHighLabel, priorityMediumLabel, priorityLowLabel, priorityNoneLabel, sizeXxlLabel, sizeXlLabel, sizeLLabel, sizeMLabel, sizeSLabel, sizeXsLabel), new issue_types_1.IssueTypes(issueTypeTask, issueTypeBug, issueTypeFeature, issueTypeDocumentation, issueTypeMaintenance, issueTypeHotfix, issueTypeRelease, issueTypeQuestion, issueTypeHelp), new locale_1.Locale(issueLocale, pullRequestLocale), new size_thresholds_1.SizeThresholds(new size_threshold_1.SizeThreshold(sizeXxlThresholdLines, sizeXxlThresholdFiles, sizeXxlThresholdCommits), new size_threshold_1.SizeThreshold(sizeXlThresholdLines, sizeXlThresholdFiles, sizeXlThresholdCommits), new size_threshold_1.SizeThreshold(sizeLThresholdLines, sizeLThresholdFiles, sizeLThresholdCommits), new size_threshold_1.SizeThreshold(sizeMThresholdLines, sizeMThresholdFiles, sizeMThresholdCommits), new size_threshold_1.SizeThreshold(sizeSThresholdLines, sizeSThresholdFiles, sizeSThresholdCommits), new size_threshold_1.SizeThreshold(sizeXsThresholdLines, sizeXsThresholdFiles, sizeXsThresholdCommits)), new branches_1.Branches(mainBranch, developmentBranch, featureTree, bugfixTree, hotfixTree, releaseTree, docsTree, choreTree), new release_1.Release(), new hotfix_1.Hotfix(), new workflows_1.Workflows(releaseWorkflow, hotfixWorkflow), new projects_1.Projects(projects, projectColumnIssueCreated, projectColumnPullRequestCreated, projectColumnIssueInProgress, projectColumnPullRequestInProgress), new supabase_config_1.SupabaseConfig(supabaseUrl, supabaseKey), undefined, undefined);
425429
const results = await (0, common_action_1.mainRun)(execution);
426430
await finishWithResults(execution, results);
427431
}

dist/src/actions/local_action.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const size_threshold_1 = require("../data/model/size_threshold");
2020
const size_thresholds_1 = require("../data/model/size_thresholds");
2121
const supabase_config_1 = require("../data/model/supabase_config");
2222
const tokens_1 = require("../data/model/tokens");
23+
const welcome_1 = require("../data/model/welcome");
2324
const workflows_1 = require("../data/model/workflows");
2425
const project_repository_1 = require("../data/repository/project_repository");
2526
const constants_1 = require("../utils/constants");
@@ -33,6 +34,11 @@ async function runLocalAction(additionalParams) {
3334
* Debug
3435
*/
3536
const debug = (additionalParams[constants_1.INPUT_KEYS.DEBUG] ?? actionInputs[constants_1.INPUT_KEYS.DEBUG]) == 'true';
37+
/**
38+
* Welcome
39+
*/
40+
const welcomeTitle = additionalParams[constants_1.INPUT_KEYS.WELCOME_TITLE] ?? actionInputs[constants_1.INPUT_KEYS.WELCOME_TITLE];
41+
const welcomeMessages = additionalParams[constants_1.INPUT_KEYS.WELCOME_MESSAGES] ?? actionInputs[constants_1.INPUT_KEYS.WELCOME_MESSAGES];
3642
/**
3743
* Docker
3844
*/
@@ -55,6 +61,7 @@ async function runLocalAction(additionalParams) {
5561
const openrouterModel = additionalParams[constants_1.INPUT_KEYS.OPENROUTER_MODEL] ?? actionInputs[constants_1.INPUT_KEYS.OPENROUTER_MODEL];
5662
const aiPullRequestDescription = (additionalParams[constants_1.INPUT_KEYS.AI_PULL_REQUEST_DESCRIPTION] ?? actionInputs[constants_1.INPUT_KEYS.AI_PULL_REQUEST_DESCRIPTION]) === 'true';
5763
const aiMembersOnly = (additionalParams[constants_1.INPUT_KEYS.AI_MEMBERS_ONLY] ?? actionInputs[constants_1.INPUT_KEYS.AI_MEMBERS_ONLY]) === 'true';
64+
const aiIncludeReasoning = (additionalParams[constants_1.INPUT_KEYS.AI_INCLUDE_REASONING] ?? actionInputs[constants_1.INPUT_KEYS.AI_INCLUDE_REASONING]) === 'true';
5865
const aiIgnoreFilesInput = additionalParams[constants_1.INPUT_KEYS.AI_IGNORE_FILES] ?? actionInputs[constants_1.INPUT_KEYS.AI_IGNORE_FILES];
5966
const aiIgnoreFiles = aiIgnoreFilesInput
6067
.split(',')
@@ -391,7 +398,7 @@ async function runLocalAction(additionalParams) {
391398
*/
392399
const supabaseUrl = additionalParams[constants_1.INPUT_KEYS.SUPABASE_URL] ?? actionInputs[constants_1.INPUT_KEYS.SUPABASE_URL];
393400
const supabaseKey = additionalParams[constants_1.INPUT_KEYS.SUPABASE_KEY] ?? actionInputs[constants_1.INPUT_KEYS.SUPABASE_KEY];
394-
const execution = new execution_1.Execution(debug, new docker_config_1.DockerConfig(dockerContainerName, dockerDomain, dockerPort), new single_action_1.SingleAction(singleAction, singleActionIssue), commitPrefixBuilder, new issue_1.Issue(branchManagementAlways, reopenIssueOnPush, issueDesiredAssigneesCount, additionalParams), new pull_request_1.PullRequest(pullRequestDesiredAssigneesCount, pullRequestDesiredReviewersCount, pullRequestMergeTimeout, additionalParams), new emoji_1.Emoji(titleEmoji, branchManagementEmoji), new images_1.Images(imagesOnIssue, imagesOnPullRequest, imagesOnCommit, imagesIssueAutomatic, imagesIssueFeature, imagesIssueBugfix, imagesIssueDocs, imagesIssueChore, imagesIssueRelease, imagesIssueHotfix, imagesPullRequestAutomatic, imagesPullRequestFeature, imagesPullRequestBugfix, imagesPullRequestRelease, imagesPullRequestHotfix, imagesPullRequestDocs, imagesPullRequestChore, imagesCommitAutomatic, imagesCommitFeature, imagesCommitBugfix, imagesCommitRelease, imagesCommitHotfix, imagesCommitDocs, imagesCommitChore), new tokens_1.Tokens(token), new ai_1.Ai(openrouterApiKey, openrouterModel, aiPullRequestDescription, aiMembersOnly, aiIgnoreFiles, Object.keys(providerRouting).length > 0 ? providerRouting : undefined), new labels_1.Labels(branchManagementLauncherLabel, bugLabel, bugfixLabel, hotfixLabel, enhancementLabel, featureLabel, releaseLabel, questionLabel, helpLabel, deployLabel, deployedLabel, docsLabel, documentationLabel, choreLabel, maintenanceLabel, priorityHighLabel, priorityMediumLabel, priorityLowLabel, priorityNoneLabel, sizeXxlLabel, sizeXlLabel, sizeLLabel, sizeMLabel, sizeSLabel, sizeXsLabel), new issue_types_1.IssueTypes(issueTypeTask, issueTypeBug, issueTypeFeature, issueTypeDocumentation, issueTypeMaintenance, issueTypeHotfix, issueTypeRelease, issueTypeQuestion, issueTypeHelp), new locale_1.Locale(issueLocale, pullRequestLocale), new size_thresholds_1.SizeThresholds(new size_threshold_1.SizeThreshold(sizeXxlThresholdLines, sizeXxlThresholdFiles, sizeXxlThresholdCommits), new size_threshold_1.SizeThreshold(sizeXlThresholdLines, sizeXlThresholdFiles, sizeXlThresholdCommits), new size_threshold_1.SizeThreshold(sizeLThresholdLines, sizeLThresholdFiles, sizeLThresholdCommits), new size_threshold_1.SizeThreshold(sizeMThresholdLines, sizeMThresholdFiles, sizeMThresholdCommits), new size_threshold_1.SizeThreshold(sizeSThresholdLines, sizeSThresholdFiles, sizeSThresholdCommits), new size_threshold_1.SizeThreshold(sizeXsThresholdLines, sizeXsThresholdFiles, sizeXsThresholdCommits)), new branches_1.Branches(mainBranch, developmentBranch, featureTree, bugfixTree, hotfixTree, releaseTree, docsTree, choreTree), new release_1.Release(), new hotfix_1.Hotfix(), new workflows_1.Workflows(releaseWorkflow, hotfixWorkflow), new projects_1.Projects(projects, projectColumnIssueCreated, projectColumnPullRequestCreated, projectColumnIssueInProgress, projectColumnPullRequestInProgress), new supabase_config_1.SupabaseConfig(supabaseUrl, supabaseKey), additionalParams);
401+
const execution = new execution_1.Execution(debug, new docker_config_1.DockerConfig(dockerContainerName, dockerDomain, dockerPort), new single_action_1.SingleAction(singleAction, singleActionIssue), commitPrefixBuilder, new issue_1.Issue(branchManagementAlways, reopenIssueOnPush, issueDesiredAssigneesCount, additionalParams), new pull_request_1.PullRequest(pullRequestDesiredAssigneesCount, pullRequestDesiredReviewersCount, pullRequestMergeTimeout, additionalParams), new emoji_1.Emoji(titleEmoji, branchManagementEmoji), new images_1.Images(imagesOnIssue, imagesOnPullRequest, imagesOnCommit, imagesIssueAutomatic, imagesIssueFeature, imagesIssueBugfix, imagesIssueDocs, imagesIssueChore, imagesIssueRelease, imagesIssueHotfix, imagesPullRequestAutomatic, imagesPullRequestFeature, imagesPullRequestBugfix, imagesPullRequestRelease, imagesPullRequestHotfix, imagesPullRequestDocs, imagesPullRequestChore, imagesCommitAutomatic, imagesCommitFeature, imagesCommitBugfix, imagesCommitRelease, imagesCommitHotfix, imagesCommitDocs, imagesCommitChore), new tokens_1.Tokens(token), new ai_1.Ai(openrouterApiKey, openrouterModel, aiPullRequestDescription, aiMembersOnly, aiIgnoreFiles, aiIncludeReasoning, Object.keys(providerRouting).length > 0 ? providerRouting : undefined), new labels_1.Labels(branchManagementLauncherLabel, bugLabel, bugfixLabel, hotfixLabel, enhancementLabel, featureLabel, releaseLabel, questionLabel, helpLabel, deployLabel, deployedLabel, docsLabel, documentationLabel, choreLabel, maintenanceLabel, priorityHighLabel, priorityMediumLabel, priorityLowLabel, priorityNoneLabel, sizeXxlLabel, sizeXlLabel, sizeLLabel, sizeMLabel, sizeSLabel, sizeXsLabel), new issue_types_1.IssueTypes(issueTypeTask, issueTypeBug, issueTypeFeature, issueTypeDocumentation, issueTypeMaintenance, issueTypeHotfix, issueTypeRelease, issueTypeQuestion, issueTypeHelp), new locale_1.Locale(issueLocale, pullRequestLocale), new size_thresholds_1.SizeThresholds(new size_threshold_1.SizeThreshold(sizeXxlThresholdLines, sizeXxlThresholdFiles, sizeXxlThresholdCommits), new size_threshold_1.SizeThreshold(sizeXlThresholdLines, sizeXlThresholdFiles, sizeXlThresholdCommits), new size_threshold_1.SizeThreshold(sizeLThresholdLines, sizeLThresholdFiles, sizeLThresholdCommits), new size_threshold_1.SizeThreshold(sizeMThresholdLines, sizeMThresholdFiles, sizeMThresholdCommits), new size_threshold_1.SizeThreshold(sizeSThresholdLines, sizeSThresholdFiles, sizeSThresholdCommits), new size_threshold_1.SizeThreshold(sizeXsThresholdLines, sizeXsThresholdFiles, sizeXsThresholdCommits)), new branches_1.Branches(mainBranch, developmentBranch, featureTree, bugfixTree, hotfixTree, releaseTree, docsTree, choreTree), new release_1.Release(), new hotfix_1.Hotfix(), new workflows_1.Workflows(releaseWorkflow, hotfixWorkflow), new projects_1.Projects(projects, projectColumnIssueCreated, projectColumnPullRequestCreated, projectColumnIssueInProgress, projectColumnPullRequestInProgress), new supabase_config_1.SupabaseConfig(supabaseUrl, supabaseKey), new welcome_1.Welcome(welcomeTitle, welcomeMessages), additionalParams);
395402
const results = await (0, common_action_1.mainRun)(execution);
396403
(0, logger_1.logInfo)(`Results: ${JSON.stringify(results, null, 2)}`);
397404
}

0 commit comments

Comments
 (0)