Skip to main content

No project description provided

Project description

Scribes

Scribes enables you to clone repositories and apply sweeping changes.

Getting started

Pre-requisites

Scribes relies on git and the GitHub cli (gh). You can follow install instructions for gh here. You can then authenticate using gh auth login.

Usage

Let's say you want to clone all repos in an organization and apply a sed command to all repos, replacing bar by foo, commit and create PRs.

  1. pip install scribes

  2. Create a configuration file called configuration.yaml, such as the following:

    clone:
      organization_name: "my-organization"
      include: "^my-organization/tf-"
      exclude: "^my-organization/tf-bar-.*"
      output_directory: "output"
      include_forks: false
      include_archived: false
      include_private: false
    
  3. Run the following commands

    scribes clone
    scribes sed `s/bar/foo/g`
    scribes commit "branch" "commit message"
    scribes pr "title" --body "body"
    

🎉 There it is, you have created PRs in all repos that contain bar in their content and created PRs in all repos with the changes

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

scribes-0.1.1.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

scribes-0.1.1-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

Supported by

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