File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Mirror labeled issues to client repos
2+
3+ on :
4+ issues :
5+ types : [labeled]
6+
7+ jobs :
8+ mirror :
9+ if : github.event.label.name == 'needs-mirror'
10+ runs-on : ubuntu-latest
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ repo :
15+ - typescript-client
16+ - java-client
17+ - weaviate-go-client
18+ - csharp-client
19+ steps :
20+ - name : Mint app token for weaviate/${{ matrix.repo }}
21+ id : app-token
22+ uses : actions/create-github-app-token@v1
23+ with :
24+ app-id : ${{ secrets.MIRROR_APP_ID }}
25+ private-key : ${{ secrets.MIRROR_APP_PRIVATE_KEY }}
26+ owner : weaviate
27+ repositories : ${{ matrix.repo }}
28+
29+ - name : Create mirrored issue
30+ env :
31+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
32+ SRC_REPO : ${{ github.repository }}
33+ SRC_NUMBER : ${{ github.event.issue.number }}
34+ SRC_URL : ${{ github.event.issue.html_url }}
35+ SRC_TITLE : ${{ github.event.issue.title }}
36+ SRC_BODY : ${{ github.event.issue.body }}
37+ TARGET : weaviate/${{ matrix.repo }}
38+ run : |
39+ body=$(printf '> Mirrored from %s#%s (%s)\n\n%s' \
40+ "$SRC_REPO" "$SRC_NUMBER" "$SRC_URL" "$SRC_BODY")
41+ gh issue create \
42+ --repo "$TARGET" \
43+ --title "$SRC_TITLE" \
44+ --body "$body"
You can’t perform that action at this time.
0 commit comments