From ace0c6afaa7915607460f45e4d59a03107228854 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sun, 13 Dec 2020 15:10:12 +0100 Subject: [PATCH 1/7] Update auto_assign.yml --- .github/auto_assign.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml index 7b01d44..6099a24 100644 --- a/.github/auto_assign.yml +++ b/.github/auto_assign.yml @@ -1,9 +1,8 @@ -# Set to true to add reviewers to pull requests -addReviewers: true - # Set to true to add assignees to pull requests addAssignees: true # A list of reviewers to be added to pull requests (GitHub user name) -reviewers: +assignees: - peterus + +numberOfAssignees: 0 From 3efff010d3e9e6937e3458bbe3e6aa3c8a413b42 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 14 Dec 2020 16:30:12 +0100 Subject: [PATCH 2/7] add auto assign script --- .github/workflows/auto_assign.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/workflows/auto_assign.yml diff --git a/.github/workflows/auto_assign.yml b/.github/workflows/auto_assign.yml new file mode 100644 index 0000000..d03ca06 --- /dev/null +++ b/.github/workflows/auto_assign.yml @@ -0,0 +1,8 @@ +name: 'Auto Assign' +on: pull_request + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.1.2 From dd22a0a70cdc7f2f5602e07c0d655534648065d1 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 14 Dec 2020 16:36:38 +0100 Subject: [PATCH 3/7] lets ty this --- .github/auto_assign.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml index 6099a24..24d8ad9 100644 --- a/.github/auto_assign.yml +++ b/.github/auto_assign.yml @@ -1,8 +1,4 @@ -# Set to true to add assignees to pull requests addAssignees: true -# A list of reviewers to be added to pull requests (GitHub user name) assignees: - peterus - -numberOfAssignees: 0 From 710b1320c06bec0f4b8ea16290f784bf7891d93f Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 14 Dec 2020 17:00:53 +0100 Subject: [PATCH 4/7] try another script --- .github/auto_assign.yml | 4 ---- .github/workflows/auto_assign.yml | 15 +++++++++++---- 2 files changed, 11 insertions(+), 8 deletions(-) delete mode 100644 .github/auto_assign.yml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml deleted file mode 100644 index 24d8ad9..0000000 --- a/.github/auto_assign.yml +++ /dev/null @@ -1,4 +0,0 @@ -addAssignees: true - -assignees: - - peterus diff --git a/.github/workflows/auto_assign.yml b/.github/workflows/auto_assign.yml index d03ca06..30cedb9 100644 --- a/.github/workflows/auto_assign.yml +++ b/.github/workflows/auto_assign.yml @@ -1,8 +1,15 @@ -name: 'Auto Assign' -on: pull_request +name: Issue assignment + +on: + issues: + types: [opened] jobs: - add-reviews: + auto-assign: runs-on: ubuntu-latest steps: - - uses: kentaro-m/auto-assign-action@v1.1.2 + - name: 'Auto-assign issue' + uses: pozil/auto-assign-issue@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: peterus From 44832d05c437ed1a0084a0749b5786839913d6da Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 14 Dec 2020 17:17:25 +0100 Subject: [PATCH 5/7] lets try this :) --- .github/auto-assign.yml | 11 +++++++++++ .github/workflows/auto_assign.yml | 21 ++++++++++++++------- 2 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 .github/auto-assign.yml diff --git a/.github/auto-assign.yml b/.github/auto-assign.yml new file mode 100644 index 0000000..48e9541 --- /dev/null +++ b/.github/auto-assign.yml @@ -0,0 +1,11 @@ +# Set to true to add assignees to PRs +addAssignees: true + +# A list of assignees, overrides reviewers if set +assignees: + - peterus + +# A number of assignees to add to the PRs +# Set to 0 to add all of the assignees. +# Uses numberOfReviewers if unset. +numberOfAssignees: 0 diff --git a/.github/workflows/auto_assign.yml b/.github/workflows/auto_assign.yml index 30cedb9..fc9d534 100644 --- a/.github/workflows/auto_assign.yml +++ b/.github/workflows/auto_assign.yml @@ -1,15 +1,22 @@ -name: Issue assignment - +name: Auto Assign on: issues: types: [opened] + pull_request: + types: [opened] jobs: - auto-assign: + test: runs-on: ubuntu-latest steps: - - name: 'Auto-assign issue' - uses: pozil/auto-assign-issue@v1 + - uses: actions/checkout@v2 + - name: 🚧 Install + run: | + yarn + - name: 📦 Build + run: | + yarn build + - uses: ./ with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: peterus + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CONFIG_FILE: .github/auto-assign.yml \ No newline at end of file From ff9fedeed88fd5776e8d57734ebd01b6cab04194 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 14 Dec 2020 17:20:42 +0100 Subject: [PATCH 6/7] ups... --- .github/workflows/auto_assign.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/auto_assign.yml b/.github/workflows/auto_assign.yml index fc9d534..79c4105 100644 --- a/.github/workflows/auto_assign.yml +++ b/.github/workflows/auto_assign.yml @@ -4,19 +4,11 @@ on: types: [opened] pull_request: types: [opened] - jobs: - test: + run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: 🚧 Install - run: | - yarn - - name: 📦 Build - run: | - yarn build - - uses: ./ + - uses: bubkoo/auto-assign@v1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CONFIG_FILE: .github/auto-assign.yml \ No newline at end of file + CONFIG_FILE: .github/auto-assign.yml From 08591a30d160044bc9550f1469bf63a25117c42d Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 14 Dec 2020 17:26:57 +0100 Subject: [PATCH 7/7] cleanup --- .github/auto-assign.yml | 11 ----------- .github/workflows/auto_assign.yml | 14 -------------- 2 files changed, 25 deletions(-) delete mode 100644 .github/auto-assign.yml delete mode 100644 .github/workflows/auto_assign.yml diff --git a/.github/auto-assign.yml b/.github/auto-assign.yml deleted file mode 100644 index 48e9541..0000000 --- a/.github/auto-assign.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Set to true to add assignees to PRs -addAssignees: true - -# A list of assignees, overrides reviewers if set -assignees: - - peterus - -# A number of assignees to add to the PRs -# Set to 0 to add all of the assignees. -# Uses numberOfReviewers if unset. -numberOfAssignees: 0 diff --git a/.github/workflows/auto_assign.yml b/.github/workflows/auto_assign.yml deleted file mode 100644 index 79c4105..0000000 --- a/.github/workflows/auto_assign.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Auto Assign -on: - issues: - types: [opened] - pull_request: - types: [opened] -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: bubkoo/auto-assign@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CONFIG_FILE: .github/auto-assign.yml