From d59f4912a2276e6bf64a208ca160e45f539b91e4 Mon Sep 17 00:00:00 2001 From: David Kornel Date: Wed, 8 Nov 2023 18:50:46 +0100 Subject: [PATCH] Add default gh workflows for tealc projects --- .github/auto_assign.yml | 14 ++++++++++++++ .github/workflows/bot_issue_mention.yaml | 22 ++++++++++++++++++++++ .github/workflows/bot_pr_auto_assign.yaml | 13 +++++++++++++ .github/workflows/bot_pr_mention.yaml | 22 ++++++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 .github/auto_assign.yml create mode 100644 .github/workflows/bot_issue_mention.yaml create mode 100644 .github/workflows/bot_pr_auto_assign.yaml create mode 100644 .github/workflows/bot_pr_mention.yaml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 00000000..e845cc24 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,14 @@ +# Set to true to add reviewers to pull requests +addReviewers: true + +# Set to true to add assignees to pull requests +addAssignees: author + +# A list of reviewers to be added to pull requests (GitHub user name) +reviewers: + - kornys + - Frawless + +# A number of reviewers added to the pull request +# Set 0 to add all the reviewers (default: 0) +numberOfReviewers: 0 \ No newline at end of file diff --git a/.github/workflows/bot_issue_mention.yaml b/.github/workflows/bot_issue_mention.yaml new file mode 100644 index 00000000..65157f43 --- /dev/null +++ b/.github/workflows/bot_issue_mention.yaml @@ -0,0 +1,22 @@ +name: Tealc bot + +on: + issues: + types: + - opened + +jobs: + check-issue: + runs-on: ubuntu-latest + if: github.event_name != 'pull_request' + steps: + - name: Notify maintainers for new issue + uses: actions/github-script@v4 + with: + script: | + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Thanks for report!!!\n hey @kornys @Frawless' + }) diff --git a/.github/workflows/bot_pr_auto_assign.yaml b/.github/workflows/bot_pr_auto_assign.yaml new file mode 100644 index 00000000..827bf450 --- /dev/null +++ b/.github/workflows/bot_pr_auto_assign.yaml @@ -0,0 +1,13 @@ +name: Tealc bot + +on: + pull_request: + types: + - opened + - ready_for_review + +jobs: + assign: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.2.0 \ No newline at end of file diff --git a/.github/workflows/bot_pr_mention.yaml b/.github/workflows/bot_pr_mention.yaml new file mode 100644 index 00000000..b5bc19f9 --- /dev/null +++ b/.github/workflows/bot_pr_mention.yaml @@ -0,0 +1,22 @@ +name: Tealc bot + +on: + pull_request: + types: + - opened + +jobs: + check-pull-request: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + steps: + - name: Notify maintainers for new PR + uses: actions/github-script@v4 + with: + script: | + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Thanks for pull request!!!\n hey @kornys @Frawless' + })