Skip to content

Commit 199495f

Browse files
authored
Merge branch 'dev' into fix/disabled-life-flask-and-pconc
2 parents 78d79d3 + 98597ac commit 199495f

424 files changed

Lines changed: 775836 additions & 77004 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.busted

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
return {
22
_all = {
3-
coverage = true,
3+
coverage = false,
44
verbose = true,
55
},
66
default = {

.github/ISSUE_TEMPLATE/accuracy_bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Accuracy bug report
22
description: Create a bug report to help us fix incorrect wording in Path of Building for PoE1.
3-
labels: ["bug:accuracy"]
3+
labels: ["bug: accuracy"]
44
body:
55
- type: markdown
66
attributes:

.github/ISSUE_TEMPLATE/behaviour_bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Behaviour bug report
22
description: Create a bug report to help us fix incorrect behaviour or logic in Path of Building for PoE1.
3-
labels: ["bug:behaviour"]
3+
labels: ["bug: behaviour"]
44
body:
55
- type: markdown
66
attributes:

.github/ISSUE_TEMPLATE/calculation_bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Calculation bug report
22
description: Create a bug report to help us fix incorrect calculations in Path of Building for PoE1.
3-
labels: ["bug:calculation"]
3+
labels: ["bug: calculation"]
44
body:
55
- type: markdown
66
attributes:

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/workflows/backport.yml

Lines changed: 49 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,55 @@
11
name: Port changes to PoB2
2+
run-name: "Port PR #${{ github.event.pull_request.number || inputs.pr_number }} - ${{ github.event.pull_request.title || 'Manual dispatch' }}"
23

34
on:
4-
pull_request_target:
5-
types: [closed]
6-
7-
env:
8-
LABEL_STRING: ${{ join(github.event.pull_request.labels.*.name, ',') }}
5+
pull_request_target:
6+
types: [closed]
7+
workflow_dispatch:
8+
inputs:
9+
pr_number:
10+
description: PoB1 PR number to port
11+
required: true
12+
type: number
913

1014
jobs:
11-
backport:
12-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'pob2')
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Notify PathOfBuilding repo
16-
uses: peter-evans/repository-dispatch@v3
17-
with:
18-
token: ${{ secrets.WIRES77_PAT }}
19-
repository: ${{ github.repository_owner }}/PathOfBuilding-PoE2
20-
event-type: port-changes
21-
client-payload: '{"patch_url": "${{ github.event.pull_request.patch_url }}", "msg": "Apply changes from ${{ github.event.pull_request.html_url }}", "id": ${{ github.event.pull_request.number }}, "title": "${{ github.event.pull_request.title }}", "labels": "${{ env.LABEL_STRING }}", "name": "${{ github.event.pull_request.user.name }}", "user": "${{ github.event.pull_request.user.login }}"}'
15+
backport:
16+
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'pob2'))
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Determine PR number
20+
run: |
21+
if [ "${{ github.event_name }}" = "pull_request_target" ]; then
22+
echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> "$GITHUB_ENV"
23+
else
24+
echo "PR_NUMBER=${{ github.event.inputs.pr_number }}" >> "$GITHUB_ENV"
25+
fi
26+
27+
- name: Fetch PR details
28+
id: payload
29+
uses: actions/github-script@v7
30+
with:
31+
result-encoding: string
32+
script: |
33+
const pr = await github.rest.pulls.get({
34+
owner: context.repo.owner,
35+
repo: context.repo.repo,
36+
pull_number: process.env.PR_NUMBER
37+
});
38+
const labels = pr.data.labels.map(l => l.name).join(',');
39+
return JSON.stringify({
40+
patch_url: pr.data.patch_url,
41+
msg: `Apply changes from ${pr.data.html_url}`,
42+
id: pr.data.number,
43+
title: pr.data.title,
44+
labels,
45+
name: pr.data.user.name || pr.data.user.login,
46+
user: pr.data.user.login,
47+
});
2248
49+
- name: Notify PathOfBuilding-PoE2 repo
50+
uses: peter-evans/repository-dispatch@v3
51+
with:
52+
token: ${{ secrets.WIRES77_PAT }}
53+
repository: ${{ github.repository_owner }}/PathOfBuilding-PoE2
54+
event-type: port-changes
55+
client-payload: ${{ steps.payload.outputs.result }}

.github/workflows/backport_receive.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Update code with code from PoB2
2-
run-name: ${{ github.event.client_payload.title }}
2+
run-name: "PR #${{ github.event.client_payload.id }} - ${{ github.event.client_payload.title }}"
33

44
on:
55
repository_dispatch:
@@ -15,17 +15,22 @@ jobs:
1515
with:
1616
ref: 'dev'
1717
- name: Apply patch
18-
continue-on-error: true
1918
run: |
20-
curl -L ${{ github.event.client_payload.patch_url }} | patch -p1 --merge --verbose -f -l --no-backup-if-mismatch
19+
# Download patch first to avoid broken pipes if apply exits early
20+
PATCH_FILE=$(mktemp)
21+
curl -L ${{ github.event.client_payload.patch_url }} -o "$PATCH_FILE"
22+
if ! git apply -v --3way --ignore-whitespace --index "$PATCH_FILE"; then
23+
echo "3-way apply failed, retrying with --reject"
24+
git apply -v --reject --ignore-whitespace --index "$PATCH_FILE" || true
25+
fi
2126
- name: Create Pull Request
2227
uses: peter-evans/create-pull-request@v5
2328
with:
2429
title: "[pob2-port] ${{ github.event.client_payload.title }}"
2530
branch: pob2-pr-${{ github.event.client_payload.id }}
2631
body: |
2732
${{ github.event.client_payload.msg }}
28-
committer: ${{ github.event.client_payload.name || github.event.client_payload.user }} <${{ github.event.client_payload.user }}@users.noreply.github.com>
2933
author: ${{ github.event.client_payload.name || github.event.client_payload.user }} <${{ github.event.client_payload.user }}@users.noreply.github.com>
34+
committer: ${{ github.event.client_payload.name || github.event.client_payload.user }} <${{ github.event.client_payload.user }}@users.noreply.github.com>
3035
commit-message: ${{ github.event.client_payload.msg }}
31-
labels: ${{ github.event.client_payload.labels }}
36+
labels: ${{ github.event.client_payload.labels }}

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
uses: actions/checkout@v4
1515
- name: Run tests
1616
run: busted --lua=luajit
17-
- name: Report coverage
18-
continue-on-error: true # May fail on server errors (of coveralls.io)
19-
run: cd src; luacov-coveralls --repo-token=${{ secrets.github_token }} -e TestData -e Data -e runtime
2017
check_modcache:
2118
runs-on: ubuntu-latest
2219
container: ghcr.io/pathofbuildingcommunity/pathofbuilding-tests:latest

0 commit comments

Comments
 (0)