Skip to content

Commit 417e73b

Browse files
committed
Merge branch 'develop'
2 parents 48bb803 + 26e2903 commit 417e73b

4 files changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Generate Semantic Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js v14
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 14
19+
- name: Setup dependencies
20+
run: |
21+
npm install @semantic-release/git @semantic-release/exec --no-save
22+
- name: Create Release
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
GIT_AUTHOR_NAME: "Frappe PR Bot"
26+
GIT_AUTHOR_EMAIL: "developers@frappe.io"
27+
GIT_COMMITTER_NAME: "Frappe PR Bot"
28+
GIT_COMMITTER_EMAIL: "developers@frappe.io"
29+
run: npx semantic-release

.releaserc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"branches": ["main"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer", {
5+
"preset": "angular",
6+
"releaseRules": [
7+
{"breaking": true, "release": false}
8+
]
9+
},
10+
"@semantic-release/release-notes-generator",
11+
[
12+
"@semantic-release/exec", {
13+
"prepareCmd": 'sed -ir "s/[0-9]*\.[0-9]*\.[0-9]*/${nextRelease.version}/" ecommerce_integrations/__init__.py'
14+
}
15+
],
16+
[
17+
"@semantic-release/git", {
18+
"assets": ["ecommerce_integrations/__init__.py"],
19+
"message": "chore(release): Bumped to Version ${nextRelease.version}\n\n${nextRelease.notes}"
20+
}
21+
],
22+
"@semantic-release/github"
23+
]
24+
}

ecommerce_integrations/unicommerce/invoice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ def create_sales_invoice(
382382
si.delivery_date = so.delivery_date
383383
si.ignore_pricing_rule = 1
384384
si.update_stock = update_stock
385+
si.flags.raw_data = si_data
385386
si.insert()
386387

387388
_verify_total(si, si_data)

ecommerce_integrations/unicommerce/order.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def _create_order(order: UnicommerceOrder, customer) -> None:
202202
}
203203
)
204204

205+
so.flags.raw_data = order
205206
so.save()
206207
so.submit()
207208

0 commit comments

Comments
 (0)