Skip to content

Commit

Permalink
fix: Add support for partner_id for filtering item availability / Dit…
Browse files Browse the repository at this point in the history
…ch need for release branch
  • Loading branch information
Antaris committed Apr 15, 2024
1 parent 186277c commit 2a2946d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
on:
push:
branches:
- release/*
tags:
- '[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: write

jobs:
build:
name: Build NuGet package
runs-on: ubuntu-latest
timeout-minutes: 15
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 999
fetch-tags: true
submodules: true
ssh-key: ${{ secrets.ACCESS_KEY }}
- name: Release Notes
run: |
git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: (\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE_NOTES.md
- name: Build
run: ./build.sh --target Publish --publish --nuget --token ${{ secrets.PUBLIC_NUGET_APIKEY }}
release:
name: Create GitHub Release
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public async Task<TrybeResponse<OfferingDateAvailability[]>> GetOfferingDates(
.AddParameter("date_from", datesRequest.DateFrom.ToString("yyyy-MM-dd"))
.AddParameter("date_to", datesRequest.DateTo.ToString("yyyy-MM-dd"))
.AddParameter("quantity", datesRequest.Quantity)
.AddParameter("partner_id", datesRequest.PartnerId)
.Build();

var request = new TrybeRequest(HttpMethod.Get, path + "/offering-dates", query);
Expand All @@ -66,4 +67,7 @@ public class GetOfferingDatesRequest

[JsonPropertyName("quantity")]
public int Quantity { get; set; }

[JsonPropertyName("partner_id")]
public string PartnerId { get; set; }
}

0 comments on commit 2a2946d

Please sign in to comment.