1name: "Issue / PR Triage"
2
3on:
4  issues:
5    types: ["labeled"]
6  schedule:
7    # Run pull request triage once an hour. Ideally, this would be on
8    # "labeled" types of pull request events, but that doesn't work if the pull
9    # request is from another fork. For example, see
10    # https://github.com/actions/labeler/issues/12
11    - cron: '42 * * * *'
12
13concurrency:
14  group: issue-triage
15  cancel-in-progress: true
16
17jobs:
18  triage:
19    if: github.repository == 'bytecodealliance/wasmtime'
20    runs-on: ubuntu-latest
21    steps:
22
23    # Automatically label PRs that touch certain directories with certain
24    # labels.
25    - uses: bytecodealliance/labeler@schedule-fork
26      with:
27        repo-token: "${{ secrets.GITHUB_TOKEN }}"
28      continue-on-error: true
29
30    # @-mention people who are subscribed to a label when an issue/PR is given
31    # that label.
32    - uses: bytecodealliance/subscribe-to-label-action@v1
33      with:
34        repo-token: "${{ secrets.GITHUB_TOKEN }}"
35      continue-on-error: true
36
37    # Leave pre-determined comments on issues/PRs that are given a certain label.
38    - uses: bytecodealliance/label-messager-action@v1
39      with:
40        repo-token: "${{ secrets.GITHUB_TOKEN }}"
41      continue-on-error: true
42