Pcu
A CI utility to update the Unreleased section of the changelog with the title of the pull request and include a link to the pull request.
Feature set
- Use GitHub as source control system
- Use of CircleCI as CI
CLI Usage
LinkedIn announcements
pcu can share a release announcement to LinkedIn in two ways:
-
As a dedicated subcommand
- Build content from PRLOG or pass your own text
- Optionally include a GitHub release link
Examples:
# Provide text directly # Build from PRLOG release notes -
As part of the release flow
- Add the flag to share after the GitHub release is created
Configuration (environment variables or pcu.toml):
- LINKEDIN_ACCESS_TOKEN or key
linkedin_access_token - LINKEDIN_AUTHOR_URN or key
linkedin_author_urn - Optional:
dev_platform,username,reponameto compute the GitHub release URL
Notes:
- The LinkedIn client posts to the Posts REST API and requires header
X-Restli-Protocol-Version: 2.0.0(handled internally). - Tokens must be stored in CI secrets; never commit them.
Install the CLI using cargo install.
Run in the CI script following successful completion of build tests.
pcu
The change log will be amended and committed as part of the change, triggering a recheck. On the recheck pcu will exit early as the change has already been applied.
Help provides all the options
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.