Skip to content

Commit b38ee80

Browse files
authored
feat: add content_source enum override + update java sdk (#239)
1 parent ff69049 commit b38ee80

File tree

4 files changed

+45
-10
lines changed

4 files changed

+45
-10
lines changed

.github/workflows/java-sdk.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release Java SDK
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The version of the SDKs that you would like to release"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v3
17+
18+
- name: Setup node
19+
uses: actions/setup-node@v4
20+
21+
- name: Download Fern
22+
run: npm install -g fern-api
23+
24+
- name: Release SDKs
25+
env:
26+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
27+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
28+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
29+
run: |
30+
fern generate --group java-sdk --version ${{ inputs.version }} --log-level debug

fern/fern.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"organization": "intercom",
3-
"version": "0.56.19"
3+
"version": "0.57.17"
44
}

fern/generators.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ groups:
3939
java-sdk:
4040
generators:
4141
- name: fernapi/fern-java-sdk
42-
version: 2.25.0
43-
# output:
44-
# location: maven
45-
# coordinate: com.square:square-java
46-
# username: ${MAVEN_USERNAME}
47-
# password: ${MAVEN_PASSWORD}
42+
version: 2.32.4
43+
output:
44+
location: maven
45+
coordinate: io.intercom:intercom-java
46+
username: ${MAVEN_USERNAME}
47+
password: ${MAVEN_PASSWORD}
4848
github:
49-
repository: fern-demo/intercom-java-sdk
50-
branch: gettin-tests-to-work
51-
mode: push
49+
repository: intercom/intercom-java
50+
mode: pull-request
5251
config:
5352
enable-inline-types: true
5453
client-class-name: Intercom
5554
inline-path-parameters: true
55+
# enable-forward-compatible-enums: true

fern/openapi-overrides.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,11 @@ components:
13881388
format: uri
13891389
description: An image URL containing the avatar of a contact.
13901390
example: https://example.org/128Wash.jpg
1391+
content_source:
1392+
properties:
1393+
content_type:
1394+
enum:
1395+
- custom_answer
13911396
create_article_request:
13921397
properties:
13931398
parent_type:

0 commit comments

Comments
 (0)