Skip to content

Commit bc589df

Browse files
author
Ripal Parikh
committed
Merge branch 'XBAP-17277' of https://github.com/Ripal-Parikh/Xero-OpenAPI into XBAP-17277
2 parents 116b855 + 87bac84 commit bc589df

19 files changed

Lines changed: 1088 additions & 521 deletions

.commitlintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"],
3+
"rules": {
4+
"subject-case": [0],
5+
"body-max-line-length": [0]
6+
}
7+
}

.github/workflows/create-github-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
node-version: 20
3232

3333
- name: Perform release
34-
run: npx --package @semantic-release/exec semantic-release
34+
run: npx --package @semantic-release/exec --package conventional-changelog-conventionalcommits semantic-release
3535
env:
3636
GH_TOKEN: ${{ steps.get_access_token.outputs.token }}

.github/workflows/pr-linting.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: PR Linting
22

3+
permissions:
4+
contents: read
5+
36
on:
47
pull_request:
58
types: [opened, reopened, synchronize]
@@ -13,4 +16,23 @@ jobs:
1316
uses: actions/checkout@v4
1417

1518
- name: MegaLinter
16-
uses: oxsecurity/megalinter/flavors/documentation@v9
19+
uses: oxsecurity/megalinter/flavors/documentation@v9
20+
21+
commitlint:
22+
runs-on: ubuntu-latest
23+
name: Conventional Commit Validation
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
30+
- name: Setup node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
35+
- name: Validate PR commits with commitlint
36+
run: |
37+
npm install --no-save @commitlint/cli @commitlint/config-conventional
38+
npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

.github/workflows/pr-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
gh workflow run pr.yml \
4242
--repo xero-internal/xeroapi-sdk-codegen \
4343
--ref master \
44-
--field branch_name="$BRANCH_NAME" \
44+
--field oas_branch="$BRANCH_NAME" \
4545
--field oas_repo="$OAS_REPO"
4646
4747
# Wait a moment for the run to be created

.releaserc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
}
2222
],
2323
"@semantic-release/github",
24-
"@semantic-release/commit-analyzer"
24+
[
25+
"@semantic-release/commit-analyzer",
26+
{
27+
"preset": "conventionalcommits"
28+
}
29+
]
2530
]
2631
}

manifest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
"path": "/xero-payroll-au.yaml",
2828
"canPreview": true
2929
},
30+
"payrollAuV2": {
31+
"path": "/xero-payroll-au-v2.yaml",
32+
"canPreview": true
33+
},
3034
"payrollNz": {
3135
"path": "/xero-payroll-nz.yaml",
3236
"canPreview": true

xero-app-store.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 10.0.0
3+
version: 12.0.0
44
title: Xero AppStore API
55
description: These endpoints are for Xero Partners to interact with the App Store Billing platform
66
termsOfService: https://developer.xero.com/xero-developer-platform-terms-conditions/

0 commit comments

Comments
 (0)