Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Comment PR
if: github.base_ref == 'master' && github.head_ref != 'next'
if: github.base_ref == 'master' && github.head_ref != 'staging'
uses: thollander/actions-comment-pull-request@v2
with:
message: |
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### Version: 2.15.1
#### Date: Oct-08-2024

##### Fix:
- Removed exclusion of env when adding headers

### Version: 2.15.0
#### Date: Jul-30-2024

Expand Down
6 changes: 1 addition & 5 deletions Contentstack.Core/Models/Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1380,12 +1380,8 @@ public async Task<T> Fetch<T>()
headerAll["authorization"] = this.ContentTypeInstance.StackInstance.LivePreviewConfig.ManagementToken;
isLivePreview = true;
}
else
{
mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
}


mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
foreach (var kvp in UrlQueries)
{
mainJson.Add(kvp.Key, kvp.Value);
Expand Down
6 changes: 2 additions & 4 deletions Contentstack.Core/Models/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1851,10 +1851,8 @@ private async Task<JObject> Exec()
headerAll["authorization"] = this.ContentTypeInstance.StackInstance.LivePreviewConfig.ManagementToken;
isLivePreview = true;
}
else
{
mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
}

mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
if (QueryValueJson != null && QueryValueJson.Count > 0)
mainJson.Add("query", QueryValueJson);

Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>2.15.0</Version>
<Version>2.15.1</Version>
</PropertyGroup>
</Project>
Loading