Skip to content

Commit

Permalink
contribution: add doc for auto-cherry-pick (erda-project#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfwn authored May 28, 2021
1 parent 87b53fb commit 8ea023e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ Once we've discussed your changes and you've got your code ready, make sure that
* Includes tests for new functionality.
* References the original issue in description, e.g. "Resolves #123".
* Has a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).

## How to cherry pick a merged PR?

See [cherry-pick.md](./docs/guides/dev/cherry-pick.md).
28 changes: 28 additions & 0 deletions docs/guides/dev/cherry-pick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Overview

This document explains how cherry picks are managed on release branches within all erda-projects repositories.

A common use case for cherry picks is backporting PRs from master to release branches.

## Initiate a Cherry Pick

- Open your **MERGED** PR page on browser

- Add a comment

This example applies a master branch PR to the release/1.0:
```
/cherry-pick release/1.0
```

Tips:
If you comment to an **UNMERGED** PR, erda-bot will auto append a commit to tell you: cherry-pick to an unmerged PR is
forbidden.

## Searching for Cherry Picks

Filter by labels: `auto-cherry-pick`

Examples:

- [Erda auto-cherry-pick](https://github.com/erda-project/erda/pulls?q=is%3Apr+label%3Aauto-cherry-pick)

0 comments on commit 8ea023e

Please sign in to comment.