This is an automated email from the ASF dual-hosted git repository.
monkeydluffy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 4ea0dda7b fix(ci): replace github action in update-labels.yml (#9987)
4ea0dda7b is described below
commit 4ea0dda7b7afc58c2d69a4b420637e90ff2bda61
Author: Abhishek Choudhary <[email protected]>
AuthorDate: Tue Aug 8 22:23:05 2023 +0545
fix(ci): replace github action in update-labels.yml (#9987)
---
.github/workflows/update-labels.yml | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/update-labels.yml
b/.github/workflows/update-labels.yml
index 9667dfda6..262604f23 100644
--- a/.github/workflows/update-labels.yml
+++ b/.github/workflows/update-labels.yml
@@ -12,8 +12,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: update labels when user responds
- uses: andymckay/labeler@master
+ uses: actions/github-script@v6
if: ${{ github.event.comment.user.login ==
github.event.issue.user.login && contains(github.event.issue.labels.*.name,
'wait for update') && !contains(github.event.issue.labels.*.name, 'user
responded') }}
with:
- add-labels: 'user responded'
- remove-labels: 'wait for update'
+ script: |
+ github.rest.issues.addLabels({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ labels: ["user responded"]
+ })
+ github.rest.issues.removeLabel({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ name: "wait for update"
+ })