Files
azuredatastudio/.github/workflows/on-issue-comment.yml
Aasim Khan 30f4a3554a Auto closing issues that needs logs after 7 days of inactivity. (#21390)
* Adding old issue

* Adding needs more info

* Making a different step for every issue label
2022-12-12 12:31:47 -08:00

27 lines
721 B
YAML

name: On issue comment
on:
issue_comment:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
if: |
github.event.comment.author_association != 'OWNER' &&
github.event.comment.author_association != 'COLLABORATOR'
steps:
- name: Remove needs-reply label
uses: octokit/request-action@v2.x
continue-on-error: true
with:
route: DELETE /repos/:repository/issues/:issue/labels/:label
repository: ${{ github.repository }}
issue: ${{ github.event.issue.number }}
labels: |
Needs Logs
Needs Logs - Azure
Needs More Info
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}