Fledge internals



The following sections explain how things actually work inside fledge.

Updating NEWS.md

New entries are added to NEWS.md from commit messages to commits in master.

When retrieving the current NEWS for defining the tag message, the entries between the first two first-level headers (starting with #) are returned. You can use second and third level headers and add as many empty lines as you want.

Collecting NEWS

The first function to call at any stage is always bump_version(). This does the following

  1. Calls update_news() to collect NEWS entries from top-level commits.

  2. Calls update_version() to increment the version in DESCRIPTION and add a header to NEWS.md.

Tagging for “dev” vs. other releases

bump_version() continues depending on the release type: