GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: edit create-release-proposal workflow to handle pr body length · nodejs/node@77dee41

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools/actions
    • create-release-proposal.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/actions/create-release-proposal.sh‎

Copy file name to clipboardExpand all lines: tools/actions/create-release-proposal.sh
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ HEAD_SHA="$(git rev-parse HEAD^)"
3131

3232
TITLE="$(git log -1 --format=%s)"
3333

34-
# Use a temporary file for the PR body
35-
TEMP_BODY="$(awk "/## ${RELEASE_DATE}/,/^<a id=/{ if (!/^<a id=/) print }" "doc/changelogs/CHANGELOG_V${RELEASE_LINE}.md")"
34+
TEMP_BODY="$(awk -v MAX_BODY_LENGTH="65536" \
35+
"/^## ${RELEASE_DATE}/,/^<a id=/{ if (/^<a id=/) {exit;} if ((output_length += length(\$0)) > MAX_BODY_LENGTH) {exit 1;} print }" \
36+
"doc/changelogs/CHANGELOG_V${RELEASE_LINE}.md" || echo "…")"
3637

3738
# Create the proposal branch
3839
gh api \

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.