Control whether the same record (issue / PR / hierarchy issue / commit) can appear in multiple chapters and visually mark duplicates. Prevents clutter while still allowing intentional multi-label visibility.
- Input
duplicity-scopedefines where duplicates are allowed:none,custom,service,both(case-insensitive). - When a record matches multiple user-defined chapters and scope permits (
customorboth), it can appear more than once. - Service Chapters obey the same rule: duplicates allowed only if scope includes
serviceorboth. - A duplicate (present in >1 chapter) is prefixed by the single-character icon from
duplicity-icon(default: 🔔) when rendered. - If duplicates are disallowed for a given group, additional occurrences are skipped silently (no placeholder or warning).
| Value | Custom Chapters Duplicates | Service Chapters Duplicates | Icon Applied (if >1 appearance) | Typical Use Case |
|---|---|---|---|---|
none |
No | No | Never (only single appearance) | Strict single-source classification |
custom |
Yes | No | Yes (in custom) | Emphasize multi-label themes; keep diagnostics lean |
service |
No | Yes | Yes (in service) | Observe all diagnostic contexts; keep user chapters clean |
both |
Yes | Yes | Yes | Maximum visibility across all chapter types |
- name: Generate Release Notes
id: release_notes_scrapper
uses: AbsaOSS/generate-release-notes@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag-name: "v3.0.0"
chapters: |
- {"title": "Features", "label": "feature"}
- {"title": "Quality", "label": "quality"}
duplicity-scope: "both" # none|custom|service|both
duplicity-icon: "🔔" # must be exactly one character### Features
🔔 #410 _Improve cache layer_ developed by @alice in #415
### Quality
🔔 #410 _Improve cache layer_ developed by @alice in #415(Icon appears because the same record appeared in two chapters with scope permitting duplicates.)
- Service Chapters – also affected by duplicity scope.
- Custom Row Formats – icon is prefixed before formatted line.
- Skip Labels – skipped records never produce duplicates.
- Release Notes Extraction – determines which records have change increments.