FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Avoid chango auto-push failures on fork PRs and document manual fragment creation by Copilot · Pull Request #5269 · python-telegram-bot/python-telegram-bot · GitHub

Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) .yml  (1) All 2 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
7 changes: 7 additions & 0 deletions .github/CONTRIBUTING.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/chango.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

Back | FazBrowse Home | New Git URL