From 0f7ef94e69d191dac68f26b240def08b9fcba4e6 Mon Sep 17 00:00:00 2001 From: Taka Date: Tue, 23 Feb 2021 19:08:00 +0000 Subject: [PATCH] Use CODEOWNERS as I don't need to worry about security issues (#36) * Use CODEOWNERS as I don't need to worry about security issues * Add a config file for testing --- .github/CODEOWNERS | 1 + .github/workflows/auto_request_review.yml | 15 --------------- .../assets/reviewers.yml | 0 test/github.test.js | 2 +- 4 files changed, 2 insertions(+), 16 deletions(-) create mode 100644 .github/CODEOWNERS delete mode 100644 .github/workflows/auto_request_review.yml rename .github/auto_request_review.yml => test/assets/reviewers.yml (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..3308c23 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @necojackarc diff --git a/.github/workflows/auto_request_review.yml b/.github/workflows/auto_request_review.yml deleted file mode 100644 index ee3e5d8..0000000 --- a/.github/workflows/auto_request_review.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Auto Request Review - -on: - pull_request: - types: [opened, ready_for_review, reopened] - -jobs: - auto-request-review: - name: Auto Request Review - runs-on: ubuntu-latest - steps: - - name: Request review based on files changes and/or groups the author belongs to - uses: necojackarc/auto-request-review@master - with: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/auto_request_review.yml b/test/assets/reviewers.yml similarity index 100% rename from .github/auto_request_review.yml rename to test/assets/reviewers.yml diff --git a/test/github.test.js b/test/github.test.js index 48b99c4..d27a7e1 100644 --- a/test/github.test.js +++ b/test/github.test.js @@ -44,7 +44,7 @@ describe('github', function() { }); describe('fetch_config()', function() { - const config_path = '.github/auto_request_review.yml'; + const config_path = 'test/assets/reviewers.yml'; const encoding = 'utf8'; const content = fs.readFileSync(config_path, encoding);