Public | Automated Build

Last pushed: 3 months ago
Short Description
A https://www.dependencies.io actor for doing find and replace in repo, then creating a PR.
Full Description

actor-find-replace





A dependencies.io
actor
that does a basic text find and replace of versions in repo files, then creates
a pull request.

Usage

If you want to replace text in specific files, then use the paths setting.
Additionally, if you're worried about replacing the wrong strings then you can
use pattern to further define the string that is found and replaced using
variables from the dependency.

dependencies.yml

collectors:
- ...
  actors:
  - type: find-replace
    settings:  # all settings are optional
      paths:  # files to do the replacement in (otherwise will use the file the dependency was collected from)
      - README.md
      # pattern that sed will find/replace
      # can use `name`, `version`, `version_clean`, `source`, and `path` of the dependency
      # defaults to {version} to only replace based on the version numbers
      patterns:
      - '{name}: {version}'

      # Settings to configure the PR itself can be found
      # on the dependencies-io/pullrequest repo
      # https://github.com/dependencies-io/pullrequest/tree/0.6.0#dependenciesyml

Pattern args

  • name - dependency.name name of the dependency
  • version - version string
  • version_clean - version with leading "v" or "=" removed
  • source - dependency.source (ex. "npm", "pypi", "git", etc.)
  • path - dependency.path path that the collector gave for where this is installed at (ex. app/package.json)

Works well with

Resources

Support

Any questions or issues with this specific actor should be discussed in GitHub
issues
. If there is
private information which needs to be shared then you can instead use the
dependencies.io support.

Docker Pull Command
Owner
dependencies