GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Auto-port 4.1: Support more branch freedom for auto-porting (#16310) · netty/netty@8051d03

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • autoport-41.yml
    • autoport-42.yml
    • autoport-50.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/backport-41.yml‎ ‎.github/workflows/autoport-41.yml‎.github/workflows/backport-41.yml renamed to .github/workflows/autoport-41.yml

Copy file name to clipboardExpand all lines: .github/workflows/autoport-41.yml
+18-17Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
name: Auto Backport to 4.1
1+
name: Auto-port to 4.1
22
on:
33
pull_request_target:
44
types:
55
- closed
66
- labeled
77
branches:
88
- '4.2'
9+
- '5.0'
910

1011
jobs:
11-
backport:
12-
name: "Backporting to 4.1"
12+
autoport:
13+
name: "Auto-porting to 4.1"
1314
concurrency:
1415
group: port-41-${{ github.event.pull_request.number }}
1516
cancel-in-progress: true
@@ -28,15 +29,15 @@ jobs:
2829
git config --global user.email "[email protected]"
2930
git config --global user.name "Netty Project Bot"
3031
31-
- name: Create backport PR branch and cherry-pick
32+
- name: Create auto-port PR branch and cherry-pick
3233
id: cherry-pick
3334
run: |
3435
MERGE_COMMIT="${{ github.event.pull_request.merge_commit_sha }}"
35-
echo "Backporting commit: $MERGE_COMMIT"
36+
echo "Auto-porting commit: $MERGE_COMMIT"
3637
37-
BACKPORT_BRANCH="backport-pr-${{ github.event.pull_request.number }}-to-4.1"
38+
PORT_BRANCH="auto-port-pr-${{ github.event.pull_request.number }}-to-4.1"
3839
git fetch origin 4.1:4.1
39-
git checkout -b "$BACKPORT_BRANCH" 4.1
40+
git checkout -b "$PORT_BRANCH" 4.1
4041
4142
if git cherry-pick -x "$MERGE_COMMIT"; then
4243
echo "Cherry-pick successful"
@@ -45,14 +46,14 @@ jobs:
4546
git cherry-pick --abort
4647
exit 1
4748
fi
48-
echo "branch=$BACKPORT_BRANCH" >> "$GITHUB_OUTPUT"
49+
echo "branch=$PORT_BRANCH" >> "$GITHUB_OUTPUT"
4950
50-
- name: Push backport branch
51+
- name: Push auto-port branch
5152
id: push
5253
if: steps.cherry-pick.outcome == 'success'
5354
run: |
5455
if ! git push origin "${{ steps.cherry-pick.outputs.branch }}"; then
55-
echo "Backport branch push failed"
56+
echo "Auto-port branch push failed"
5657
exit 1
5758
fi
5859
@@ -66,19 +67,19 @@ jobs:
6667
const { data: pr } = await github.rest.pulls.create({
6768
owner: context.repo.owner,
6869
repo: context.repo.repo,
69-
title: `Backport 4.1: ${context.payload.pull_request.title}`,
70+
title: `Auto-port 4.1: ${context.payload.pull_request.title}`,
7071
head: '${{ steps.cherry-pick.outputs.branch }}',
7172
base: '4.1',
72-
body: `Backport of #${context.payload.pull_request.number} to 4.1\n` +
73+
body: `Auto-port of #${context.payload.pull_request.number} to 4.1\n` +
7374
`Cherry-picked commit: ${context.payload.pull_request.merge_commit_sha}\n\n---\n` +
7475
`${context.payload.pull_request.body || ''}`
7576
});
76-
console.log(`Created backport PR: ${pr.html_url}`);
77+
console.log(`Created auto-port PR: ${pr.html_url}`);
7778
await github.rest.issues.createComment({
7879
owner: context.repo.owner,
7980
repo: context.repo.repo,
8081
issue_number: context.payload.pull_request.number,
81-
body: `Backport PR for 4.1: #${pr.number}`
82+
body: `Auto-port PR for 4.1: #${pr.number}`
8283
});
8384
8485
# Important: This script MUST run with the default GITHUB_TOKEN to avoid triggering other actions.
@@ -104,10 +105,10 @@ jobs:
104105
owner: context.repo.owner,
105106
repo: context.repo.repo,
106107
issue_number: context.payload.pull_request.number,
107-
body: `Could not create automatic backport PR.\nGot conflicts when cherry-picking onto 4.1.`
108+
body: `Could not create auto-port PR.\nGot conflicts when cherry-picking onto 4.1.`
108109
});
109110
110-
- name: Report backport branch push failure
111+
- name: Report auto-port branch push failure
111112
if: failure() && steps.push.outcome == 'failure'
112113
uses: actions/github-script@v8
113114
with:
@@ -117,7 +118,7 @@ jobs:
117118
owner: context.repo.owner,
118119
repo: context.repo.repo,
119120
issue_number: context.payload.pull_request.number,
120-
body: `Could not create automatic backport PR.\n`+
121+
body: `Could not create auto-port PR.\n`+
121122
`I could cherry-pick onto 4.1 just fine, but pushing the new branch failed.`
122123
});
123124
Collapse file

‎.github/workflows/backport-42.yml‎ ‎.github/workflows/autoport-42.yml‎.github/workflows/backport-42.yml renamed to .github/workflows/autoport-42.yml

Copy file name to clipboardExpand all lines: .github/workflows/autoport-42.yml
+18-17Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
name: Auto Backport to 4.2
1+
name: Auto-port to 4.2
22
on:
33
pull_request_target:
44
types:
55
- closed
66
- labeled
77
branches:
8+
- '4.1'
89
- '5.0'
910

1011
jobs:
11-
backport:
12-
name: "Backporting to 4.2"
12+
autoport:
13+
name: "Auto-porting to 4.2"
1314
concurrency:
1415
group: port-42-${{ github.event.pull_request.number }}
1516
cancel-in-progress: true
@@ -28,15 +29,15 @@ jobs:
2829
git config --global user.email "[email protected]"
2930
git config --global user.name "Netty Project Bot"
3031
31-
- name: Create backport PR branch and cherry-pick
32+
- name: Create auto-port PR branch and cherry-pick
3233
id: cherry-pick
3334
run: |
3435
MERGE_COMMIT="${{ github.event.pull_request.merge_commit_sha }}"
35-
echo "Backporting commit: $MERGE_COMMIT"
36+
echo "Auto-porting commit: $MERGE_COMMIT"
3637
37-
BACKPORT_BRANCH="backport-pr-${{ github.event.pull_request.number }}-to-4.2"
38+
PORT_BRANCH="auto-port-pr-${{ github.event.pull_request.number }}-to-4.2"
3839
git fetch origin 4.2:4.2
39-
git checkout -b "$BACKPORT_BRANCH" 4.2
40+
git checkout -b "$PORT_BRANCH" 4.2
4041
4142
if git cherry-pick -x "$MERGE_COMMIT"; then
4243
echo "Cherry-pick successful"
@@ -45,14 +46,14 @@ jobs:
4546
git cherry-pick --abort
4647
exit 1
4748
fi
48-
echo "branch=$BACKPORT_BRANCH" >> "$GITHUB_OUTPUT"
49+
echo "branch=$PORT_BRANCH" >> "$GITHUB_OUTPUT"
4950
50-
- name: Push backport branch
51+
- name: Push auto-port branch
5152
id: push
5253
if: steps.cherry-pick.outcome == 'success'
5354
run: |
5455
if ! git push origin "${{ steps.cherry-pick.outputs.branch }}"; then
55-
echo "Backport branch push failed"
56+
echo "Auto-port branch push failed"
5657
exit 1
5758
fi
5859
@@ -66,19 +67,19 @@ jobs:
6667
const { data: pr } = await github.rest.pulls.create({
6768
owner: context.repo.owner,
6869
repo: context.repo.repo,
69-
title: `Backport 4.2: ${context.payload.pull_request.title}`,
70+
title: `Auto-port 4.2: ${context.payload.pull_request.title}`,
7071
head: '${{ steps.cherry-pick.outputs.branch }}',
7172
base: '4.2',
72-
body: `Backport of #${context.payload.pull_request.number} to 4.2\n` +
73+
body: `Auto-port of #${context.payload.pull_request.number} to 4.2\n` +
7374
`Cherry-picked commit: ${context.payload.pull_request.merge_commit_sha}\n\n---\n` +
7475
`${context.payload.pull_request.body || ''}`
7576
});
76-
console.log(`Created backport PR: ${pr.html_url}`);
77+
console.log(`Created auto-port PR: ${pr.html_url}`);
7778
await github.rest.issues.createComment({
7879
owner: context.repo.owner,
7980
repo: context.repo.repo,
8081
issue_number: context.payload.pull_request.number,
81-
body: `Backport PR for 4.2: #${pr.number}`
82+
body: `Auto-port PR for 4.2: #${pr.number}`
8283
});
8384
8485
# Important: This script MUST run with the default GITHUB_TOKEN to avoid triggering other actions.
@@ -104,10 +105,10 @@ jobs:
104105
owner: context.repo.owner,
105106
repo: context.repo.repo,
106107
issue_number: context.payload.pull_request.number,
107-
body: `Could not create automatic backport PR.\nGot conflicts when cherry-picking onto 4.2.`
108+
body: `Could not create auto-port PR.\nGot conflicts when cherry-picking onto 4.2.`
108109
});
109110
110-
- name: Report backport branch push failure
111+
- name: Report auto-port branch push failure
111112
if: failure() && steps.push.outcome == 'failure'
112113
uses: actions/github-script@v8
113114
with:
@@ -117,7 +118,7 @@ jobs:
117118
owner: context.repo.owner,
118119
repo: context.repo.repo,
119120
issue_number: context.payload.pull_request.number,
120-
body: `Could not create automatic backport PR.\n`+
121+
body: `Could not create auto-port PR.\n`+
121122
`I could cherry-pick onto 4.2 just fine, but pushing the new branch failed.`
122123
});
123124
Collapse file

‎.github/workflows/forwardport-50.yml‎ ‎.github/workflows/autoport-50.yml‎.github/workflows/forwardport-50.yml renamed to .github/workflows/autoport-50.yml

Copy file name to clipboardExpand all lines: .github/workflows/autoport-50.yml
+18-17Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
name: Auto Forward port to 5.0
1+
name: Auto-port to 5.0
22
on:
33
pull_request_target:
44
types:
55
- closed
66
- labeled
77
branches:
8+
- '4.1'
89
- '4.2'
910

1011
jobs:
11-
backport:
12-
name: "Forward porting to 5.0"
12+
autoport:
13+
name: "Auto-porting to 5.0"
1314
concurrency:
1415
group: port-50-${{ github.event.pull_request.number }}
1516
cancel-in-progress: true
@@ -28,15 +29,15 @@ jobs:
2829
git config --global user.email "[email protected]"
2930
git config --global user.name "Netty Project Bot"
3031
31-
- name: Create forward port PR branch and cherry-pick
32+
- name: Create auto-port PR branch and cherry-pick
3233
id: cherry-pick
3334
run: |
3435
MERGE_COMMIT="${{ github.event.pull_request.merge_commit_sha }}"
35-
echo "Forward porting commit: $MERGE_COMMIT"
36+
echo "Auto-porting commit: $MERGE_COMMIT"
3637
37-
FORWARDPORT_BRANCH="forwardport-pr-${{ github.event.pull_request.number }}-to-5.0"
38+
PORT_BRANCH="auto-port-pr-${{ github.event.pull_request.number }}-to-5.0"
3839
git fetch origin 5.0:5.0
39-
git checkout -b "$FORWARDPORT_BRANCH" 5.0
40+
git checkout -b "$PORT_BRANCH" 5.0
4041
4142
if git cherry-pick -x "$MERGE_COMMIT"; then
4243
echo "Cherry-pick successful"
@@ -45,14 +46,14 @@ jobs:
4546
git cherry-pick --abort
4647
exit 1
4748
fi
48-
echo "branch=$FORWARDPORT_BRANCH" >> "$GITHUB_OUTPUT"
49+
echo "branch=$PORT_BRANCH" >> "$GITHUB_OUTPUT"
4950
50-
- name: Push backport branch
51+
- name: Push auto-port branch
5152
id: push
5253
if: steps.cherry-pick.outcome == 'success'
5354
run: |
5455
if ! git push origin "${{ steps.cherry-pick.outputs.branch }}"; then
55-
echo "Backport branch push failed"
56+
echo "Auto-port branch push failed"
5657
exit 1
5758
fi
5859
@@ -66,19 +67,19 @@ jobs:
6667
const { data: pr } = await github.rest.pulls.create({
6768
owner: context.repo.owner,
6869
repo: context.repo.repo,
69-
title: `Forward port 5.0: ${context.payload.pull_request.title}`,
70+
title: `Auto-port 5.0: ${context.payload.pull_request.title}`,
7071
head: '${{ steps.cherry-pick.outputs.branch }}',
7172
base: '5.0',
72-
body: `Forward port of #${context.payload.pull_request.number} to 5.0\n` +
73+
body: `Auto-port of #${context.payload.pull_request.number} to 5.0\n` +
7374
`Cherry-picked commit: ${context.payload.pull_request.merge_commit_sha}\n\n---\n` +
7475
`${context.payload.pull_request.body || ''}`
7576
});
76-
console.log(`Created forward port PR: ${pr.html_url}`);
77+
console.log(`Created auto-port PR: ${pr.html_url}`);
7778
await github.rest.issues.createComment({
7879
owner: context.repo.owner,
7980
repo: context.repo.repo,
8081
issue_number: context.payload.pull_request.number,
81-
body: `Forward port PR for 5.0: #${pr.number}`
82+
body: `Auto-port PR for 5.0: #${pr.number}`
8283
});
8384
8485
# Important: This script MUST run with the default GITHUB_TOKEN to avoid triggering other actions.
@@ -104,10 +105,10 @@ jobs:
104105
owner: context.repo.owner,
105106
repo: context.repo.repo,
106107
issue_number: context.payload.pull_request.number,
107-
body: `Could not create automatic backport PR.\nGot conflicts when cherry-picking onto 5.0.`
108+
body: `Could not create auto-port PR.\nGot conflicts when cherry-picking onto 5.0.`
108109
});
109110
110-
- name: Report backport branch push failure
111+
- name: Report auto-port branch push failure
111112
if: failure() && steps.push.outcome == 'failure'
112113
uses: actions/github-script@v8
113114
with:
@@ -117,7 +118,7 @@ jobs:
117118
owner: context.repo.owner,
118119
repo: context.repo.repo,
119120
issue_number: context.payload.pull_request.number,
120-
body: `Could not create automatic backport PR.\n`+
121+
body: `Could not create auto-port PR.\n`+
121122
`I could cherry-pick onto 5.0 just fine, but pushing the new branch failed.`
122123
});
123124

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.