From f81da009e9cb72bb1718663ee8d3bbf0e6c12ed3 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Mon, 24 May 2021 17:15:48 +0900 Subject: [PATCH 1/4] Update action version in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 495868f..fea5aec 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ jobs: assign-author: runs-on: ubuntu-latest steps: - - uses: toshimaru/auto-author-assign@v1.3.3 + - uses: toshimaru/auto-author-assign@v1.3.4 ``` ## Use your token From 63a6f3dd597e490d3c3ef0dc2e42e91966ed86eb Mon Sep 17 00:00:00 2001 From: toshimaru Date: Mon, 24 May 2021 17:18:46 +0900 Subject: [PATCH 2/4] Build script --- dist/index.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6b788d5..ce6b4b1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6122,7 +6122,7 @@ async function run() { } const octokit = (0,_actions_github__WEBPACK_IMPORTED_MODULE_1__.getOctokit)(token); - const result = await octokit.issues.addAssignees({ + const result = await octokit.rest.issues.addAssignees({ owner: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo.owner, repo: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo.repo, issue_number: number, diff --git a/package-lock.json b/package-lock.json index 216a195..65074f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "auto-author-assign", - "version": "1.3.3", + "version": "1.3.4", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.3.3", + "version": "1.3.4", "license": "MIT", "dependencies": { "@actions/core": "^1.2.7", diff --git a/package.json b/package.json index 744907b..53f9b8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auto-author-assign", - "version": "1.3.3", + "version": "1.3.4", "description": "GitHub Actions: Assign pull request author automatically.", "main": "src/index.js", "scripts": { From e191ad7059519e8a5dc33a54006539d766891677 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Mon, 24 May 2021 17:20:42 +0900 Subject: [PATCH 3/4] Check on pull_request context --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 672b627..72b401c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ name: 'Auto Author Assign' -on: [pull_request_target] +on: [pull_request] permissions: pull-requests: write jobs: From f2389901b06381b7dc09013482f7abbffe8bb34a Mon Sep 17 00:00:00 2001 From: toshimaru Date: Mon, 24 May 2021 17:21:49 +0900 Subject: [PATCH 4/4] Revert "Check on pull_request context" This reverts commit e191ad7059519e8a5dc33a54006539d766891677. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72b401c..672b627 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ name: 'Auto Author Assign' -on: [pull_request] +on: [pull_request_target] permissions: pull-requests: write jobs: