Skip to content

Add CodeShot package #1016

Add CodeShot package

Add CodeShot package #1016

Workflow file for this run

name: Package test
on:
pull_request:
paths:
- 'repository/**'
issue_comment:
types: [created] # run when comment added with "📦" or "/review"
jobs:
# run package test on pull request event (but not on drafts)
package:
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Diff and review changed/added packages
uses: kaste/st_package_reviewer/gh_action@81e964270472dae33e904a15a354976b99d7b2f2
with:
pr: ${{ github.event.pull_request.html_url }}
file: repository.json
# run package test on demand via comment on the pr
package_comment:
if: >-
${{
github.event_name == 'issue_comment' &&
github.event.issue.pull_request != null &&
(
contains(github.event.comment.body, '📦') ||
contains(github.event.comment.body, '/review')
)
}}
runs-on: ubuntu-latest
steps:
- name: Diff and review changed/added packages
uses: kaste/st_package_reviewer/gh_action@81e964270472dae33e904a15a354976b99d7b2f2
with:
pr: ${{ github.event.issue.pull_request.html_url }}
file: repository.json