MCPcopy
hub / github.com/lingodotdev/lingo.dev / makeGithubInitializer

Function makeGithubInitializer

packages/cli/src/cli/utils/init-ci-cd.ts:83–113  ·  view source on GitHub ↗
(spinner: Ora)

Source from the content-addressed store, hash-verified

81}
82
83function makeGithubInitializer(spinner: Ora) {
84 return makePlatformInitializer(
85 {
86 name: "GitHub Action",
87 checkPath: ".github",
88 ciConfigPath: ".github/workflows/i18n.yml",
89 ciConfigContent: `name: Lingo.dev i18n
90
91on:
92 push:
93 branches:
94 - main
95
96permissions:
97 contents: write
98 pull-requests: write
99
100jobs:
101 i18n:
102 name: Run i18n
103 runs-on: ubuntu-latest
104 steps:
105 - uses: actions/checkout@v4
106 - uses: lingodotdev/lingo.dev@main
107 with:
108 api-key: \${{ secrets.LINGO_API_KEY }}
109`,
110 },
111 spinner,
112 );
113}
114
115function makeBitbucketInitializer(spinner: Ora) {
116 return makePlatformInitializer(

Callers 1

getPlatformInitializersFunction · 0.85

Calls 1

makePlatformInitializerFunction · 0.85

Tested by

no test coverage detected