diff --git a/.github/auto-comment.yml b/.github/auto-comment.yml index 0f5c529..3c25536 100644 --- a/.github/auto-comment.yml +++ b/.github/auto-comment.yml @@ -1,12 +1,21 @@ -# Comment to a new issue. -issueOpened: > - Thank your for raising a issue. We will try and get back to you as soon as possible. - - Please make sure you have given us as much context as possible. - - -pullRequestOpened: > - Thank your for raising your pull request. - - Please make sure you have followed our contributing guidelines. We will review it as soon as possible - +# Number of days of inactivity before an Issue or Pull Request becomes stale +daysUntilStale: 90 +# Number of days of inactivity before a stale Issue or Pull Request is closed +daysUntilClose: 30 +# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable +exemptLabels: + - pinned + - security +# Label to use when marking as stale +staleLabel: stale +# Comment to post when marking as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +# Comment to post when removing the stale label. Set to `false` to disable +unmarkComment: false +# Comment to post when closing a stale Issue or Pull Request. Set to `false` to disable +closeComment: true +# Limit to only `issues` or `pulls` +only: issues diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 0000000..dffe542 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,30 @@ +# 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: + - Jonghakseo + +# A number of reviewers added to the pull request +# Set 0 to add all the reviewers (default: 0) +numberOfReviewers: 0 + +# A list of assignees, overrides reviewers if set +# assignees: +# - assigneeA + +# A number of assignees to add to the pull request +# Set to 0 to add all of the assignees. +# Uses numberOfReviewers if unset. +# numberOfAssignees: 2 + +# A list of keywords to be skipped the process that add reviewers if pull requests include it +# skipKeywords: +# - wip + +filterLabels: + exclude: + - dependencies diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..f4c725e --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,12 @@ +name: 'Auto Assign' +on: + pull_request: + types: [opened, ready_for_review] + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.2.5 + with: + configuration-path: '.github/auto_assign.yml' diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000..bdac30b --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,16 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: 'Thank you for your contribution. We will check and reply to you as soon as possible.' + pr-message: 'Thank you for your contribution. We will check and reply to you as soon as possible.'