Skip to content

Commit

Permalink
Update contribution-ready-to-be-worked.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andreancardona committed Oct 20, 2023
1 parent 78e9427 commit 96d854d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/contribution-ready-to-be-worked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,18 @@ jobs:
repo: context.repo.repo,
});
console.log('context', context.payload.label.name)
const commentText = "This issue is ready to be worked on. Volunteers, please feel free to join any of the [relevant meetups](https://carbondesignsystem.com/whats-happening/meetups/) to get guidance and feedback. We encourage you to bring any work in progress, no matter its state of completion. You can also ask any questions on Slack. For design questions, the best channels are: [#carbon-design-system](https://ibm-studios.slack.com/archives/C0M053VPT) and [#figma-guild](https://ibm-studios.slack.com/archives/C023WKW6J5U). For developer questions, the best channels are: [#carbon-react](https://ibm-studios.slack.com/archives/C2K6RFJ1G), [#carbon-web-components](https://ibm-studios.slack.com/archives/CL83LMKSA)."
if ((context.payload.label.name === 'needs: code contribution') || (context.payload.label.name === 'needs: design contribution') && !commentsArray.includes(commentText)) {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: commentText
});
} else {
console.log('No comment added because the conditions are not met.');
}
- name: Set Output
if: steps.conditional-comment.outcome == 'success'
Expand Down

0 comments on commit 96d854d

Please sign in to comment.