Module: kamailio Branch: master Commit: e479abe5a56e0576b5d5707fbdd7b65d33cf3599 URL: https://github.com/kamailio/kamailio/commit/e479abe5a56e0576b5d5707fbdd7b65d...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@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/e479abe5a56e0576b5d5707fbdd7b65d... Patch: https://github.com/kamailio/kamailio/commit/e479abe5a56e0576b5d5707fbdd7b65d...
---
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", + });