New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

scribes

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scribes

pipPyPI
Version
0.1.2
Maintainers
1

Scribes

Scribes is a distributed refactoring tool that 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 pre-commit autoupdate to all repos.

  • pip install scribes

  • Run the following commands

    scribes search
    scribes filter --contains-file .pre-commit-config.yaml
    scribes clone --limit 10
    scribes run "git branch"
    scribes run "git checkout -b pre-commit-autoupdate"
    scribes run "pre-commit autoupdate"
    scribes run "git add .pre-commit-config.yaml"
    scribes run "git commit -m 'chore: autoupdate pre-commit'"
    scribes run "git push origin pre-commit-autoupdate"
    scribes run "gh pr create --title 'chore: autoupdate pre-commit' --body 'Autoupdate pre-commit' --base main --head pre-commit-autoupdate"
    

🎉 There it is, you have created PRs to autoupdate pre-commit in all repos that contain a .pre-commit-config.yaml file.

To be implemented

  • [] Filter functionalities outside of --contains-file
  • [] Add visualization
  • [] Create documentation to apply commands to only modified repositories (like gh pr create commands)
  • [] Encapsulate typical workflow commands (like the one above) in a single command

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts