MIRROR: Git backporting is a CLI tool to execute pull request backporting.
Find a file
dependabot[bot] 93a33c3dc4
Bump @octokit/webhooks-types from 6.7.0 to 6.8.0 (#10)
Bumps [@octokit/webhooks-types](https://github.com/octokit/webhooks) from 6.7.0 to 6.8.0.
- [Release notes](https://github.com/octokit/webhooks/releases)
- [Commits](https://github.com/octokit/webhooks/compare/v6.7.0...v6.8.0)

---
updated-dependencies:
- dependency-name: "@octokit/webhooks-types"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-23 19:42:29 +01:00
.github minors 2022-12-23 19:38:57 +01:00
.husky Base implementation 2022-12-23 19:03:23 +01:00
build minors 2022-12-23 19:38:57 +01:00
dist minors 2022-12-23 19:38:57 +01:00
src minors 2022-12-23 19:38:57 +01:00
test minors 2022-12-23 19:38:57 +01:00
.eslintignore project setup 2022-12-06 18:10:30 +01:00
.eslintrc Base implementation 2022-12-23 19:03:23 +01:00
.gitignore Base implementation 2022-12-23 19:03:23 +01:00
action.yml Base implementation 2022-12-23 19:03:23 +01:00
CHANGELOG.md project setup 2022-12-06 18:10:30 +01:00
jest.config.ts Base implementation 2022-12-23 19:03:23 +01:00
package-lock.json Bump @octokit/webhooks-types from 6.7.0 to 6.8.0 (#10) 2022-12-23 19:42:29 +01:00
package.json Bump @octokit/webhooks-types from 6.7.0 to 6.8.0 (#10) 2022-12-23 19:42:29 +01:00
README.md Base implementation 2022-12-23 19:03:23 +01:00
tsconfig.json Base implementation 2022-12-23 19:03:23 +01:00

BPER: Git Backporter

📤 📥

CI Checks Status


BPer is a NodeJS command line tool that provides capabilities to backport [1] pull requests in an automated way. This tool also comes with a predefined GitHub action in order to make CI/CD integration easier for all users.

[1] backporting is an action aiming to move a change (usually a commit) from a branch (usually the main one) to another one, which is generally referring to a still maintained release branch. Keeping it simple: it is about to move a specific change or a set of them from one branch to another.

Table of content

Usage

Inputs

GitHub Action

This action can be used in any GitHub workflow, below you can find a simple example of manually triggered workflow backporting a specific pull request (provided as input).

name: Pull Request Backporting using BPer

on: 
  workflow_dispatch:
    inputs:
      targetBranch:
        description: 'Target branch'
        required: true
        type: string
      pullRequest:
        description: 'Pull request'
        required: true 
        type: string
      dryRun:
        description: 'Dry run'
        required: false
        default: "true" 
        type: string

jobs:
  backporting:
    name: "Backporting"
    runs-on: ubuntu-latest
    steps:
      - name: Backporting
        uses: lampajr/backporting@main
        with:
          target-branch: ${{ inputs.targetBranch }}
          pull-request: ${{ inputs.pullRequest }}
          auth: ${{ secrets.GITHUB_TOKEN }}
          dry-run: ${{ inputs.dryRun }}

You can also use this action with other events - you'll just need to specify target-branch and pull-request params.

For a complete description of all inputs see Inputs section.

Limitations

Contributions