diff --git a/.github/workflows/create_asana_task.yaml b/.github/workflows/create_asana_task.yaml deleted file mode 100644 index cfe3f88b..00000000 --- a/.github/workflows/create_asana_task.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: Asana -on: - issues: - types: [opened] - -jobs: - create_task: - name: Create Asana task - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - uses: orbcorp/gha-create-asana-task@main - with: - asana-secret: ${{ secrets.ASANA_PAT }} - asana-project-id: ${{ secrets.ASANA_PROJECT_ID }} - asana-workspace-id: ${{ secrets.ASANA_WORKSPACE_ID }} - asana-task-name: ${{ github.event.issue.title }} - asana-task-description: ${{ github.event.issue.body }} - asana-custom-fields: |- - { - "1205809189288915": "1205809189288918", - "1205809189288926": "${{ github.event.issue.html_url }}" - } diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2292ca70..5488c3bb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.95.0" + ".": "0.95.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index baf2407c..6b1bd048 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.95.1 (2025-02-15) + +Full Changelog: [v0.95.0...v0.95.1](https://github.com/orbcorp/orb-go/compare/v0.95.0...v0.95.1) + +### Bug Fixes + +* **client:** don't truncate manually specified filenames ([#440](https://github.com/orbcorp/orb-go/issues/440)) ([ad1b4fc](https://github.com/orbcorp/orb-go/commit/ad1b4fc1b261a8f6cea4f93fee27d140cd910fc4)) + + +### Chores + +* **internal:** codegen related update ([#438](https://github.com/orbcorp/orb-go/issues/438)) ([165a6f7](https://github.com/orbcorp/orb-go/commit/165a6f7ba52973524aeb8ca6b0c0f27a41d91c54)) + ## 0.95.0 (2025-02-14) Full Changelog: [v0.94.0...v0.95.0](https://github.com/orbcorp/orb-go/compare/v0.94.0...v0.95.0) diff --git a/README.md b/README.md index 8144fbc6..2b158c78 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Or to pin the version: ```sh -go get -u 'github.com/orbcorp/orb-go@v0.95.0' +go get -u 'github.com/orbcorp/orb-go@v0.95.1' ``` diff --git a/field.go b/field.go index 740ba646..55020c28 100644 --- a/field.go +++ b/field.go @@ -46,5 +46,5 @@ type file struct { contentType string } -func (f *file) Name() string { return f.name } func (f *file) ContentType() string { return f.contentType } +func (f *file) Filename() string { return f.name } diff --git a/internal/apiform/encoder.go b/internal/apiform/encoder.go index 4d208147..ef831047 100644 --- a/internal/apiform/encoder.go +++ b/internal/apiform/encoder.go @@ -315,7 +315,9 @@ func (e *encoder) newReaderTypeEncoder() encoderFunc { reader := value.Convert(reflect.TypeOf((*io.Reader)(nil)).Elem()).Interface().(io.Reader) filename := "anonymous_file" contentType := "application/octet-stream" - if named, ok := reader.(interface{ Name() string }); ok { + if named, ok := reader.(interface{ Filename() string }); ok { + filename = named.Filename() + } else if named, ok := reader.(interface{ Name() string }); ok { filename = path.Base(named.Name()) } if typed, ok := reader.(interface{ ContentType() string }); ok { diff --git a/internal/version.go b/internal/version.go index c5ee30ab..6d4e3a0d 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.95.0" // x-release-please-version +const PackageVersion = "0.95.1" // x-release-please-version