-
Notifications
You must be signed in to change notification settings - Fork 2
Add Generated Connector Template (Standard) #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # | ||
| # https://help.github.com/articles/dealing-with-line-endings/ | ||
| # | ||
| # Linux start script should use lf | ||
| /gradlew text eol=lf | ||
|
|
||
| # These are Windows script files and should use crlf | ||
| *.bat text eol=crlf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Lines starting with '#' are comments. | ||
| # Each line is a file pattern followed by one or more owners. | ||
|
|
||
| # See: https://help.github.com/articles/about-codeowners/ | ||
|
|
||
| # TODO: Add code owners | ||
| # These owners will be the default owners for everything in the repo. | ||
| * | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| ## Purpose | ||
|
|
||
| ## Examples | ||
|
|
||
| ## Checklist | ||
| - [ ] Linked to an issue | ||
| - [ ] Updated the changelog | ||
| - [ ] Added tests | ||
| - [ ] Updated the spec | ||
| - [ ] Checked native-image compatibility |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: GraalVM Check | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "30 18 * * *" | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| call_stdlib_workflow: | ||
| name: Run StdLib Workflow | ||
| if: ${{ github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'ballerina-platform') }} | ||
| uses: ballerina-platform/ballerina-library/.github/workflows/build-with-bal-test-graalvm-connector-template.yml@main | ||
| secrets: inherit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - 2201.[0-9]+.x | ||
| repository_dispatch: | ||
| types: check_connector_for_breaking_changes | ||
|
|
||
| jobs: | ||
| call_workflow: | ||
| name: Run Connector Build Workflow | ||
| if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
| uses: ballerina-platform/ballerina-library/.github/workflows/build-connector-template.yml@main | ||
| secrets: inherit | ||
| with: | ||
| repo-name: module-ballerinax-hubspot.crm.extensions.videoconferencing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Daily build | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "30 2 * * *" | ||
|
|
||
| jobs: | ||
| call_workflow: | ||
| name: Run Daily Build Workflow | ||
| if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
| uses: ballerina-platform/ballerina-library/.github/workflows/daily-build-connector-template.yml@main | ||
| secrets: inherit | ||
| with: | ||
| repo-name: module-ballerinax-hubspot.crm.extensions.videoconferencing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Publish to the Ballerina Dev\Stage Central | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| environment: | ||
| type: choice | ||
| description: Select Environment | ||
| required: true | ||
| options: | ||
| - DEV CENTRAL | ||
| - STAGE CENTRAL | ||
|
|
||
| jobs: | ||
| call_workflow: | ||
| name: Run Dev\Stage Central Publish Workflow | ||
| if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
| uses: ballerina-platform/ballerina-library/.github/workflows/dev-stage-central-publish-connector-template.yml@main | ||
| secrets: inherit | ||
| with: | ||
| environment: ${{ github.event.inputs.environment }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: PR Build | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| on: pull_request | ||
|
|
||
| jobs: | ||
| call_workflow: | ||
| name: Run PR Build Workflow | ||
| if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
| uses: ballerina-platform/ballerina-library/.github/workflows/pr-build-connector-template.yml@main | ||
| secrets: inherit | ||
| with: | ||
| additional-test-flags: ${{ github.event.pull_request.head.repo.full_name != github.repository && '-x test' || ''}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: Publish Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| repository_dispatch: | ||
| types: [ stdlib-release-pipeline ] | ||
|
|
||
| jobs: | ||
| call_workflow: | ||
| name: Run Release Workflow | ||
| if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
| uses: ballerina-platform/ballerina-library/.github/workflows/release-package-connector-template.yml@main | ||
| secrets: inherit | ||
| with: | ||
| package-name: hubspot.crm.extensions.videoconferencing | ||
| package-org: ballerinax |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Trivy | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: "30 20 * * *" | ||
|
|
||
| jobs: | ||
| call_workflow: | ||
| name: Run Trivy Scan Workflow | ||
| if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
| uses: ballerina-platform/ballerina-library/.github/workflows/trivy-scan-template.yml@main | ||
| secrets: inherit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,118 @@ | ||
| # module-ballerinax-hubspot.crm.extensions.videoconferencing | ||
| # Ballerina HubSpot CRM Video conference connector | ||
|
|
||
| [](https://github.com/ballerina-platform/module-ballerinax-hubspot.crm.extensions.videoconferencing/actions/workflows/ci.yml) | ||
| [](https://github.com/ballerina-platform/module-ballerinax-hubspot.crm.extensions.videoconferencing/actions/workflows/trivy-scan.yml) | ||
| [](https://github.com/ballerina-platform/module-ballerinax-hubspot.crm.extensions.videoconferencing/actions/workflows/build-with-bal-test-graalvm.yml) | ||
| [](https://github.com/ballerina-platform/module-ballerinax-hubspot.crm.extensions.videoconferencing/commits/master) | ||
| [](https://github.com/ballerina-platform/ballerina-library/labels/module%hubspot.crm.extensions.videoconferencing) | ||
|
|
||
| ## Overview | ||
|
|
||
| [//]: # (TODO: Add overview mentioning the purpose of the module, supported REST API versions, and other high-level details.) | ||
|
|
||
| ## Setup guide | ||
|
|
||
| [//]: # (TODO: Add detailed steps to obtain credentials and configure the module.) | ||
|
|
||
| ## Quickstart | ||
|
|
||
| [//]: # (TODO: Add a quickstart guide to demonstrate a basic functionality of the module, including sample code snippets.) | ||
|
|
||
| ## Examples | ||
|
|
||
| The `HubSpot CRM Video conference` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/module-ballerinax-hubspot.crm.extensions.videoconferencing/tree/main/examples/), covering the following use cases: | ||
|
|
||
| [//]: # (TODO: Add examples) | ||
|
|
||
| ## Build from the source | ||
|
|
||
| ### Setting up the prerequisites | ||
|
|
||
| 1. Download and install Java SE Development Kit (JDK) version 21. You can download it from either of the following sources: | ||
|
|
||
| * [Oracle JDK](https://www.oracle.com/java/technologies/downloads/) | ||
| * [OpenJDK](https://adoptium.net/) | ||
|
|
||
| > **Note:** After installation, remember to set the `JAVA_HOME` environment variable to the directory where JDK was installed. | ||
|
|
||
| 2. Download and install [Ballerina Swan Lake](https://ballerina.io/). | ||
|
|
||
| 3. Download and install [Docker](https://www.docker.com/get-started). | ||
|
|
||
| > **Note**: Ensure that the Docker daemon is running before executing any tests. | ||
|
|
||
| 4. Export Github Personal access token with read package permissions as follows, | ||
|
|
||
| ```bash | ||
| export packageUser=<Username> | ||
| export packagePAT=<Personal access token> | ||
| ``` | ||
|
|
||
| ### Build options | ||
|
|
||
| Execute the commands below to build from the source. | ||
|
|
||
| 1. To build the package: | ||
|
|
||
| ```bash | ||
| ./gradlew clean build | ||
| ``` | ||
|
|
||
| 2. To run the tests: | ||
|
|
||
| ```bash | ||
| ./gradlew clean test | ||
| ``` | ||
|
|
||
| 3. To build the without the tests: | ||
|
|
||
| ```bash | ||
| ./gradlew clean build -x test | ||
| ``` | ||
|
|
||
| 4. To run tests against different environments: | ||
|
|
||
| ```bash | ||
| ./gradlew clean test -Pgroups=<Comma separated groups/test cases> | ||
| ``` | ||
|
|
||
| 5. To debug the package with a remote debugger: | ||
|
|
||
| ```bash | ||
| ./gradlew clean build -Pdebug=<port> | ||
| ``` | ||
|
|
||
| 6. To debug with the Ballerina language: | ||
|
|
||
| ```bash | ||
| ./gradlew clean build -PbalJavaDebug=<port> | ||
| ``` | ||
|
|
||
| 7. Publish the generated artifacts to the local Ballerina Central repository: | ||
|
|
||
| ```bash | ||
| ./gradlew clean build -PpublishToLocalCentral=true | ||
| ``` | ||
|
|
||
| 8. Publish the generated artifacts to the Ballerina Central repository: | ||
|
|
||
| ```bash | ||
| ./gradlew clean build -PpublishToCentral=true | ||
| ``` | ||
|
|
||
| ## Contribute to Ballerina | ||
|
|
||
| As an open-source project, Ballerina welcomes contributions from the community. | ||
|
|
||
| For more information, go to the [contribution guidelines](https://github.com/ballerina-platform/ballerina-lang/blob/master/CONTRIBUTING.md). | ||
|
|
||
| ## Code of conduct | ||
|
|
||
| All the contributors are encouraged to read the [Ballerina Code of Conduct](https://ballerina.io/code-of-conduct). | ||
|
|
||
| ## Useful links | ||
|
|
||
| * For more information go to the [`hubspot.crm.extensions.videoconferencing` package](https://central.ballerina.io/ballerinax/hubspot.crm.extensions.videoconferencing/latest). | ||
| * For example demonstrations of the usage, go to [Ballerina By Examples](https://ballerina.io/learn/by-example/). | ||
| * Chat live with us via our [Discord server](https://discord.gg/ballerinalang). | ||
| * Post all technical questions on Stack Overflow with the [#ballerina](https://stackoverflow.com/questions/tagged/ballerina) tag. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| [package] | ||
| distribution = "2201.10.0" | ||
| org = "ballerinax" | ||
| name = "hubspot.crm.extensions.videoconferencing" | ||
| version = "1.0.0" | ||
| license = ["Apache-2.0"] | ||
| authors = ["Ballerina"] | ||
| keywords = [] | ||
| # icon = "icon.png" # TODO: update icon.png | ||
| repository = "https://github.com/ballerina-platform/module-ballerinax-hubspot.crm.extensions.videoconferencing" | ||
|
|
||
| [build-options] | ||
| observabilityIncluded = true | ||
|
|
||
| [platform.java21] | ||
| graalvmCompatible = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ## Overview | ||
|
|
||
| [//]: # (TODO: Add overview mentioning the purpose of the module, supported REST API versions, and other high-level details.) | ||
|
|
||
| ## Setup guide | ||
|
|
||
| [//]: # (TODO: Add detailed steps to obtain credentials and configure the module.) | ||
|
|
||
| ## Quickstart | ||
|
|
||
| [//]: # (TODO: Add a quickstart guide to demonstrate a basic functionality of the module, including sample code snippets.) | ||
|
|
||
| ## Examples | ||
|
|
||
| The `HubSpot CRM Video conference` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/module-ballerinax-hubspot.crm.extensions.videoconferencing/tree/main/examples/), covering the following use cases: | ||
|
|
||
| [//]: # (TODO: Add examples) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ## Overview | ||
|
|
||
| [//]: # (TODO: Add overview mentioning the purpose of the module, supported REST API versions, and other high-level details.) | ||
|
|
||
| ## Setup guide | ||
|
|
||
| [//]: # (TODO: Add detailed steps to obtain credentials and configure the module.) | ||
|
|
||
| ## Quickstart | ||
|
|
||
| [//]: # (TODO: Add a quickstart guide to demonstrate a basic functionality of the module, including sample code snippets.) | ||
|
|
||
| ## Examples | ||
|
|
||
| The `HubSpot CRM Video conference` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/module-ballerinax-hubspot.crm.extensions.videoconferencing/tree/main/examples/), covering the following use cases: | ||
|
|
||
| [//]: # (TODO: Add examples) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.