2021-11-07 15:24:27 -05:00
|
|
|
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
|
2021-11-07 15:29:33 -05:00
|
|
|
if: contains(github.event.issue.labels.*.name, 'type:bug-suspected')
|
2021-11-07 15:24:27 -05:00
|
|
|
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"
|
|
|
|
});
|