diff --git a/.github/workflows/project_management_comment.yml b/.github/workflows/project_management_comment.yml new file mode 100644 index 0000000000..417202b410 --- /dev/null +++ b/.github/workflows/project_management_comment.yml @@ -0,0 +1,20 @@ + +name: Add comment +on: + issues: + types: + - labeled +jobs: + add-comment: + if: github.event.label.name == 'help wanted' + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Add comment + uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae + with: + issue-number: ${{ github.event.issue.number }} + body: | + This issue is available for anyone to work on. **Make sure to reference this issue in your pull request.** + :sparkles: Thank you for your contribution! :sparkles: diff --git a/.github/workflows/project_management_issue_open.yml b/.github/workflows/project_management_issue_open.yml new file mode 100644 index 0000000000..d9c1b3893f --- /dev/null +++ b/.github/workflows/project_management_issue_open.yml @@ -0,0 +1,25 @@ +name: OpenTelemetry-cpp project +on: + issues: + types: + - reopened + - opened + pull_request: + types: + - reopened + - opened +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["needs-triage"] + })