Improve reading of design models; refactoring and improved docstrings for simtools.utils.names
#164
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Changelog | |
# Require a changelog entry for each pull request | |
# from: https://github.com/cta-observatory/ctapipe/blob/main/.github/workflows/changelog.yml | |
on: | |
pull_request: | |
# should also be re-run when changing labels | |
types: [opened, reopened, labeled, unlabeled, synchronize] | |
branches: | |
- 'main' | |
env: | |
FRAGMENT_NAME_PREFIX: "docs/changes/${{ github.event.number }}" | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check for at least one changelog fragment | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-needed') && !contains(github.event.pull_request.labels.*.name, 'dependencies') }} | |
run: | | |
find docs/changes -type f | \ | |
grep -P "${FRAGMENT_NAME_PREFIX}\.(feature|bugfix|api|maintenance|doc|model)\.md" |