๋ฒ๊ทธ ์ค๋ช
npx auto create-labels
ํ๊ณ package.json์ ์ง์ ๋ ๋ ์ด๋ธ ๊ตฌ์ฑ์ด ์ ์๋์ด ์์ผ๋ฉด auto์ ์ํด ์ ์๋ ์ถ๊ฐ ๊ธฐ๋ณธ ๋ ์ด๋ธ์ด ์๋๋ผ ํด๋น ๋ ์ด๋ธ๋ง ์์ฑ๋ ๊ฒ์ผ๋ก ์์ํฉ๋๋ค. ์์ ์๋ ๊ทธ๋ฌ์ง๋ง ์ด๋๊ฐ์์ ์ ๋๋ก ์๋์ด ๋ฉ์ท์ต๋๋ค.
์ฌํํ๊ธฐ ์ํด
๋ค์ ๊ตฌ์ฑ ์ฌ์ฉ:
"auto": {
"baseBranch": "master",
"prereleaseBranches": [
"next"
],
"plugins": [
[
"npm",
{
"legacyAuth": true,
"setRcToken": false
}
],
"released",
"microsoft-teams"
],
"shipit": {
"noChangelog": true
},
"labels": [
{
"name": "breaking",
"changelogTitle": "๐จ Breaking Changes",
"description": "Backwards incompatible enhancement or feature.",
"releaseType": "major",
"color": "#c5000b"
},
{
"name": "feature",
"changelogTitle": "๐ Features",
"description": "A new feature.",
"releaseType": "minor",
"color": "#00ff00"
},
{
"name": "build",
"changelogTitle": "๐ฆ Build Process",
"description": "Changes to the build process.",
"releaseType": "patch",
"color": "#4a4a4a"
},
{
"name": "chore",
"changelogTitle": "๐ Miscellaneous",
"description": "Additional, uncategorized changes.",
"releaseType": "patch",
"color": "#ff00ff",
"default": true
},
{
"name": "ci",
"changelogTitle": "๐ Continuous Integration",
"description": "Changes to CI configuration files and scripts.",
"releaseType": "patch",
"color": "#f1a60e"
},
{
"name": "docs",
"changelogTitle": "๐ Documentation",
"description": "Documentation updates and changes.",
"releaseType": "patch",
"color": "#870048"
},
{
"name": "fix",
"changelogTitle": "๐ Bug Fixes",
"description": "A bug fix.",
"releaseType": "patch",
"color": "#6000ff"
},
{
"name": "perf",
"changelogTitle": "โก๏ธ Performance",
"description": "A code change that improves performance.",
"releaseType": "patch",
"color": "#00e4ff"
},
{
"name": "refactor",
"changelogTitle": "โป๏ธ Refactoring",
"description": "A code change that neither fixes a bug nor adds a feature.",
"releaseType": "patch",
"color": "#00b58d"
},
{
"name": "revert",
"changelogTitle": "๐ง Reverting",
"description": "Reverts a previous commit.",
"releaseType": "patch",
"color": "#ff9000"
},
{
"name": "style",
"changelogTitle": "๐จ Style",
"description": "Code style (white-space, formatting, missing semi-colons, etc).",
"releaseType": "patch",
"color": "#0051d8"
},
{
"name": "test",
"changelogTitle": "โ
Testing",
"description": "Adding missing tests or correcting existing tests.",
"releaseType": "patch",
"color": "#127f00"
},
{
"name": "upgrade",
"changelogTitle": "โ๏ธ Dependencies",
"description": "Dependency upgrades.",
"releaseType": "minor",
"color": "#00787f"
}
]
}
์ถ๋ ฅ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
Created labels: breaking, feature, build, chore, ci, docs, fix, perf, refactor, revert, style, test, upgrade, major, minor, patch, skip-release, internal, documentation, tests, dependencies, performance, released, prerelease
์์๋๋ ํ๋
์ ๊ตฌ์ฑ์ ์ค๋ช
๋ ๋ ์ด๋ธ๋ง ์์ฑ๋ฉ๋๋ค. ์์ ์ถ๋ ฅ ๋ชฉ๋ก์์ upgrade
๋ ์ด๋ธ ๋ค์ ๋ชจ๋ ํญ๋ชฉ์ ์ํ์ง ์์ผ๋ฏ๋ก ์์ฑํด์๋ ์ ๋ฉ๋๋ค.
์คํฌ๋ฆฐ์ท
ํ๊ฒฝ ์ ๋ณด:
Environment Information:
"auto" version: v10.25.1
"git" version: v2.29.2
"node" version: v12.13.0
โ Labels configured on GitHub project
์ถ๊ฐ ์ปจํ ์คํธ
๋ฐฉ๊ธ ๊ฐ์ ๋ฌธ์ ๋ฅผ ์ ๊ธฐํ๋ ค๊ณ ํ์ต๋๋ค. ๋ฌธ์๋ ๊ธฐ๋ณธ ๋ ์ด๋ธ ์ฌ์ ์์ ๋ํด ๋ช ํํ์ง ์์ต๋๋ค. ๊ตฌ์ฑ์ ์ ์๋ ๋ ์ด๋ธ๋ง ์ํ๊ณ ๊ธฐ๋ณธ ๋ ์ด๋ธ์ ์ํ์ง ์๋๋ค๊ณ ๋งํ ์ ์๋ ๋ฐฉ๋ฒ์ด ์์ต๋๊น?
์ผ์นํ๋ ๊ธฐ๋ณธ ๋ ์ด๋ธ์ ์ฌ์ ์ํ๋ ๋ ์ด๋ธ ๊ตฌ์ฑ์ overwrite
์ต์
์ด ์์ต๋๋ค. zon-semver ๋ ์ด๋ธ์ ๋ํด ์๋ํ๋ ๊ฒฝ์ฐ IDK์
๋๋ค. ์๋ํด ๋ณผ ์ ์์ต๋๊น? ๋ฌธ์๊ฐ PR์ ๊ธฐ๊บผ์ด ์๋ฝํ๋ ๊ฒ๋ณด๋ค ์ด๊ฒ์ ๋ํด ์ถฉ๋ถํ ๋ช
ํํ์ง ์์ ๊ฒฝ์ฐ
@hipstersmoothie https://intuit.github.io/auto/docs/generated/create-labels๋ฅผ ๋ณผ ๋ ๋๋ ๊ทธ๋ฐ ์ฑ๊ฒฉ์ ์ ํ ๋ณผ ์ ์์ต๋๋ค. ์ด ์ต์ ๊ณผ ๊ด๋ จ๋ ๋ฌธ์๋ ์ด๋์ ์์ต๋๊น?
์, ์ฌ๊ธฐ: https://intuit.github.io/auto/docs/configuration/autorc#label -customization
@hipstersmoothie ๋ฐ๋ผ์ ํด๋น ๋ฌธ์๋ฅผ ๋ณด๋ฉด ํด๋น ์ต์
์ ๊ธฐ๋ฅ์ ๋ํด ๋ช
ํํ์ง ์์ ๊ฒ ๊ฐ์ต๋๋ค. ๋ด ๊ตฌ์ฑ์ ๋ชจ๋ ๋ ์ด๋ธ์ ์ด๋ฅผ ์ถ๊ฐํ๋ฉด major
, minor
๋ฐ patch
๋ ์ด๋ธ์ ๋ด ๋ ์ด๋ธ๋ก ๋ฎ์ด์ฐ๊ฒ ๋ฉ๋๋ค. ๊ทธ ์ธ์ ์์ฑ ์ค์ธ ๋ค๋ฅธ ํญ๋ชฉ์ ์ง์ฐ์ง ๋ง์ญ์์ค. include-defaults
๋ผ๋ ์ต์
์ create labels
๋ช
๋ น์ ์ถ๊ฐํ๊ณ true / false๋ก ์ค์ ํ๋ ๊ฒ์ด ์ข์ ์ถ๊ฐ๋ผ๊ณ ์๊ฐํฉ๋๋ค (์ด์ ๋ฒ์ ๊ณผ์ ํธํ์ฑ์ ์ ์งํ๋ ค๋ฉด ๊ธฐ๋ณธ์ ์ผ๋ก true). ์๊ฐ?
@reintroducing์ ๋์ํฉ๋๋ค. overwrite
์ต์
์ ๋ํด ์๊ณ ์์์ง๋ง ์ฌ๋ฐ๋ฅด๊ฒ ์ดํดํ๋ฉด ๊ธฐ๋ณธ ๋ ์ด๋ธ์ ์กฐ์ ํ๋ ๊ฒ์ ๊ดํ ๊ฒ์
๋๋ค. ๊ตฌ์ฑํ ๋ ์ด๋ธ๋ง _๋ง_๋ง๋๋ ์ต์
์ด ํ์ํฉ๋๋ค.
@reintroducing ๊ทธ ์ต์
์ด ๋๋ฌด ์ข์์! ๊ธฐ๋ณธ๊ฐ์ ์ง์ ๋ ๋ ์ด๋ธ๋ง ์์ฑํ ์ ์์ต๋๋ค. ๋ค๋ฅธ ํ๋๊ทธ๋ฅผ ํฌํจํ๊ณ ๋ฎ์ด์ฐ๊ธฐ ๋
ผ๋ฆฌ๋ฅผ ์ฌ์ฉํ๋ ์ ํ๋๊ทธ์
๋๋ค. ์ด๊ฒ์ ํ๋์ ๋ํ ํ๊ธฐ์ ์ธ ๋ณํ๊ฐ ๋ ๊ฒ์
๋๋ค. ๋ฐ๋์ --no-include-defaults
์ด๋ป์ต๋๊น?
@hipstersmoothie ์, ์ค๋ช ์ด ๋ช ํํ์ง ์์ ์ฃ์กํฉ๋๋ค. ์ ๋ ๋น์ ๊ณผ ๊ฐ์ ๊ฒ์ ์ ์ํ์ง๋ง ๊ทธ ๋ฐ๋์์ต๋๋ค. ๊ธฐ๋ณธ์ ์ผ๋ก ๋ณ๊ฒฝ ์ฌํญ์ ํผํ๊ธฐ ์ํด ๋กค์ด ์ฌ์ค์ด ๋ ๊ฒ์ ๋๋ค. ๋น์ ์ ๊ฒ์ด ์ค์ ๋ก ๋ ๊นจ๋ํ๊ณ ๋ค๋ฅธ ๋ชจ๋ ์ต์ ์ด ์ํ๋๋ ๋ฐฉ์๊ณผ ๋ ์ ๋ง์ต๋๋ค. ๋๋ ๊ทธ๊ฒ์ ์ํด ๋ชจ๋ ๊ฒ์ ๋๋ค!
๋๋ ์ฃผ๋ง๊น์ง ์ด๊ฒ์ ์ป์ ํ์๊ฐ ์์์ง๋ ๋ชจ๋ฅธ๋ค. PR์ ์ ์ถํ๋ฉด ํ๋กฌํํธ๋ฅผ ๊ฒํ ํ๊ณ ๋ณํฉํ๊ฒ ์ต๋๋ค.
๋๋ ๊ทธ๊ฒ์ ๊ณ ์น๋ ค๊ณ ์๋ํ๋ค: https://github.com/intuit/auto/pull/1966 ํ์ง๋ง ์กฐ๊ธ ๋ค๋ฅธ ๋ฐฉ์์ผ๋ก. ๊ฑฐ๊ธฐ์ ๋ํ ์ค๋ช ์ ์ฐธ์กฐํ์ญ์์ค.
:rocket: v10.26.0
์์ ๋ฐํ๋ ๋ฌธ์ :rocket:
@laughedelic @hipstersmoothie @adierkens ๋ฐฉ๊ธ ์ด๊ฒ์ผ๋ก ์ ๊ทธ๋ ์ด๋๋ฅผ ์๋ํ๋๋ฐ CI์์ ์ PR์์ ์๋์ผ๋ก ์นด๋๋ฆฌ์๋ฅผ ์์ฑํ๋ ๋ค์ ๋ฌธ์ ๋ฅผ ๋ณด๊ณ ์์ต๋๋ค.
์ค์ ๊ตฌ์ฑ์ด packages/auto/config.json ํ์ผ์ ์๊ณ ๋ค์์ ์ฌ์ฉํ์ฌ ์ ์ฅ์์ ๋ฃจํธ์์ ํ์ฅ๋๋ค๋ ์ ์ ์ฃผ๋ชฉํ ๊ฐ์น๊ฐ ์์ต๋๋ค.
"auto": {
"extends": "./packages/auto/config.json"
},
๊ทธ๋ฌ๋ ์ต์ ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ๊ธฐ ์ ์๋ ์๋ฒฝํ๊ฒ ์๋ํ์ต๋๋ค.
๋ค์์ ์ ์ฒด config.json ํ์ผ์ ๋๋ค.
{
"baseBranch": "master",
"noDefaultLabels": true,
"prereleaseBranches": ["next"],
"plugins": [
[
"npm",
{
"legacyAuth": true,
"setRcToken": false
}
],
"released",
"microsoft-teams"
],
"shipit": {
"noChangelog": true
},
"labels": [
{
"name": "breaking",
"changelogTitle": "๐จ Breaking Changes",
"description": "Backwards incompatible enhancement or feature.",
"releaseType": "major",
"color": "#c5000b"
},
{
"name": "feature",
"changelogTitle": "๐ Features",
"description": "A new feature.",
"releaseType": "minor",
"color": "#00ff00"
},
{
"name": "build",
"changelogTitle": "๐ฆ Build Process",
"description": "Changes to the build process.",
"releaseType": "patch",
"color": "#4a4a4a"
},
{
"name": "chore",
"changelogTitle": "๐ Miscellaneous",
"description": "Additional, uncategorized changes.",
"releaseType": "patch",
"color": "#ff00ff",
"default": true
},
{
"name": "ci",
"changelogTitle": "๐ Continuous Integration",
"description": "Changes to CI configuration files and scripts.",
"releaseType": "patch",
"color": "#f1a60e"
},
{
"name": "docs",
"changelogTitle": "๐ Documentation",
"description": "Documentation updates and changes.",
"releaseType": "patch",
"color": "#870048"
},
{
"name": "fix",
"changelogTitle": "๐ Bug Fixes",
"description": "A bug fix.",
"releaseType": "patch",
"color": "#6000ff"
},
{
"name": "perf",
"changelogTitle": "โก๏ธ Performance",
"description": "A code change that improves performance.",
"releaseType": "patch",
"color": "#00e4ff"
},
{
"name": "refactor",
"changelogTitle": "โป๏ธ Refactoring",
"description": "A code change that neither fixes a bug nor adds a feature.",
"releaseType": "patch",
"color": "#00b58d"
},
{
"name": "revert",
"changelogTitle": "๐ง Reverting",
"description": "Reverts a previous commit.",
"releaseType": "patch",
"color": "#ff9000"
},
{
"name": "style",
"changelogTitle": "๐จ Style",
"description": "Code style (white-space, formatting, missing semi-colons, etc).",
"releaseType": "patch",
"color": "#0051d8"
},
{
"name": "test",
"changelogTitle": "โ
Testing",
"description": "Adding missing tests or correcting existing tests.",
"releaseType": "patch",
"color": "#127f00"
},
{
"name": "upgrade",
"changelogTitle": "โ๏ธ Dependencies",
"description": "Dependency upgrades.",
"releaseType": "minor",
"color": "#00787f"
}
]
}
์๋ก์ด ์ต์ ์ด ์ ํจ์ฑ ๊ฒ์ฌ๊ธฐ์ ์ถ๊ฐ๋์ด์ผํ๋ฉฐ ๊ทธ๋ ๊ฒ ๊ฐ๋จ ํ ์ ์์ต๋๊น? https://github.com/intuit/auto/blob/main/packages/core/src/types.ts#L54
์๋ก์ด ์ต์ ์ด ์ ํจ์ฑ ๊ฒ์ฌ๊ธฐ์ ์ถ๊ฐ๋์ด์ผํ๋ฉฐ ๊ทธ๋ ๊ฒ ๊ฐ๋จ ํ ์ ์์ต๋๊น? https://github.com/intuit/auto/blob/main/packages/core/src/types.ts#L54
์ด๊ฒ์ ์๋ฏธ๊ฐ ์์ต๋๋ค! ๋๋ ๊ทธ๊ฒ์ ๋ํด ๋ชฐ๋๋ค.
@reintroducing ์ฌ๊ธฐ์ ์ถ๊ฐํ์ต๋๋ค: https://github.com/intuit/auto/pull/1971. ํ์ง๋ง ๋ค๋ฅธ ๊ณณ์ ์ถ๊ฐํด์ผ ํ๋์ง ๋ชจ๋ฅด๊ฒ ์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@reintroducing ๊ทธ ์ต์ ์ด ๋๋ฌด ์ข์์! ๊ธฐ๋ณธ๊ฐ์ ์ง์ ๋ ๋ ์ด๋ธ๋ง ์์ฑํ ์ ์์ต๋๋ค. ๋ค๋ฅธ ํ๋๊ทธ๋ฅผ ํฌํจํ๊ณ ๋ฎ์ด์ฐ๊ธฐ ๋ ผ๋ฆฌ๋ฅผ ์ฌ์ฉํ๋ ์ ํ๋๊ทธ์ ๋๋ค. ์ด๊ฒ์ ํ๋์ ๋ํ ํ๊ธฐ์ ์ธ ๋ณํ๊ฐ ๋ ๊ฒ์ ๋๋ค. ๋ฐ๋์
--no-include-defaults
์ด๋ป์ต๋๊น?