Module: kamailio Branch: master Commit: e479abe5a56e0576b5d5707fbdd7b65d33cf3599 URL: https://github.com/kamailio/kamailio/commit/e479abe5a56e0576b5d5707fbdd7b65d33cf3599
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2023-11-27T14:06:15+01:00 github: rework labels workflow [skip ci] --- Modified: .github/workflows/labels.yml --- Diff: https://github.com/kamailio/kamailio/commit/e479abe5a56e0576b5d5707fbdd7b65d33cf3599.diff Patch: https://github.com/kamailio/kamailio/commit/e479abe5a56e0576b5d5707fbdd7b65d33cf3599.patch --- diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 51aa34a603f..6dc1ba6f8a0 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -11,10 +11,10 @@ jobs: with: script: | github.rest.issues.removeLabel({ - context.repo.owner, - context.repo.repo, - context.issue.number, - name, + owner: context.repo.owner, + repo: context.repo.repo, + issue_number:context.issue.number, + name: "stale", }); - uses: actions/github-script@v7 if: ${{ !github.event.issue.pull_request && contains(github.event.comment.body, '/notexpired') }} @@ -36,3 +36,19 @@ jobs: pull_number: context.issue.number, state: "open", }); + - uses: actions/github-script@v7 + if: ${{ contains(github.event.comment.body, '/notexpired') }} + with: + script: | + github.rest.issues.removeLabel({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + name: "stale", + }); + github.rest.issues.removeLabel({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + name: "expired", + }); _______________________________________________ Kamailio (SER) - Development Mailing List To unsubscribe send an email to sr-dev-le...@lists.kamailio.org