Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
release-notes-generator
Advanced tools
A Python package that parses a specific PR template given a list of PRs and generates release notes form them.
pip install release-notes-generator
This will provide a self-documenting command line tool under the name:
release_notes
You can ask for help as you would expect: release_notes --help
You will need to set your github access token to use it:
export GITHUB_API_TOKEN = <token>
You can fetch release notes like: release_notes getfor auto_pipeline
By default this will look for an existing release and try to parse out the pr numbers from it's description. Alternatively, you can use a file:
release_notes getfor auto_pipeline --source pr_numbers.txt
Either way will output to the console release notes of the following form:
h2. SOME TITLE
CHANGE_TYPE: UI
DESCRIPTION: Some descriptions
JIRA TICKET: LIMS-123
PULL REQUEST: 123
RISK: LOW
RISK DESCRIPTION: Some description
Optionally redirect to a file:
release_notes getfor auto_pipeline > release_notes.txt
You can look at cli.py
for an example of how to use this script.
Essentially, cli.py
runs the following where the token variable is looking for GITHUB_API_TOKEN
to be set.
ReleaseNoteGenerator(token, repository_name=repository_name).release_notes()
ReleaseNotesFormatter.output(notes)
ReleaseNoteGenerator
parses the PR numbers from the latest release, if no release exists it will return nothing. It then passes the PR numbers to the pr fetcher which grabs the descriptions. A good entry point it to look at ReleaseNoteGenerator.release_notes
This is a quick and dirty initial implementation and we should expand this for easy reuse.
[Complete] Iteration 1: Packaging and Interface Features
# print output to the screen
release_notes auto_pipeline --print
Iteration 2: Granularity and Robustness Features
Other Features:
FAQs
A Python package that parses a specific PR template given a list of PRs and generates release notes form them.
We found that release-notes-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.