Skip to content

Commit

Permalink
Add default gh workflows for tealc projects
Browse files Browse the repository at this point in the history
  • Loading branch information
kornys committed Nov 8, 2023
1 parent 9884ac4 commit d59f491
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions .github/workflows/bot_issue_mention.yaml
Original file line number Diff line number Diff line change
@@ -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'
})
13 changes: 13 additions & 0 deletions .github/workflows/bot_pr_auto_assign.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
22 changes: 22 additions & 0 deletions .github/workflows/bot_pr_mention.yaml
Original file line number Diff line number Diff line change
@@ -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'
})

0 comments on commit d59f491

Please sign in to comment.