Upgrade SharePoint Framework DataTable web part to latest version of SPFx - Refresh Rangers Hacktoberfest Event #434
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
name: 'Triage Issues' | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
Triage-New-Issue: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Verify that issue contains valid authors | |
id: valid-authors | |
if: contains(github.event.issue.labels.*.name, 'type:bug-suspected') | |
uses: ./.github/actions/verify-author | |
with: | |
issue: "${{ toJson(github.event.issue) }}" | |
- name: Add label if missing author | |
uses: actions-ecosystem/action-add-labels@v1 | |
if: contains(github.event.issue.labels.*.name, 'type:bug-suspected') && steps.valid-authors.outputs.valid-authors == '' | |
with: | |
labels: status:wrong-author | |
- name: Notify when invalid a | |
if: contains(github.event.issue.labels.*.name, 'type:bug-suspected') && steps.valid-authors.outputs.valid-authors == '' | |
uses: actions/[email protected] | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
const fs = require('fs') | |
const issueBody = fs.readFileSync(".github/ISSUE_RESPONSES/wrong-author.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-suspected') | |
uses: actions/[email protected] | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
github.projects.createCard({ | |
column_id: 16754671, | |
content_id: context.payload.issue.id, | |
content_type: "Issue" | |
}); |