Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NOJIRA] feat: add github bot #40

Merged
merged 13 commits into from
May 8, 2022
2 changes: 2 additions & 0 deletions .github/auto_assign.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
addAssignees: author
runOnDraft: true
32 changes: 32 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
config:
- "*"
- .github/**/*
- .vscode/**/*
- !package.json
- !package-lock.json
- bode/*
- bode/.hooks/**/*
- cabra/*
- cabra/.hooks/**/*

deps:
- package.json
- package-lock.json
- cabra/package.json
- cabra/package-lock.json

bode:
- bode/**/*
- !bode/migrations/**/*

database:
- bode/migrations/**/*

cabra:
- cabra/**/*

test:
- bode/**/test_*.py
- bode/**/*_test.py
- cabra/**/*.spec.*
- cabra/**/*.test.*
25 changes: 25 additions & 0 deletions .github/workflows/github_bot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Github Bot"
on:
pull_request:
branches:
- develop
types: [opened, edited, reopened, synchronize]

jobs:
auto-assign:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/auto-assign-action@v1.2.1
with:
configuration-path: ".github/auto_assign.yaml"

labels:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/labeler.yaml"