Skip to content

Commit a252d88

Browse files
committed
WIP (fill in TBD) Add a workflow to initialize the Git notes
So far, GitGitGadget has supported one project, and one single project only: the Git project. But the Git project is far from the only one that prides itself by doing patch review on a mailing list. To allow GitGitGadget's convenience of PRs being sent to mailing lists to benefit other projects, too, here is a workflow that will have to be triggered to initialize the prerequisite Git notes in the `pr-repo`. For details about setting up GitGitGadget to support a project other than Git, see TBD. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 547e227 commit a252d88

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Initialize Git notes
2+
3+
# This workflow is expected to be triggered manually, exactly once, when
4+
# GitGitGadget is first used with a new `pr-repo`.
5+
6+
on:
7+
workflow_dispatch:
8+
9+
jobs:
10+
initialize-git-notes:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/create-github-app-token@v1
15+
id: pr-repo-token
16+
with:
17+
app-id: ${{ secrets.GITGITGADGET_GITHUB_APP_ID }}
18+
private-key: ${{ secrets.GITGITGADGET_GITHUB_APP_PRIVATE_KEY }}
19+
owner: ${{ fromJSON(vars.CONFIG).repo.owner }}
20+
repositories: ${{ fromJSON(vars.CONFIG).repo.name }}
21+
- uses: gitgitgadget/gitgitgadget/initialize-git-notes@v1
22+
with:
23+
config: ${{ vars.CONFIG }}
24+
pr-repo-token: ${{ steps.pr-repo-token.outputs.token }}
25+
initial-user: ${{ github.actor }}

0 commit comments

Comments
 (0)