Prerequisites
- Flipt v2
- An understanding of Flipt v2 Branching
- A Flipt v2 environment configured with Git Sync and Git SCM
- A Flipt v2 Pro license or trial license
Flipt v2 merge proposals are supported by most of the major Git providers
including GitHub, GitLab, Bitbucket, Gitea, and Azure DevOps.
Using Merge Proposals
Flipt v2 allows you to create merge proposals for your environments. This is useful if you want to review and approve changes to your environments before they are merged into the source environment.Creating a Merge Proposal
To create a merge proposal you must first create a branch. See the Branching guide for more information on how to create a branch. Once you have created a branch and made changes to your environment, you can create a merge proposal by clicking the branch info label in the top right of the Flipt UI. This will bring up a menu allowing you to view the remote branch, propose changes, or delete the branch. Click thePropose changes button to create a merge proposal.
This will bring up a modal allowing you to review the changes you are proposing, add an optional description and optionally open the merge proposal in โdraftโ mode for those SCM providers that support it.
Click the Submit proposal button to create a merge proposal.
You should see a success message and the merge proposal will be created.
Refresh the page and click the branch info label again to see the merge proposal in the menu.
Click the View open merge proposal button to view the merge proposal in the SCM provider.
Customizing Generated Titles and Descriptions
Flipt generates merge proposal titles and descriptions from Gotext/template templates. You can configure server-wide defaults in your Flipt configuration:
config.yaml
Repository-level templates in
flipt.yaml or flipt.yml override the server-wide templates for that repository:
flipt.yaml
These templates configure the generated defaults. If a merge proposal request
provides a title or description, Flipt uses the provided value instead of the
template. The Flipt UI can provide a one-off description, but it does not yet
let you edit the configured template text or override the generated title
directly.
Review and Merge a Merge Proposal
Reviewing and merging a merge proposal is the same as reviewing and merging a code pull request in your SCM provider. Once the merge proposal is approved, you can merge it into the source environment by clicking theMerge button or similar button in your SCM provider.
After the merge proposal is merged on the SCM provider, the changes will be synced to the source environment.
Refresh the Flipt v2 UI and you should see the changes in the source environment.
You will need to wait until the merge proposal is synced by the Flipt v2
server you can see the changes. This is entirely dependent on the
poll_interval configured in your Flipt configuration file for your Git
environment storage.Close a Merge Proposal
Closing a merge proposal before merging follows the same process as closing a code pull request in your SCM provider. To close a merge proposal, click theClose button or similar button in your SCM provider.
After the merge proposal is closed on the SCM provider, the changes will be reflected in the Flipt v2 UI.