Skip to content
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
47e0230
bump version
y-lakhdar Aug 26, 2022
16229dd
chore: update CODEOWNERS (#23)
louis-bompart Jan 11, 2023
9f6c8a3
Update README.md
olamothe Mar 23, 2023
f3889db
chore: create dependency-review.yml (#24)
JPLachance Apr 21, 2023
4731e1b
ci: add codeql workflow (#26)
y-lakhdar May 19, 2023
3a6b08a
feat: create `PushSource` and `catalogSource` classes (#30)
y-lakhdar May 25, 2023
d957202
chore: use CodeQL public action (#31)
y-lakhdar May 26, 2023
071ba14
feat: implement `StreamService` class (#32)
y-lakhdar May 31, 2023
cd32e2e
fix: provide JSON value (#36)
y-lakhdar Jun 1, 2023
cce3baf
feat: implement `DocumentUploadQueue` class (#33)
y-lakhdar Jun 1, 2023
aa3335c
feat: add create method in `CatalogSource` and `PushSource` (LENS-874…
hdhayneCoveo Jun 2, 2023
0158c99
fix: bug related to the type expected of delete documents
hdhayneCoveo Jun 8, 2023
ea3153c
docs: create Sample Code classes to create push and Catalog Source in…
hdhayneCoveo Jun 8, 2023
2631e74
feat: implement `PushService` class (#34)
y-lakhdar Jun 9, 2023
d9b0b47
ci: ensure semantic title (#41)
y-lakhdar Jun 9, 2023
8a0f6b6
ci: format code base (#44)
y-lakhdar Jun 9, 2023
bc2af2e
fix: in StreamService streamId was never set , with this PR , it is r…
hdhayneCoveo Jun 9, 2023
f8e25da
ci: fix typo in GH workflow (#45)
y-lakhdar Jun 12, 2023
a21ccb8
ci: automate package publish (#47)
y-lakhdar Jun 12, 2023
7e90aa4
ci: adjust script path (#49)
y-lakhdar Jun 12, 2023
fea6a26
ci: add missing environment variables (#50)
y-lakhdar Jun 12, 2023
77cbdd1
ci: add missing export (#51)
y-lakhdar Jun 12, 2023
1feb9cc
docs: create sample code to stream document (#43)
hdhayneCoveo Jun 12, 2023
d28fe2e
feat:expose publicly PushSource,CatalogSource,StreamService (#46)
hdhayneCoveo Jun 12, 2023
3456646
ci: fix release script (#52)
y-lakhdar Jun 13, 2023
52b3557
ci: configure Renovate (#56)
renovate[bot] Jun 13, 2023
6f343d2
chore(deps): update dependency junit:junit to v4.13.1 [security] (#58)
renovate[bot] Jun 13, 2023
366323d
fix(deps): update dependency com.google.code.gson:gson to v2.8.9 [sec…
renovate[bot] Jun 13, 2023
bb8d5fd
chore(deps): update actions/checkout digest to c85c95e (#60)
renovate[bot] Jun 13, 2023
d89982f
chore(deps): update dependency junit:junit to v4.13.2 (#61)
renovate[bot] Jun 13, 2023
c8559aa
chore(deps): update dependency @commitlint/config-conventional to v17…
renovate[bot] Jun 13, 2023
3ddf532
chore(deps): update dependency org.apache.maven.plugins:maven-javadoc…
renovate[bot] Jun 13, 2023
57dc725
ci: fix release script (#54)
y-lakhdar Jun 13, 2023
f757ac1
chore(main): release 2.0.1-SNAPSHOT (#53)
developer-experience-bot[bot] Jun 13, 2023
1609aca
chore(main): release 2.0.1-SNAPSHOT (#64)
developer-experience-bot[bot] Jun 13, 2023
9631b80
ci: update renovate config (#55)
y-lakhdar Jun 14, 2023
40e348e
chore: put API requests into dedicated class
y-lakhdar Jun 15, 2023
9442514
docs: use appropriate javadoc url syntax (#77)
y-lakhdar Jun 15, 2023
496b682
chore(main): release 2.2.1-SNAPSHOT (#78)
developer-experience-bot[bot] Jun 15, 2023
67ce19c
chore(main): release 2.2.1-SNAPSHOT (#79)
developer-experience-bot[bot] Jun 15, 2023
c19c61a
chore: release 2.3.0
y-lakhdar Jun 16, 2023
4254279
chore(main): release 2.2.1-SNAPSHOT (#80)
developer-experience-bot[bot] Jun 16, 2023
6b76a46
feat: enable push on catalog source
y-lakhdar Jun 16, 2023
f555753
chore: put API requests into dedicated class (#76)
y-lakhdar Jun 16, 2023
47db1e4
Merge branch 'main' of github.com:coveo/push-api-client.java into CDX…
y-lakhdar Jun 16, 2023
b35cb82
Merge branch 'main' of github.com:coveo/push-api-client.java into CDX…
y-lakhdar Jun 20, 2023
03593af
Merge branch 'main' into CDX-1464
y-lakhdar Jun 20, 2023
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
19 changes: 19 additions & 0 deletions .github/workflows/auto-approve-renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Automated approval

on:
pull_request:
types:
- opened
- reopened
- labeled

jobs:
auto-approve:
runs-on: ubuntu-latest
if: "${{ (github.actor == 'developer-experience-bot[bot]') && contains(github.event.pull_request.labels.*.name, 'autorelease: snapshot') }}"
steps:
- name: auto-approve
id: auto-approve
uses: coveo/actions/auto-approve-action@main
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 16

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '16'
java-version: '11'
distribution: 'adopt'

- name: Validate code format
run: mvn spotless:check

- name: Build with Maven
run: mvn -B package --file pom.xml
17 changes: 17 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'CodeQL'

on:
push:
branches: ['main']

pull_request:
branches: ['main']

schedule:
- cron: '29 3 * * 6' # Runs at 03:29, only on Saturday.

jobs:
analyze-java:
uses: coveo/public-actions/.github/workflows/java-maven-openjdk11-codeql.yml@main
with:
runs-on: '"ubuntu-latest"'
17 changes: 17 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Dependency Review'

on:
pull_request:
branches: [ "main" ]

permissions:
contents: read
pull-requests: write

jobs:
dependency-Review:
name: Review
uses: coveo/public-actions/.github/workflows/dependency-review.yml@main
with:
public: true
distributed: true
34 changes: 34 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path

name: Maven Package

on:
# TODO: remove after release. This is a fail safe in case this workflow does not get triggered
workflow_dispatch:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: github

- name: Build with Maven
run: mvn -B clean package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
GITHUB_TOKEN: ${{ github.token }}
16 changes: 16 additions & 0 deletions .github/workflows/pr-title-semantic-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: PrTitleSemanticLint
on:
pull_request:
branches: [main]
types: [opened, edited, synchronize, reopened]
jobs:
Lint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Ensure PR Title is Semantic
run: |
npm ci
npx @coveo/is-pr-title-semantic
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Create release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
environment: 'Release'
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: npm ci

- name: Get Release Token
run: npm run get-token
env:
RELEASER_APP_ID: ${{ secrets.RELEASER_APP_ID }}
RELEASER_PRIVATE_KEY: ${{ secrets.RELEASER_PRIVATE_KEY }}
RELEASER_CLIENT_ID: ${{ secrets.RELEASER_CLIENT_ID }}
RELEASER_CLIENT_SECRET: ${{ secrets.RELEASER_CLIENT_SECRET }}
RELEASER_INSTALLATION_ID: ${{ secrets.RELEASER_INSTALLATION_ID }}

- uses: actions/setup-java@v3
name: Set up Java
with:
java-version: '11'
distribution: 'adopt'

- name: Build Java package
run: mvn clean package

- uses: google-github-actions/release-please-action@v3
name: Release Java package
with:
release-type: maven
package-name: release-please-action
default-branch: main
pull-request-title-pattern: 'chore${scope}: release${component} ${version} [skip-ci]'
token: ${{ env.RELEASE_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
/target/
.env
/.idea/
.vscode
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @olamothe @y-lakhdar @louis-bompart
* @coveo/dx
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Using Maven:
<dependency>
<groupId>com.coveo</groupId>
<artifactId>push-api-client.java</artifactId>
<version>1.0.0</version>
<version>2.2.0</version>
</dependency>
```

Expand Down Expand Up @@ -45,6 +45,15 @@ public class PushOneDocument {

```

## Local Setup to Contribute

### Formatting

This project uses [Google Java Format](https://github.com/google/google-java-format), so make sure your code is properly formatted before opening a pull request.
```bash
mvn spotless:apply
```

## Release

* Tag the commit following semver.
Expand All @@ -53,4 +62,4 @@ public class PushOneDocument {
* cd into ./target
* jar -cvf bundle.jar push-api-client.java-1.0.0-javadoc.jar push-api-client.java-1.0.0-javadoc.jar.asc push-api-client.java-1.0.0-sources.jar push-api-client.java-1.0.0-sources.jar.asc push-api-client.java-1.0.0.jar push-api-client.java-1.0.0.jar.asc push-api-client.java-1.0.0.pom push-api-client.java-1.0.0.pom.asc
* Log into https://oss.sonatype.org/
* Upload newly created bundle.jar
* Upload newly created bundle.jar
Loading