Skip to content

Commit

Permalink
fix: cleanup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianKuesters committed Mar 25, 2024
1 parent 7a77059 commit c8c45e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
8 changes: 1 addition & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29190,20 +29190,14 @@ function run() {
core.info(`Creating release with the following notes:\n${releaseNotes}`);
yield gitHubRepositoryUtils.createRelease(releaseVersionTag, releaseTitle, releaseNotes || "No release notes provided", preRelease);
}
core.info("Continuing to label issues");
// Label issues
if (labelIssuesWith) {
core.info(`Labeling issues with ${labelIssuesWith}`);
const issueNumbers = issues.map((issue) => issue.number);
yield gitHubRepositoryUtils.addLabelToIssues(issueNumbers, labelIssuesWith);
}
// Update project
core.info(`Project number: ${projectNumber}`);
core.info(`Project status column name: ${projectStatusColumnName}`);
core.info(`Issues: ${issues.map((issue) => issue.number).join(", ")}`);
core.info(`Debug: ${projectNumber && projectStatusColumnName}`);
// Update project cards
if (projectNumber && projectStatusColumnName) {
core.info(`Updating project ${projectNumber} with status ${projectStatusColumnName}`);
const parsedProjectNumber = parseInt(projectNumber);
for (const issue of issues) {
core.info(`Updating project card of issue ${issue.number} with status ${projectStatusColumnName}`);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

12 changes: 1 addition & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,15 @@ async function run() {
);
}

core.info("Continuing to label issues");

// Label issues
if (labelIssuesWith) {
core.info(`Labeling issues with ${labelIssuesWith}`);
const issueNumbers = issues.map((issue) => issue.number);
await gitHubRepositoryUtils.addLabelToIssues(issueNumbers, labelIssuesWith);
}

// Update project
core.info(`Project number: ${projectNumber}`);
core.info(`Project status column name: ${projectStatusColumnName}`);
core.info(`Issues: ${issues.map((issue) => issue.number).join(", ")}`);

core.info(`Debug: ${projectNumber && projectStatusColumnName}`);
// Update project cards
if (projectNumber && projectStatusColumnName) {
core.info(
`Updating project ${projectNumber} with status ${projectStatusColumnName}`
);
const parsedProjectNumber = parseInt(projectNumber);

for (const issue of issues) {
Expand Down

0 comments on commit c8c45e9

Please sign in to comment.