DirectoryChanGo

class chango.concrete.DirectoryChanGo(change_note_type, version_note_type, version_history_type, scanner, directory_format='{uid}_{date}')

Bases: ChanGo[DirectoryVersionScanner, VHT, VNT, CNT], Generic

Implementation of the ChanGo interface that works with DirectoryVersionScanner and assumes that change notes are stored in subdirectories named after the version identifier.

Parameters:
directory_format

The format string used to create version directories.

Type:

str

build_github_event_change_note(event, data=None)

Implementation of build_github_event_change_note().

Important

By default, this will always call chango.abc.ChangeNote.build_from_github_event() and does not check if a new change note is necessary. The only exception is when change_note_type is a subclass of SectionChangeNote:

  • If there already is a change note for the current pull request, it is updated with the new information. If nothing changed, returns None.

  • If the data parameter is an instance of ChanGoActionData with a parent pull request, then this method will try to find an existing unreleased change note for the parent pull request and append the new information to it.

build_version_note(version)

Implementation of build_version_note(). Includes special handling for SectionVersionNote, which has the required argument section_change_note_type.