Skip to content

refactor(tools): simplify the logic of request_aware_table #745

refactor(tools): simplify the logic of request_aware_table

refactor(tools): simplify the logic of request_aware_table #745

name: Changelog Requirement
on:
pull_request:
types: [ opened, synchronize, labeled, unlabeled ]
paths:
- 'kong/**'
- '**.rockspec'
- '.requirements'
jobs:
require-changelog:
if: ${{ !contains(github.event.*.labels.*.name, 'skip-changelog') }}
name: Requires changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: computes changed files
id: changelog-check
uses: tj-actions/changed-files@db153baf731265ad02cd490b07f470e2d55e3345 # v37
with:
files: 'changelog/unreleased/**/*.yml'
- name: asserts changelog added
run: >
if [ "${{ steps.changelog-check.outputs.all_changed_and_modified_files_count }}" = "0" ]; then
echo "Should contain at least one changelog file in changelog/unreleased/*/ directory"
exit 1
fi