diff --git a/README.md b/README.md index 661e653..5595f26 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Available endpoints: * Requires valid branch reference in payload * Requires auth token * Protected by distributed locking - * Example payload: `{"ref": "refs/heads/views"}` + * Example payload: `{"ref": "refs/heads/main"}` * `GET /cacheHash.json` * Returns current git hash of the data store @@ -93,7 +93,7 @@ Required environment variables: * `TEMP`: path to an existing folder to create temporary locks * `dataViewsFolder`: path to where your repository of `addon-datastore` is checked out locally * `branchRef`: Git branch to track for `addon-datastore` - * views-staging/views + * Default is `main` * `COPYRIGHT_YEARS`: String of years displayed on web front-end for add-on store * e.g. 2025-2026 @@ -117,5 +117,5 @@ Test the following scenarios: * Invalid NVDA API version should return appropriate error 3. Update Endpoint: - * Valid branch update (e.g., `{"ref": "refs/heads/views"}`) + * Valid branch update (e.g., `{"ref": "refs/heads/main"}`) * Invalid branch reference should be rejected diff --git a/src/app.py b/src/app.py index f3bd08f..b1b8885 100644 --- a/src/app.py +++ b/src/app.py @@ -484,7 +484,7 @@ def update(): return Response("Branch reference missing", status=HTTPStatus.BAD_REQUEST) # Get the configured branch from environment - configured_branch = os.getenv("branchRef", "refs/heads/views-staging") + configured_branch = os.getenv("branchRef", "refs/heads/main") if request.json["ref"] != configured_branch: log.info( f"Skipping update for non-target branch: got {request.json['ref']}, configured for {configured_branch}",