Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 2.64 KB

duplicity_handling.md

File metadata and controls

53 lines (45 loc) · 2.64 KB

Feature: Duplicity Handling

Purpose

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.

How It Works

  • Input duplicity-scope defines where duplicates are allowed: none, custom, service, both (case-insensitive).
  • When a record matches multiple user-defined chapters and scope permits (custom or both), it can appear more than once.
  • Service Chapters obey the same rule: duplicates allowed only if scope includes service or both.
  • 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).

Choosing duplicity-scope

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

Configuration

- 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

Example Result

### 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.)

Related Features

← Back to Feature Tutorials