Skip to content

Fix 422 pagination error when generating release notes - #48

Merged
GregoireW merged 2 commits into
masterfrom
copilot/fix-release-notes-generation
Mar 8, 2026
Merged

Fix 422 pagination error when generating release notes#48
GregoireW merged 2 commits into
masterfrom
copilot/fix-release-notes-generation

Conversation

Copilot AI commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

The action fails with a 422 Unprocessable Entity when paginating GitHub issues because github-changelog-generator v0.0.8 double-encodes the cursor from the Link response header — the = in the base64 cursor gets %3D-encoded, then the whole value gets encoded again, producing an invalid after parameter rejected by the GitHub REST API.

Changes

  • Dockerfile: Bump RELEASE_NOTE_GENERATOR_VERSION v0.0.8v0.0.13
  • Dockerfile: Bump base image eclipse-temurin:11-alpineeclipse-temurin:17-alpine
    • v0.0.13 uses Spring Boot 4.0.1 which requires Java 17+
Original prompt

This section details on the original issue you should resolve

<issue_title>Error when generating release notes</issue_title>
<issue_description>I run into an interesting issue, perhaps someone can help/take a look?

Since the code is not available, I have to guess that the plugin fails due to pagination issues? Regardless, any help is appreciated.

I have verified the token works, and I can query issues with it.

I am using the action as following:

jobs:
  create-release-notes:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Create Release Notes
        uses: docker://decathlon/release-notes-generator-action:3.0.1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          OUTPUT_FOLDER: temp_release_notes
          USE_MILESTONE_TITLE: "true"

This results in:

2026-03-06T10:48:26.5031305Z ##[command]/usr/bin/docker run --name decathlonreleasenotesgeneratoraction301_c54f06 --label f0152d --workdir /github/workspace --rm -e "GITHUB_TOKEN" -e "OUTPUT_FOLDER" -e "USE_MILESTONE_TITLE" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e "ACTIONS_ORCHESTRATION_ID" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp":"/github/runner_temp" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/Dune-II---The-Maker/Dune-II---The-Maker":"/github/workspace" decathlon/release-notes-generator-action:3.0.1
2026-03-06T10:48:27.0268299Z �[0;34m
2026-03-06T10:48:27.0268969Z Open sourced by
2026-03-06T10:48:27.0274492Z ██████╗ ███████╗ ██████╗ █████╗ ████████╗██╗  ██╗██╗      ██████╗ ███╗   ██╗
2026-03-06T10:48:27.0275650Z ██╔══██╗██╔════╝██╔════╝██╔══██╗╚══██╔══╝██║  ██║██║     ██╔═══██╗████╗  ██║
2026-03-06T10:48:27.0277676Z ██║  ██║█████╗  ██║     ███████║   ██║   ███████║██║     ██║   ██║██╔██╗ ██║
2026-03-06T10:48:27.0278491Z ██║  ██║██╔══╝  ██║     ██╔══██║   ██║   ██╔══██║██║     ██║   ██║██║╚██╗██║
2026-03-06T10:48:27.0279260Z ██████╔╝███████╗╚██████╗██║  ██║   ██║   ██║  ██║███████╗╚██████╔╝██║ ╚████║
2026-03-06T10:48:27.0279952Z ╚═════╝ ╚══════╝ ╚═════╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═╝╚══════╝ ╚═════╝ ╚═╝  ╚═══╝
2026-03-06T10:48:27.0280482Z �[0mGetting Action Information
2026-03-06T10:48:27.2905496Z Checking for custom configuration...
2026-03-06T10:48:27.2906234Z Configuring the action using .github/release-notes.yml
2026-03-06T10:48:27.2906835Z Creating release notes for Milestone 4 into the v0.8.0.md file
2026-03-06T10:48:28.1058107Z 
2026-03-06T10:48:28.1062305Z   .   ____          _            __ _ _
2026-03-06T10:48:28.1063550Z  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2026-03-06T10:48:28.1066189Z ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2026-03-06T10:48:28.1066611Z  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2026-03-06T10:48:28.1066999Z   '  |____| .__|_| |_|_| |_\__, | / / / /
2026-03-06T10:48:28.1067372Z  =========|_|==============|___/=/_/_/_/
2026-03-06T10:48:28.1125810Z  :: Spring Boot ::                (v2.4.1)
2026-03-06T10:48:28.1126404Z 
2026-03-06T10:48:28.2093819Z 2026-03-06 10:48:28.205  INFO 152 --- [           main] i.s.g.Application                        : Starting Application v0.0.6-SNAPSHOT using Java 1.8.0_212 on f0bf8bc54508 with PID 152 (/github-release-notes-generator.jar started by root in /github/workspace)
2026-03-06T10:48:28.2096762Z 2026-03-06 10:48:28.208  INFO 152 --- [           main] i.s.g.Application                        : No active profile set, falling back to default profiles: default
2026-03-06T10:48:28.9606449Z 2026-03-06 10:48:28.959  INFO 152 --- [           main] i.s.g.Application                        : Started Application in 1.241 seconds (JVM running for 1.665)
2026-03-06T10:48:30.2158844Z 2026-03-06 10:48:30.215  INFO 152 --- [           main] ConditionEvaluationReportLoggingListener : 
2026-...

</details>



<!-- START COPILOT CODING AGENT SUFFIX -->

- Fixes Decathlon/release-notes-generator-action#47

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.

@CLAassistant

CLAassistant commented Mar 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

…fix 422 pagination error

Co-authored-by: mmornati <139323+mmornati@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix error when generating release notes Fix 422 pagination error when generating release notes Mar 6, 2026
@mmornati
mmornati requested a review from GregoireW March 6, 2026 14:59
@GregoireW
GregoireW marked this pull request as ready for review March 8, 2026 17:25
@GregoireW
GregoireW enabled auto-merge (squash) March 8, 2026 17:26
@GregoireW
GregoireW merged commit 6763e8c into master Mar 8, 2026
3 checks passed
@GregoireW
GregoireW deleted the copilot/fix-release-notes-generation branch March 8, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Processing next links may result in double-encoding and a 422 response

4 participants