Skip to content

Commit a49530d

Browse files
committed
The over-all grand plan of the Azure Pipelines -> GitHub Actions migration
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent e85806d commit a49530d

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## Workflows to add
2+
3+
- handle-pr-comment
4+
- **replaces**:
5+
1. [GitGitGadget PR Handler](https://dev.azure.com/gitgitgadget/git/_build?definitionId=3)
6+
2. [GitGitGadget PR Handler (git)](https://dev.azure.com/gitgitgadget/git/_build?definitionId=13)
7+
3. [GitGitGadget PR Handler (dscho)](https://dev.azure.com/gitgitgadget/git/_build?definitionId=12)
8+
- **triggers on**: PR comments by allowed users
9+
- **needs**: SMTP credentials
10+
- handle-pr-push
11+
- **replaces**:
12+
1. [GitGitGadget PR Handler](https://dev.azure.com/gitgitgadget/git/_build?definitionId=3)
13+
2. [GitGitGadget PR Handler (git)](https://dev.azure.com/gitgitgadget/git/_build?definitionId=13)
14+
3. [GitGitGadget PR Handler (dscho)](https://dev.azure.com/gitgitgadget/git/_build?definitionId=12)
15+
- **triggers on**: PR pushes
16+
- handle-new-mails
17+
- **replaces**:
18+
1. [Mirror Git List to GitGitGadget's PRs](https://dev.azure.com/gitgitgadget/git/_build?definitionId=5)
19+
- **triggers on**: `git-mailing-list-mirror` updates
20+
- **needs**: git-mailing-list checkout
21+
- update-prs
22+
- **replaces**:
23+
1. [Update GitGitGadget's PRs](https://dev.azure.com/gitgitgadget/git/_build/index?definitionId=2)
24+
- **triggers on**: `seen` updates
25+
- runs: updateOpenPrs(), updateCommitMappings() and handleOpenPRs()
26+
- update-mail-to-commit-notes
27+
- **replaces**:
28+
1. [Update GitGitGadget's commit to mail notes](https://dev.azure.com/gitgitgadget/git/_build?definitionId=9)
29+
- **triggers on**: `seen` updates
30+
- TODO: convert from using `gitster/seen` to `upstream/seen`
31+
- **needs**: git-mailing-list checkout
32+
- **runs**:
33+
```
34+
rev="$(git -C "$GITGIT_DIR" rev-parse refs/notes/commit-to-mail)"
35+
./gitgitgadget/script/lookup-commit.sh --notes update
36+
if test "$rev" != "$(git -C "$GITGIT_DIR" rev-parse refs/notes/commit-to-mail)"
37+
then
38+
./gitgitgadget/script/update-mail-to-commit-notes.sh
39+
40+
git -C "$GITGIT_DIR" push https://git-for-windows-ci:$(git-for-windows-ci.github.token)@github.com/gitgitgadget/git refs/notes/commit-to-mail refs/notes/mail-to-commit ||
41+
die "Could not push notes"
42+
43+
no_match="$(git -C "$GITGIT_DIR"/ show refs/notes/commit-to-mail | grep -B2 no\ match | sed -ne 's/\///g' -e 's/^\+\+\+ b//p')"
44+
test -z "$no_match" ||
45+
die "Could not find mail(s) for: $no_match"
46+
fi
47+
```

0 commit comments

Comments
 (0)