Skip to content

fix(pdk): use deep copies of Route, Service, and Consumer objects when log serialize #489

fix(pdk): use deep copies of Route, Service, and Consumer objects when log serialize

fix(pdk): use deep copies of Route, Service, and Consumer objects when log serialize #489

Workflow file for this run

name: Changelog
on:
pull_request:
types: [ "opened", "synchronize", "labeled", "unlabeled" ]
paths:
- 'kong/**'
- '**.rockspec'
- '.requirements'
jobs:
require-changelog:
name: Is changelog required?
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Retrives changed files in CHANGELOG/unreleased/**/*.yaml
id: changelog-check
uses: tj-actions/changed-files@2f7246cb26e8bb6709b6cbfc1fec7febfe82e96a # v37
with:
files: 'CHANGELOG/unreleased/**/*.yaml'
- name: Requires a changelog file if 'skip-changelog' label is not added
if: ${{ !contains(github.event.*.labels.*.name, 'skip-changelog') }}
run: >
if [ "${{ steps.changelog-check.outputs.added_files_count }}" = "0" ]; then
echo "PR should contain a changelog file"
exit 1
fi
validate-changelog:
name: Validate changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate changelogs
uses: thiagodnf/yaml-schema-checker@58b96413951ebe86a396275c48620b8435439694 # v0.0.10
with:
jsonSchemaFile: CHANGELOG/schema.json
yamlFiles: |
CHANGELOG/unreleased/*/*.yaml