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

Connect to the LaminDB instance to be used for assets management:

lamin connect account/instance

Publish a PR:

from publishprs import Publisher
publisher = Publisher(
    source_repo="https://github.com/laminlabs/laminhub",
    target_repo="https://github.com/laminlabs/laminhub-public",
)
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.2.0.tar.gz (11.7 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.2.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for publishprs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f3a8b4c3ea19c31530d544e43188901d57850df1a901a9de3117eeced18336f5
MD5 7b91aaa91b97d51fbeac5f2cfc4d558f
BLAKE2b-256 436e436416113e11e68d031db2877c0a7cd2dd6d7dfd6744cd6a752f30d210c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: publishprs-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5195a1a2883873f4adaab192dcb344e52d32d4897e3d450597f031df474d738
MD5 f77758695718daac6640f4a4e7a1a94b
BLAKE2b-256 1b5dfbc59ded1ff8dff80864fbb3148dd34e87804713c4bb9b53e6c6a6d57361

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