Skip to content

Commit 90989ff

Browse files
committed
Add the handle-new-mails GitHub Action
The idea is to take over the job of the "Mirror Git List to GitGitGadget's PRs" Azure Pipeline over at https://dev.azure.com/gitgitgadget/git/_build?definitionId=5. This will obviously require a GitHub workflow, too, which is added in gitgitgadget-workflows/gitgitgadget-workflows#1 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b38439c commit 90989ff

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

handle-new-mails/action.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Handle new mails'
2+
description: 'Processes new mails on the Git mailing list'
3+
author: 'Johannes Schindelin'
4+
inputs:
5+
pr-repo-token:
6+
description: 'The access token to work on the repository that holds PRs and state'
7+
required: true
8+
upstream-repo-token:
9+
description: 'The access token to work on PRs in the upstream repository'
10+
required: true
11+
test-repo-token:
12+
description: 'The access token to work on PRs in the test repository'
13+
required: true
14+
runs:
15+
using: 'node20'
16+
main: './index.js'
17+
branding:
18+
icon: 'git-commit'
19+
color: 'orange'

handle-new-mails/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
async function run() {
2+
const { CIHelper } = await import("../dist/index.js")
3+
4+
const ci = new CIHelper()
5+
6+
await ci.setupGitHubAction({
7+
needsMailingListMirror: true,
8+
})
9+
await ci.handleNewMails()
10+
}
11+
12+
run()

0 commit comments

Comments
 (0)