[DEV/DEP]: Bump vuepress-theme-vt from 0.13.2 to 0.15.1 #326
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Worflow borrowed from covid19india/covid19india-react | |
on: | |
issue_comment: | |
types: [created] | |
name: Mod | |
jobs: | |
moderate: | |
runs-on: ubuntu-latest | |
name: Make issue Available | |
if: github.event.issue.pull_request == '' | |
&& contains(github.event.comment.body, '/available') | |
&& contains(toJson(github.event.issue.labels), 'Review Needed') | |
steps: | |
- uses: actions/github-script@0.9.0 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
await github.issues.removeLabel({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
name: 'Status: Review Needed' | |
}) | |
await github.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ['Status: Available'] | |
}) | |
await github.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: 'This issue is available for contribution.\n\nPlease reply "/claim" (without quotes) if you wish to work on this issue.' | |
}) |