Skip to content

Protected constructors #457

Protected constructors

Protected constructors #457

Workflow file for this run

name: PR commands
# Commands that can be run via a comment on the PR.
# Comment `!pr <command-name>` to trigger them.
# See config/pr-commands.json for configuration
# Use `!pr help` for help
#
# See https://github.com/Siteimprove/pr-command
on:
issue_comment:
types: [created]
jobs:
pull-request-command:
runs-on: ubuntu-latest
steps:
- name: "Should pr command run?"
id: should-run
uses: siteimprove/pr-command/check-run/[email protected]
with:
# Personal access token (PAT) used to fetch the repository and add reaction on comment.
token: ${{ secrets.BUILDUSER_GITHUB_WRITE }}
# The repository has been checked out by PR commands!
- name: "Set up Node"
if: env.PR_COMMAND_WILL_RUN == 'true'
uses: actions/setup-node@v4
with:
# We use version 20 in the integrate workflow
node-version: 20
- name: "Install dependencies"
if: env.PR_COMMAND_WILL_RUN == 'true'
run: yarn install --immutable
- name: "React to command"
uses: siteimprove/pr-command/check-run/[email protected]
with:
# Personal access token (PAT) used to fetch the repository and add reaction on comment.
token: ${{ secrets.BUILDUSER_GITHUB_WRITE }}