From d11ef9257d925573725d0dde629cbfb7d9aa7b60 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 17 Jun 2026 09:42:34 +0000 Subject: [PATCH 1/3] Initial plan From 7563651fd1dff95d09eb14e84262559ecc7d98d2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 17 Jun 2026 09:49:40 +0000 Subject: [PATCH 2/3] Fix chango workflow failing for fork PRs Don't pass commit-and-push=true when the PR is from a fork. The action has no write access to the fork's branch so the push always fails with 403, which then causes the job to fail. For fork PRs the fragment must be added manually. Co-authored-by: harshil21 <37377066+harshil21@users.noreply.github.com> --- .github/workflows/chango.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/chango.yml b/.github/workflows/chango.yml index 0f14d8f819a..03f7980a8a5 100644 --- a/.github/workflows/chango.yml +++ b/.github/workflows/chango.yml @@ -43,7 +43,10 @@ jobs: # 2. it ensures that the push will also re-trigger workflows github-token: ${{ secrets.CHANGO_PAT }} query-issue-types: true - commit-and-push: ${{ steps.check_title.outputs.COMMIT_AND_PUSH }} + # Don't try to commit & push for PRs from forks - the action can't push to a fork's + # branch (no write access), which would fail the job. For fork PRs, contributors must + # add the chango fragment manually. + commit-and-push: ${{ steps.check_title.outputs.COMMIT_AND_PUSH == 'true' && github.event.pull_request.head.repo.full_name == github.repository }} # Run `chango release` if applicable - needs some additional setup. - name: Set up Python From 7259300bf7ca7e356fa9c4acc438316c6a37bdfd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 17 Jun 2026 09:57:23 +0000 Subject: [PATCH 3/3] Document manual chango fragment command for fork PRs Co-authored-by: harshil21 <37377066+harshil21@users.noreply.github.com> --- .github/CONTRIBUTING.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/CONTRIBUTING.rst b/.github/CONTRIBUTING.rst index cd6871452a2..dcd954648e6 100644 --- a/.github/CONTRIBUTING.rst +++ b/.github/CONTRIBUTING.rst @@ -108,6 +108,13 @@ Here's how to make a one-off code change. $ git add your-file-changed.py + - If your PR comes from a fork, create the chango fragment manually before pushing + (the chango workflow cannot auto-commit to fork branches): + + .. code-block:: bash + + $ uv run chango new --slug pr-1234-fix-telegram-api-error + - Finally, push it to your GitHub fork, run: .. code-block:: bash