Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

octokit-plugin-search-and-replace-pull-request

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

octokit-plugin-search-and-replace-pull-request

Octokit plugin to replace a term across all repository files via a pull request

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

octokit-plugin-search-and-replace-pull-request

Octokit plugin to replace a term across all repository files via a pull request

@latest Build Status Dependabot Status

Usage

Browsers

Load octokit-plugin-search-and-replace-pull-request and @octokit/core (or core-compatible module) directly from cdn.pika.dev

<script type="module">
  import { Octokit } from "https://cdn.pika.dev/@octokit/core";
  import { searchAndReplacePullRequest } from "https://cdn.pika.dev/octokit-plugin-search-and-replace-pull-request";
</script>

Node

Install with npm install @octokit/core octokit-plugin-search-and-replace-pull-request. Optionally replace @octokit/core with a compatible module

const { Octokit } = require("@octokit/core");
const {
  searchAndReplacePullRequest,
} = require("octokit-plugin-search-and-replace-pull-request");
octokit.createSearchAndReplacePullRequest({
  owner: "octocat",
  repo: "hello-world",
  title: "pull request title",
  body: "pull request description",
  base: "master" /* optional: defaults to default branch */,
  head: "rename-master-to-main",
  terms: [
    {
      search: "master",
      replace: "main",
    },
  ],
});

One commit is created for every term. If there are no matches at all, an empty commit is created.

Contributing

See CONTRIBUTING.md

License

MIT

Keywords

FAQs

Package last updated on 17 Jun 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc