Skip to content

Commit a209ca3

Browse files
committed
Add the update-mail-to-commit-notes GitHub Action
The idea is to take over the job of the "Update GitGitGadget's commit to mail notes" Azure Pipeline over at https://dev.azure.com/gitgitgadget/git/_build?definitionId=9, making use of the just-ported logic in `CIHelper`. This will obviously require a GitHub workflow, too, which is added in gitgitgadget-workflows/gitgitgadget-workflows#1 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 9340912 commit a209ca3

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 'Update the mail <-> commit notes'
2+
description: 'Updates the mapping between commits and patch emails, stored in the `mail-to-commit` and `commit-to-mail` Git notes refs.'
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+
runs:
9+
using: 'node20'
10+
main: './index.js'
11+
branding:
12+
icon: 'git-commit'
13+
color: 'orange'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
needsUpstreamBranches: true,
9+
needsMailToCommitNotes: true,
10+
})
11+
await ci.updateMailToCommitNotes()
12+
}
13+
14+
run()

0 commit comments

Comments
 (0)