Set up a project's Git integration
Each AssertThat project syncs with one repository, branch and folder. You need to be an admin of the Jira project.
Open the Git integration
Section titled “Open the Git integration”- Open the project and go to Space settings > Apps > AssertThat BDD.
- Open the Git sync tab.
Fill in the settings
Section titled “Fill in the settings”
| Setting | What to enter |
|---|---|
| Connection | A site-wide connection set up by a Jira admin (the AssertThat GitHub App or a token connection), or Project token (override) to use a token of this project’s own |
| Provider | GitHub or Bitbucket (set by the connection when you choose one) |
| Repository | owner/name, for example assertthat/bramble-bdd-demo. For Bitbucket, workspace/repository |
| Branch | The branch to sync, for example main |
| Folder | The folder for the .feature files, for example features. Leave empty for the repository root. Sub-folders are included when importing |
| Master | AssertThat is the master: Sync now commits features to the repository. The repository is the master: pushes and Sync now import feature files |
| How exports reach the repository | Only when AssertThat is the master: Commit directly to the branch, or Open a pull request for each sync |
With Project token (override), also enter the Access token: for GitHub a fine-grained token with Contents read and write on the repository, for Bitbucket a repository or workspace access token with read and write. Fill in Username only for a Bitbucket API token or app password. Once saved, the token shows as Stored; leave the field blank to keep it.
Select Save, then Test connection. AssertThat checks that it can read the repository and the branch with the connection’s credentials, and tells you which one it can’t find if either is missing.
Run the first sync
Section titled “Run the first sync”Select Sync now.
- When AssertThat is the master, every feature with scenarios is written to the folder, and
.featurefiles in the folder that don’t match a feature are removed. In pull request mode, AssertThat pushes a branch named likeassertthat/sync-20261201-153012and opens a pull request into your branch. - When the repository is the master, every
.featurefile in the folder (and its sub-folders) is imported. Features with the same name are overwritten.

The sync runs in the background. Its state shows next to the button (Syncing, Last sync succeeded or Last sync failed) and in the sync log. Only one sync runs per project at a time.
Import on every push
Section titled “Import on every push”When the repository is the master, pushes to the branch can be imported automatically:
- With the AssertThat GitHub App: nothing to do. Pushes arrive through the app.
- With a token: the Git integration shows a Webhook URL and Secret under Import on every push. Add a push webhook to the repository with these values (on GitHub, set the content type to
application/json). AssertThat only accepts pushes signed with the secret.
Change or remove the integration
Section titled “Change or remove the integration”Change any setting and select Save. Remove deletes the project’s Git integration and any project token. It doesn’t change anything in the repository or in AssertThat’s features.