Skip to main content

Pipe: Feature Flag Change Insights on Pull Request


Bitbucket Marketplace Listing

With this Bitbucket pipe, information on which DevCycle features have been added or removed in a code change will be shown directly on each Pull Request as a comment.

Note: This is intended for pull_request workflow events

Example Output

Example Output


Add the following snippet to your bitbucket-pipelines.yml file:

- step:
- pipe: devcyclehq/devcycle-pr-insights-pipe:1.2.0
USER_NAME: '<string>'
PASSWORD: '<string>'
# PROJECT_KEY: '<string>' # Optional.
# CLIENT_ID: '<string>' # Optional.
# CLIENT_SECRET: '<string>' # Optional.

We recommend including your DevCycle API credentials and project token as inputs. If included, the PR comment will be enriched with Feature Flag data from DevCycle.


  • To add variables to be used in the bitbucket-pipelines.yml, an admin must add Repository Variables in Repository Settings > Repository Variables, and then add all necessary variables as secured variables
USER_NAME (*)Your bitbucket username
PASSWORD (*)Your generated app password
PROJECT_KEYYour DevCycle project key, see Projects
CLIENT_IDYour organization's API client ID, see Organization Settings
CLIENT_SECRETYour organization's API client secret, see Organization Settings

(*) = required variable.


  1. Create a new Project & a new Feature
  2. Generate a new App Password
    • Select write permissions under Pull Requests, and create the password
  3. Grab your username, can easily find it in Personal Settings

Optional Prerequisites

  1. Grab the PROJECT_KEY in Projects, and find your specific project name & key
  2. Grab the CLIENT_ID in Settings, under API AUTHENTICATION
  3. Grab the CLIENT_SECRET in Settings, under API AUTHENTICATION


The patterns used to identify references to variables in your code are fully customizable. This action uses the DevCycle CLI under the hood, for details on how to configure the pattern matcher see the CLI configuration.