Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
e74b29f
feat: add v1.2 API files
zejd-cicak Jan 18, 2025
2b76b06
Merge pull request #3 from cloudbeds/feat/add-pms-v1-api
zejd-cicak Jan 20, 2025
667afa5
feat: add package file
zejd-cicak Jan 20, 2025
b354584
feat: add input spec to openapitools.json
zejd-cicak Jan 20, 2025
c5eb17b
ci: add publish.yaml to v1 as well
zejd-cicak Jan 30, 2025
ca8a476
fix: update lock file
zejd-cicak Jan 30, 2025
48b1029
ci: backport changes in main
potyl Jan 30, 2025
83f9db1
chore: backport changes for openapi generator version and pytyped fro…
zejd-cicak Jan 30, 2025
8c326d1
Merge pull request #7 from cloudbeds/chore/backport-from-main
zejd-cicak Jan 30, 2025
627f1e7
chore: backport runners change from main -> use ubuntu latest instead…
zejd-cicak Jan 31, 2025
485219d
Merge pull request #9 from cloudbeds/chore/backport-from-main
zejd-cicak Jan 31, 2025
1f3ef6f
fix: inline org action that gets a token for aws
zejd-cicak Jan 31, 2025
f574b2c
fix: refactor app private key to be output instead of being in env
zejd-cicak Jan 31, 2025
2e7d2b8
fix: replace how we get github app token
zejd-cicak Jan 31, 2025
4860591
fix: replace underscores with dashes in ids, removed unused ids
zejd-cicak Jan 31, 2025
41cc7bd
Merge pull request #10 from cloudbeds/fix/remove-org-actions
zejd-cicak Jan 31, 2025
af8ccef
chore: backport custom mfd version to v1
zejd-cicak Jan 31, 2025
02c1e42
Merge pull request #13 from cloudbeds/chore/backport-custom-mfd-tag
zejd-cicak Jan 31, 2025
260da25
Bump version to 1.1.0
Jan 31, 2025
a6c5e6f
Bump version to 1.2.0
Mar 12, 2025
dd4a5e8
Bump version to 1.3.0
Apr 17, 2025
9d0ed69
fix: requirements comments for v1.2
zejd-cicak Apr 29, 2025
d14dff0
Merge pull request #16 from cloudbeds/fix/requirements-for-v1.2
zejd-cicak Apr 29, 2025
dbe7d0d
feat: init for API 1.3
zejd-cicak Apr 29, 2025
418730a
fix: change remaining 1.2 to 1.3
zejd-cicak Apr 29, 2025
d5b6594
Merge pull request #17 from cloudbeds/feat/change-package-to-1_3
zejd-cicak May 14, 2025
647f875
fix: improve version input description in publish.yaml
zejd-cicak May 26, 2025
70dc5a8
Merge pull request #18 from cloudbeds/fix/v1/improve-version-input-de…
zejd-cicak May 26, 2025
cabf605
chore: update SDK version to 1.1.0 and enhance API response models
zejd-cicak Jun 5, 2025
64d2ab2
Merge pull request #20 from cloudbeds/chore/fixes-for-taxes-and-fees
zejd-cicak Jun 5, 2025
14e9b6c
feat: v1.2.0
zejd-cicak Jun 10, 2025
e22eb75
Merge pull request #21 from cloudbeds/feat/v1.2.0
zejd-cicak Jun 10, 2025
2199d1a
feat: v1.3
zejd-cicak Jun 30, 2025
57a62c3
Merge pull request #22 from cloudbeds/feat/v1.3
zejd-cicak Jun 30, 2025
2f715b8
feat: v1.4
zejd-cicak Jul 9, 2025
a1991ec
Merge pull request #23 from cloudbeds/feat/v1.4
zejd-cicak Jul 9, 2025
216ea2c
Bump version to 1.5.0
Sep 23, 2025
9f79ffc
feat: v1.5
zejd-cicak Sep 23, 2025
7c3372a
Merge pull request #24 from cloudbeds/feat/v1.5
zejd-cicak Sep 23, 2025
0c21b38
feat: v1.5.2
zejd-cicak Sep 23, 2025
48dc5df
Merge pull request #25 from cloudbeds/feat/v1.5.2
zejd-cicak Sep 23, 2025
3105589
feat: regenerated get users api
kirillkolesnik-cb Sep 26, 2025
3f86a9c
feat: reverted extra change
kirillkolesnik-cb Sep 26, 2025
9771abd
feat: regenerated using 7.11 version
kirillkolesnik-cb Sep 29, 2025
48a7abb
feat: corrected config
kirillkolesnik-cb Sep 29, 2025
3c2417e
feat: updated version
kirillkolesnik-cb Sep 29, 2025
9f9ec76
Merge pull request #26 from cloudbeds/feat/update-get-users-api
kirillkolesnik-cb Sep 29, 2025
01d47cf
feat: updated get payments code
kirillkolesnik-cb Sep 30, 2025
a10f2b6
feat: updated version file
kirillkolesnik-cb Sep 30, 2025
7e425a1
Merge pull request #27 from cloudbeds/feat/update-get-payments-api
kirillkolesnik-cb Sep 30, 2025
1b871cf
feat: v1.6.0
zejd-cicak Nov 11, 2025
58ef0a7
Merge pull request #29 from cloudbeds/feat/v1.6.0
zejd-cicak Nov 11, 2025
1d127af
feat: v1.6.1
zejd-cicak Nov 11, 2025
9c05c36
Merge pull request #30 from cloudbeds/feat/v1.6.1
zejd-cicak Nov 12, 2025
eb39932
feat: v1.7.0
zejd-cicak Nov 13, 2025
54e42e2
Merge pull request #31 from cloudbeds/feat/v1.7.0
zejd-cicak Nov 13, 2025
500c664
feat: v1.8.0
zejd-cicak Jan 8, 2026
8d00ad6
Merge pull request #32 from cloudbeds/feat/v1.8.0
zejd-cicak Jan 8, 2026
c952b90
fix: unknown enum values
zejd-cicak Feb 3, 2026
4e0d5cc
Merge pull request #35 from cloudbeds/fix/unknown-enum
zejd-cicak Feb 3, 2026
b14dd1c
Bump version to 1.9.0
Feb 3, 2026
49aa217
chore: urllib3 security update
dimi-cb Feb 18, 2026
d66eedd
Merge pull request #39 from cloudbeds/chore/urllib3-security-update
zejd-cicak Feb 18, 2026
6d0ebaa
Bump version to 1.10.0
Feb 20, 2026
90c656e
chore: change workflow input labels for clarity
dimi-cb Feb 20, 2026
bb31f93
Merge pull request #42 from cloudbeds/update-action-input-labels-2
dimi-cb Feb 20, 2026
e493c1f
Bump version to 1.11.0
Feb 24, 2026
25a140c
Bump version to 1.12.0
Feb 24, 2026
9971828
Bump version to 1.13.0
Feb 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
181 changes: 181 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
name: Publish new version

on:
workflow_dispatch:
inputs:
version:
description: 'Optional version to use (bypasses version bump and git commits if provided)'
required: false
default: ""
mfd-ref:
description: 'The MFD ref (branch, tag, or SHA) to use for API docs'
required: false
default: ""

permissions:
contents: write

jobs:
generate-api-docs:
name: Update version and build python module
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::048781935247:role/GH-APP-OIDC-CBMyFrontDesk
aws-region: us-west-2

- name: Get app private key from SSM and apply mask
id: app-private-key
shell: bash
run: |
aws ssm get-parameter --name /github/app/CBMyFrontDesk/private-key --output text --with-decryption --query Parameter.Value > private.key
{
echo "key<<EOF"
cat private.key
echo "EOF"
} >> $GITHUB_OUTPUT
while read -r line;
do
if [[ -n "${line}" ]]; then
echo "::add-mask::${line}"
fi
done < private.key
rm private.key

- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: 391670
private_key: ${{ steps.app-private-key.outputs.key }}

- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ steps.generate-token.outputs.token }}

- name: Get API docs
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
MFD_REF='${{ inputs.mfd-ref }}'
if [[ -z "${MFD_REF}" ]]; then
MFD_REF=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name')
fi
echo "Using MFD ref: $MFD_REF"
gh api /repos/cloudbeds/mfd/tarball/$MFD_REF | tar --strip-components=1 --wildcards -zxf - '*/public_accessa/api'

- name: Get next version
run: |
if [ -n "${{ inputs.version }}" ]; then
echo "next_version=${{ inputs.version }}" >> $GITHUB_ENV
echo "Version provided: ${{ inputs.version }}"
else
current_version=$(cat VERSION)
echo "Current version: $current_version"

IFS='.' read -r major minor patch <<< "$current_version"
minor=$((minor + 1))
next_version="$major.$minor.$patch"
echo "Next version: $next_version"

echo "next_version=$next_version" >> $GITHUB_ENV
fi

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 23
distribution: corretto

- name: Install OpenAPI generator
run: |
OPENAPI_GENERATOR_VERSION=$(cat .openapi-generator/VERSION)
curl -s https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/$OPENAPI_GENERATOR_VERSION/openapi-generator-cli-$OPENAPI_GENERATOR_VERSION.jar -o openapi-generator-cli.jar

- name: Bump version in VERSION and openapitools.json
run: |
echo ${{ env.next_version }} > VERSION
sed -i 's/"packageVersion": "[0-9]*\.[0-9]*\.[0-9]*"/"packageVersion": "${{ env.next_version }}"/' openapitools.json

- name: Generate API docs
run: |
find $(cat PACKAGE) -mindepth 1 ! -name 'py.typed' -delete
java -jar openapi-generator-cli.jar generate -c openapitools.json

- name: Git Setup
if: inputs.version == ''
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@users.noreply.github.com"

- name: Update repository with new version
if: inputs.version == ''
run: |
git add VERSION openapitools.json $(cat PACKAGE) README.md .openapi-generator/FILES
git commit -m "Bump version to ${{ env.next_version }}"
git push

build-release:
name: Build release distribution
runs-on: ubuntu-latest
needs: generate-api-docs
env:
UV_VERSION: 0.5.21
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: .python-version

- name: Build release distributions
run: |
pip install "uv==${{ env.UV_VERSION }}"
uv sync --locked --no-dev
uv build

- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

- name: Create Release
if: inputs.version == ''
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create $(cat VERSION)
--notes $(cat VERSION)
--target ${{ github.ref_name }}
--title $(cat VERSION)

pypi-publish:
name: Publish to PyPI
runs-on: ubuntu-latest
needs: build-release
environment:
name: pypi
permissions:
id-token: write
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Python-generated files
__pycache__/
*.py[oc]
build/
dist/
wheels/
*.egg-info

# Virtual environments
.venv
.idea

public_accessa/
*.jar
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
Loading
Loading