Skip to main content

Publish private PRs.

Project description

publishprs: Publish pull requests from a private repo to a public repo

Install:

pip install publishprs

Publish a PR:

from publishprs import Publisher
publisher = Publisher(
    source_repo="https://github.com/laminlabs/laminhub",
    target_repo="https://github.com/laminlabs/laminhub-public",
    db="laminlabs/lamin-site-assets"
)
url = publisher.publish(pull_id=3820)
print(f"Published to: {url}")

Note that downloading assets from GitHub URLs of the form https://github.com/user-attachments/assets/47729149-22a5-481b-beb4-69bb609ae054 neither works with the auto-generated GITHUB_TOKEN within GitHub Actions nor the fine-grained modern access tokens. A classic token is needed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

publishprs-0.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

publishprs-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file publishprs-0.1.0.tar.gz.

File metadata

  • Download URL: publishprs-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for publishprs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 78949de064d643b4b4eab49a4ccd30de96ed6bfe0243866ae96d8617141e15df
MD5 878cb77863d9c0853cb4f706fce3c4a7
BLAKE2b-256 80d90cf1d1e0c48bf199937cd369bcd37aa85d6db009d9518ad0ba2fddf47a06

See more details on using hashes here.

File details

Details for the file publishprs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: publishprs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for publishprs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10512d46bd83894b2275668fa2e9b51a15cf533e376fb9043a85be3a3940c157
MD5 9c9fd0fd374111881e0f693bda01e6f3
BLAKE2b-256 44f130549a0c91983e08d00f20e8ecfaba8f222de120a2344f8dae25060b8553

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page