20 lines
670 B
YAML
20 lines
670 B
YAML
# Gitea Actions workflow: automatic first triage of new issues (scripts/jev/issue_triage.py, TypeSafe Jev).
|
|
# Needs the repository secret TYPESAFE_API_KEY; the built-in token applies labels and posts one comment.
|
|
name: issue-triage
|
|
on:
|
|
issues:
|
|
types: [opened, edited]
|
|
|
|
jobs:
|
|
triage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Triage
|
|
env:
|
|
TYPESAFE_API_KEY: ${{ secrets.TYPESAFE_API_KEY }}
|
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITEA_API: ${{ github.api_url }}
|
|
REPO: ${{ github.repository }}
|
|
run: python3 scripts/jev/issue_triage.py --event "$GITHUB_EVENT_PATH"
|