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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/CONTRIBUTING.rst
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
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