Create triage-issues.yml

This commit is contained in:
Hugo Bernier 2021-11-07 15:24:27 -05:00 committed by GitHub
parent e78e1f22c1
commit dea5fbd446
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 38 additions and 0 deletions

38
.github/workflows/triage-issues.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Triage Issues
on:
issues:
types: [opened]
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
# - name: Comment on new issue
# uses: actions/github-script@0.8.0
# with:
# github-token: ${{secrets.GITHUB_TOKEN}}
# script: |
# const fs = require('fs')
# const issueBody = fs.readFileSync(".github/ISSUE_RESPONSES/comment.md", "utf8")
# github.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: issueBody
# })
- name: Add issue to project board
if: contains(github.event.issue.labels.*.name, 'type:bug')
uses: actions/github-script@0.8.0
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.projects.createCard({
column_id: 16754671,
content_id: context.payload.issue.id,
content_type: "Issue"
});