Skip to main content
Glama
MIT License
27,120
19,789
  • Linux
  • Apple
github-actions.mdโ€ข3.83 kB
# GitHub Actions์—์„œ Repomix ์‚ฌ์šฉํ•˜๊ธฐ GitHub Actions ์›Œํฌํ”Œ๋กœ์šฐ์— Repomix๋ฅผ ํ†ตํ•ฉํ•˜๋ฉด AI ๋ถ„์„์„ ์œ„ํ•œ ์ฝ”๋“œ๋ฒ ์ด์Šค ํŒจํ‚น์„ ์ž๋™ํ™”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Š” CI, ์ฝ”๋“œ ๋ฆฌ๋ทฐ, LLM ๋„๊ตฌ ์ค€๋น„ ๋“ฑ์— ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค. ## ๊ธฐ๋ณธ ์‚ฌ์šฉ๋ฒ• ๋‹ค์Œ ์Šคํ…์„ ์›Œํฌํ”Œ๋กœ์šฐ YAML์— ์ถ”๊ฐ€ํ•˜์—ฌ ์ €์žฅ์†Œ๋ฅผ ํŒจํ‚นํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ```yaml - name: Pack repository with Repomix uses: yamadashy/repomix/.github/actions/repomix@main with: output: repomix-output.xml ``` ## ๋‹ค์–‘ํ•œ ์ถœ๋ ฅ ํ˜•์‹ ์‚ฌ์šฉํ•˜๊ธฐ `style` ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค์–‘ํ•œ ์ถœ๋ ฅ ํ˜•์‹์„ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค(๊ธฐ๋ณธ๊ฐ’์€ `xml`): ```yaml - name: Pack repository with Repomix uses: yamadashy/repomix/.github/actions/repomix@main with: output: repomix-output.md style: markdown ``` ```yaml - name: Pack repository with Repomix (JSON format) uses: yamadashy/repomix/.github/actions/repomix@main with: output: repomix-output.json style: json ``` ## ์—ฌ๋Ÿฌ ๋””๋ ‰ํ„ฐ๋ฆฌ ๋ฐ ์••์ถ• ์˜ต์…˜ ์—ฌ๋Ÿฌ ๋””๋ ‰ํ„ฐ๋ฆฌ, include/exclude ํŒจํ„ด, ์Šค๋งˆํŠธ ์••์ถ•๋„ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ```yaml - name: Pack repository with Repomix uses: yamadashy/repomix/.github/actions/repomix@main with: directories: src tests include: "**/*.ts,**/*.md" ignore: "**/*.test.ts" output: repomix-output.txt compress: true ``` ## ์ถœ๋ ฅ ํŒŒ์ผ์„ ์•„ํ‹ฐํŒฉํŠธ๋กœ ์—…๋กœ๋“œ ์ƒ์„ฑ๋œ ํŒŒ์ผ์„ ํ›„์† ์Šคํ…์ด๋‚˜ ๋‹ค์šด๋กœ๋“œ์šฉ์œผ๋กœ ์—…๋กœ๋“œํ•˜๋Š” ์˜ˆ์‹œ์ž…๋‹ˆ๋‹ค. ```yaml - name: Pack repository with Repomix uses: yamadashy/repomix/.github/actions/repomix@main with: directories: src output: repomix-output.xml compress: true - name: Upload Repomix output uses: actions/upload-artifact@v4 with: name: repomix-output path: repomix-output.xml ``` ## Action ์ž…๋ ฅ ํŒŒ๋ผ๋ฏธํ„ฐ | ์ด๋ฆ„ | ์„ค๋ช… | ๊ธฐ๋ณธ๊ฐ’ | |---------------------|----------------------------------------|------------------| | `directories` | ํŒจํ‚นํ•  ๋””๋ ‰ํ„ฐ๋ฆฌ(๊ณต๋ฐฑ ๊ตฌ๋ถ„) | `.` | | `include` | ํฌํ•จํ•  glob ํŒจํ„ด(์‰ผํ‘œ ๊ตฌ๋ถ„) | `""` | | `ignore` | ์ œ์™ธํ•  glob ํŒจํ„ด(์‰ผํ‘œ ๊ตฌ๋ถ„) | `""` | | `output` | ์ถœ๋ ฅ ํŒŒ์ผ ๊ฒฝ๋กœ | `repomix-output.xml` | | `style` | ์ถœ๋ ฅ ์Šคํƒ€์ผ (xml, markdown, json, plain) | `xml` | | `compress` | ์Šค๋งˆํŠธ ์••์ถ• ํ™œ์„ฑํ™” | `true` | | `additional-args` | repomix CLI์— ์ „๋‹ฌํ•  ์ถ”๊ฐ€ ์ธ์ž | `""` | | `repomix-version` | ์„ค์น˜ํ•  npm ํŒจํ‚ค์ง€ ๋ฒ„์ „ | `latest` | ## Action ์ถœ๋ ฅ | ์ด๋ฆ„ | ์„ค๋ช… | |----------------|------------------------| | `output_file` | ์ƒ์„ฑ๋œ ์ถœ๋ ฅ ํŒŒ์ผ ๊ฒฝ๋กœ | ## ์ „์ฒด ์›Œํฌํ”Œ๋กœ์šฐ ์˜ˆ์‹œ Repomix๋ฅผ ์‚ฌ์šฉํ•˜๋Š” GitHub Actions ์›Œํฌํ”Œ๋กœ์šฐ ์ „์ฒด ์˜ˆ์‹œ์ž…๋‹ˆ๋‹ค. ```yaml name: Pack repository with Repomix on: workflow_dispatch: push: branches: [ main ] pull_request: branches: [ main ] jobs: pack-repo: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Pack repository with Repomix uses: yamadashy/repomix/.github/actions/repomix@main with: output: repomix-output.xml - name: Upload Repomix output uses: actions/upload-artifact@v4 with: name: repomix-output.xml path: repomix-output.xml retention-days: 30 ``` [์ „์ฒด ์›Œํฌํ”Œ๋กœ์šฐ ์˜ˆ์‹œ](https://github.com/yamadashy/repomix/blob/main/.github/workflows/pack-repository.yml)๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yamadashy/repomix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server