Skip to content

perf: no need to decode bytes to str for json.loads #2076

perf: no need to decode bytes to str for json.loads

perf: no need to decode bytes to str for json.loads #2076

Workflow file for this run

name: Check
on:
pull_request:
types: [labeled, unlabeled, opened, reopened, synchronize]
permissions: "read-all"
jobs:
check-changelog-entry:
name: changelog entry
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@cd7d8d697e10461458bc61a30d094dc601a8b017 # v4.0.0
with:
# `towncrier check` runs `git diff --name-only origin/main...`, which
# needs a non-shallow clone.
fetch-depth: 0
- name: "Check changelog"
if: "!contains(github.event.pull_request.labels.*.name, 'Skip Changelog')"
run: |
if ! pipx run towncrier check --compare-with origin/${{ github.base_ref }}; then
echo "Please see https://github.com/urllib3/urllib3/blob/main/changelog/README.rst for guidance."
false
fi