Skip to content
Discussion options

You must be logged in to vote

In case anyone else has this question, I resolved this problem by using the github api to generate the full release notes. I then trim the notes (by section) so that the entire note will fit in the 125,000 character limit. I then feed those notes into the Github CLI to create the release.

// ./tools/scripts/generate-release-notes.js

const github = require('@actions/github');

/**
 * Generates the release notes for a github release.
 *
 * Arguments:
 * 1 - github_token
 * 2 - new version
 */
const token = process.argv[2];
const version = process.argv[3];

async function main() {
  const client = github.getOctokit(token);

  const latestReleaseResponse = await client.request(
    'GET /rep…

Replies: 3 comments 1 reply

This comment was marked as off-topic.

@apearce-nov
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by apearce-nov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions related to GitHub's APIs or Webhooks General General topics and discussions that don't fit into other categories, but are related to GitHub
3 participants