Skip to content

Commit

Permalink
Add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jmetrikat committed May 29, 2024
1 parent 41cc682 commit 4549cc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/projectManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import LinearSync from "./linearSynchronizer";

export = (app: Probot) => {
// PROJECT MANAGEMENT
// change target repo based on STAND ENV
const targetRepo = process.env.STAND == 'prod' ? "contributors" : "bot-test";
const targetRepo = process.env.STAND == "prod" ? "contributors" : "bot-test";
const org = "anyproto";
const projectNumber = 4;

console.log("Target repository: " + targetRepo);

// For "🆕 New" issues, change status to "🏗 In progress", assigne @any-association to the issue, save comment’s author name to "Lead contributor"
// command format: @any assign me
// For "🏗 In progress" issues, change status to "New", remove assignee, remove the content of "Lead contributor"
Expand Down Expand Up @@ -195,6 +196,7 @@ export = (app: Probot) => {
LinearSync.changeStatus(issue, "readyForDev");
LinearSync.syncProjectField(projectId, issue, issueItemId, "Priority");
LinearSync.syncProjectField(projectId, issue, issueItemId, "Size");
console.log("Linear issue added to project");
}
}
});
Expand Down

0 comments on commit 4549cc8

Please sign in to comment.