Repository navigation
v1.10.0: GitLab support, pull request descriptions in the first prompt, and faster link checks
Latestcommunique now works with GitLab.com and self-managed GitLab, and generation gets faster: pull request descriptions go into the first prompt instead of being fetched by the model one turn at a time, and the link check runs concurrently. Example URLs in release notes are no longer reported as broken links.
Added
-
GitLab support. communique detects GitLab from GitLab CI variables or an
originremote ongitlab.com, reads merge requests, their diffs and issues through the GitLab API with aGITLAB_TOKEN(apiscope), and--gitlab-releasecreates or updates the release for a tag. For a self-managed instance, set the forge and its URL. A GitLab CI tag pipeline needs no configuration beyond the token and full history (GIT_DEPTH: "0"). GitHub behavior is unchanged. Requested by @zom-2018 in #473. (#475)[defaults] forge = "gitlab" forge_url = "https://gitlab.example.com"
release-notes: rules: - if: $CI_COMMIT_TAG variables: GIT_DEPTH: "0" script: - communique generate "$CI_COMMIT_TAG" --gitlab-release
Changed
-
Pull request descriptions are in the first prompt. Before the first turn, communique fetches the pull requests (or merge requests) named by the release's commits, eight at a time, and gives the model each one's title, author, labels and description. Before this, the model called
get_prfor each one over several turns: a 62-PR mise release took 8 turns and 31 tool calls. Descriptions over 8,000 bytes are truncated, the total is capped at 300,000 bytes and 150 pull requests, and fetching stops after 60 seconds; anything left out is listed so the model can still fetch it. This needs a forge token. To turn it off (#479):[defaults] prefetch_prs = false
-
Faster link check. Links to the release's own pull requests are accepted without a request, and the remaining links are requested eight at a time instead of one after another. Which links count as broken is unchanged. (#478)
Fixed
- URLs in code blocks and inline code (
http://localhost:3000,url = "http://127.0.0.1:{{ port }}") and URLs on hosts reserved for examples (example.com,.test,localhost) are no longer requested and reported to the model as broken links, so it stops removing working examples from the notes. A URL now also ends at a",<or backtick. (#477)
Full Changelog: v1.9.0...v1.10.0
💚 Sponsor communique
communique is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If communique drafts your release notes or changelogs, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep communique fast, free, and independent.