From 556139396c4467500098be26551859f10c3449a8 Mon Sep 17 00:00:00 2001 From: Ehsan Saei <71217171+esigo@users.noreply.github.com> Date: Mon, 10 Jul 2023 17:04:22 +0200 Subject: [PATCH] opentelemetry-cpp project CI (#2071) --- .../workflows/project_management_comment.yml | 20 +++++++++++++++ .../project_management_issue_open.yml | 25 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/project_management_comment.yml create mode 100644 .github/workflows/project_management_issue_open.yml 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"] + })