Skip to content

Commit 23c0730

Browse files
authored
Update post-to-skills-issue.js changed lines of code edited for testing back to original state
1 parent 0e57320 commit 23c0730

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

github-actions/activity-trigger/post-to-skills-issue.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,11 @@ async function postToSkillsIssue({github, context}, activity) {
5252

5353

5454
// Get eventActor's Skills Issue number, nodeId, current statusId (all null if no Skills Issue found)
55-
// const skillsInfo = await querySkillsIssue(github, context, eventActor, SKILLS_LABEL);
56-
const skillsIssueNum = 17 ;
57-
const skillsIssueNodeId = null;
58-
const skillsStatusId = null;
59-
const isArchived = false;
60-
61-
// const skillsIssueNum = skillsInfo.issueNum;
62-
// const skillsIssueNodeId = skillsInfo.issueId;
63-
// const skillsStatusId = skillsInfo.statusId;
64-
// const isArchived = skillsInfo.isArchived;
55+
const skillsInfo = await querySkillsIssue(github, context, eventActor, SKILLS_LABEL);
56+
const skillsIssueNum = skillsInfo.issueNum;
57+
const skillsIssueNodeId = skillsInfo.issueId;
58+
const skillsStatusId = skillsInfo.statusId;
59+
const isArchived = skillsInfo.isArchived;
6560

6661
// Return immediately if Skills Issue not found
6762
if (!skillsIssueNum) {
@@ -119,8 +114,7 @@ async function postToSkillsIssue({github, context}, activity) {
119114
if (!(message.includes('closed') || message.includes('assigned') || isArchived)) {
120115

121116
// If eventActor is team member, open issue and move to "In progress"
122-
// const isActiveMember = await checkTeamMembership(github, context, eventActor, TEAM);
123-
const isActiveMember = true;
117+
const isActiveMember = await checkTeamMembership(github, context, eventActor, TEAM);
124118

125119
if (isActiveMember) {
126120
try {

0 commit comments

Comments
 (0)