{
  "key": "com.bit-booster.bb.hooks",
  "baseUrl": "https://cf.bit-booster.com/",
  "name": "Bit-Booster - Control Freak",
  "description": "Provides controls on PR to keep a clean git history",
  "vendor": {
    "name": "Bit-Booster Software",
    "url": "https://bit-booster.com/"
  },
  "version": "2025032601",
  "authentication": {
    "type": "jwt"
  },
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled"
  },
  "modules": {
    "webhooks": [
      {
        "event": "pullrequest:updated",
        "url": "/pullrequest/updated?ver=2025032601"
      },
      {
        "event": "pullrequest:created",
        "url": "/pullrequest/created?ver=2025032601"
      },
      {
        "event": "pullrequest:approved",
        "url": "/pullrequest/approved?ver=2025032601"
      },
      {
        "event": "pullrequest:rejected",
        "url": "/pullrequest/rejected?ver=2025032601"
      },
      {
        "event": "pullrequest:unapproved",
        "url": "/pullrequest/unapproved?ver=2025032601"
      },
      {
        "event": "pullrequest:changes_request_created",
        "url": "/pullrequest/changes_request_created?ver=2025032601"
      },
      {
        "event": "pullrequest:changes_request_removed",
        "url": "/pullrequest/changes_request_removed?ver=2025032601"
      },
      {
        "event": "repo:push",
        "url": "/repo/push?ver=2025032601"
      },
      {
        "event": "repo:updated",
        "url": "/repo/updated?ver=2025032601"
      },
      {
        "event": "project:updated",
        "url": "/project/updated?ver=2025032601"
      }
    ],
    "configurePage": {
      "url": "/workspace/general?target_user_uuid={target_user.uuid}&user_uuid={user.uuid}",
      "name": {
        "value": "General"
      },
      "key": "repo-control-freak-configure-page",
      "weight": 1
    },
    "adminPages": [
      {
        "url": "/repository/settings/?target_user_uuid={target_user.uuid}&target_repo={repository.uuid}",
        "location": "org.bitbucket.repository.admin",
        "name": {
          "value": "Repository Settings"
        },
        "key": "repo-control-freak-repo-admin-page"
      },
      {
        "url": "/workspace/settings?target_user_uuid={target_user.uuid}&user_uuid={user.uuid}",
        "location": "org.bitbucket.account.admin",
        "name": {
          "value": "Workspace Settings"
        },
        "key": "repo-control-freak-workspace-admin-page",
        "weight": 300
      },
      {
        "url": "/workspace/connections?target_user_uuid={target_user.uuid}&user_uuid={user.uuid}",
        "location": "org.bitbucket.account.admin",
        "name": {
          "value": "Workspace Connections"
        },
        "key": "repo-control-freak-workspace-connection-page",
        "weight": 200
      },
      {
        "url": "/project/settings/?target_user_uuid={target_user.uuid}&user_uuid={user.uuid}",
        "location": "org.bitbucket.account.admin",
        "name": {
          "value": "Projects Settings"
        },
        "key": "repo-control-freak-project-admin-page",
        "weight": 100
      }
    ],
    "webPanels": [
      {
        "url": "/pullrequest/summary/?target_user_uuid={target_user.uuid}&target_repo={repository.uuid}&pullrequest_id={pullrequest.id}&user_uuid={user.uuid}",
        "location": "org.bitbucket.pullrequest.overview.informationPanel",
        "name": {
          "value": "Bit-Booster - Control Freak"
        },
        "key": "control-freak-pullrequest-summary-web-panel",
        "weight": 1,
        "tooltip": {
          "value": "Control Freak helps keep yur commit history clean"
        }
      }
    ],
    "webItems": [
      {
        "url": "/pullrequest/actions/main/?target_user_uuid={target_user.uuid}&target_repo={repository.uuid}&pullrequest_id={pullrequest_id}",
        "location": "org.bitbucket.pullrequest.summary.actions",
        "name": {
          "value": "Control Freak"
        },
        "key": "bb-control-freak-pullrequest-summary-actions-main",
        "target": {
          "type": "dialog",
          "options": {
            "height": "560px",
            "width": "850px"
          }
        },
        "weight": 1000
      },
      {
        "url": "/pullrequest/actions/main/recheck/?target_user_uuid={target_user.uuid}&target_repo={repository.uuid}&pullrequest_id={pullrequest_id}",
        "location": "org.bitbucket.pullrequest.summary.actions",
        "name": {
          "value": "    Recheck"
        },
        "key": "bb-control-freak-pullrequest-summary-actions-main-recheck",
        "target": {
          "type": "dialog",
          "options": {
            "height": "560px",
            "width": "850px"
          }
        },
        "weight": 1001,
        "tooltip": {
          "value": "Recheck Control Freaks Policies"
        }
      }
    ]
  },
  "scopes": [
    "project:write",
    "repository:admin",
    "pullrequest:write",
    "account",
    "repository"
  ],
  "contexts": [
    "account"
  ]
}
