Skip to content

When GitHub reports an error, the API just throws a TypeError instead of throwing a useful exception #82

When GitHub reports an error, the API just throws a TypeError instead of throwing a useful exception

When GitHub reports an error, the API just throws a TypeError instead of throwing a useful exception #82

Workflow file for this run

name: Triage Issues
on:
issues:
types: [opened]
jobs:
assignRob:
name: Assign Rob
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Apply untriaged label
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['untriaged','unreleased']
})
- name: Comment On New Issues
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for reporting! @robrbecker will take a look.'
})