Auto: ๋ ˆ์ด๋ธ” ์ƒ์„ฑ์€ ์›์น˜ ์•Š๋Š” ๊ธฐ๋ณธ ๋ ˆ์ด๋ธ”์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2021๋…„ 04์›” 22์ผ  ยท  15์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: intuit/auto

๋ฒ„๊ทธ ์„ค๋ช…
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

์ถ”๊ฐ€ ์ปจํ…์ŠคํŠธ

bug released

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

@reintroducing ๊ทธ ์˜ต์…˜์ด ๋„ˆ๋ฌด ์ข‹์•„์š”! ๊ธฐ๋ณธ๊ฐ’์€ ์ง€์ •๋œ ๋ ˆ์ด๋ธ”๋งŒ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ํ”Œ๋ž˜๊ทธ๋ฅผ ํฌํ•จํ•˜๊ณ  ๋ฎ์–ด์“ฐ๊ธฐ ๋…ผ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ƒˆ ํ”Œ๋ž˜๊ทธ์ž…๋‹ˆ๋‹ค. ์ด๊ฒƒ์€ ํ–‰๋™์— ๋Œ€ํ•œ ํš๊ธฐ์ ์ธ ๋ณ€ํ™”๊ฐ€ ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๋ฐ˜๋Œ€์˜ --no-include-defaults ์–ด๋–ป์Šต๋‹ˆ๊นŒ?

๋ชจ๋“  15 ๋Œ“๊ธ€

๋ฐฉ๊ธˆ ๊ฐ™์€ ๋ฌธ์ œ๋ฅผ ์ œ๊ธฐํ•˜๋ ค๊ณ ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ฌธ์„œ๋Š” ๊ธฐ๋ณธ ๋ ˆ์ด๋ธ” ์žฌ์ •์˜์— ๋Œ€ํ•ด ๋ช…ํ™•ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๊ตฌ์„ฑ์— ์ •์˜๋œ ๋ ˆ์ด๋ธ”๋งŒ ์›ํ•˜๊ณ  ๊ธฐ๋ณธ ๋ ˆ์ด๋ธ”์€ ์›ํ•˜์ง€ ์•Š๋Š”๋‹ค๊ณ  ๋งํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?

์ผ์น˜ํ•˜๋Š” ๊ธฐ๋ณธ ๋ ˆ์ด๋ธ”์„ ์žฌ์ •์˜ํ•˜๋Š” ๋ ˆ์ด๋ธ” ๊ตฌ์„ฑ์— 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์—์„œ ์ž๋™์œผ๋กœ ์นด๋‚˜๋ฆฌ์•„๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋‹ค์Œ ๋ฌธ์ œ๋ฅผ ๋ณด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

Screen Shot 2021-04-29 at 2 32 48 PM

์‹ค์ œ ๊ตฌ์„ฑ์ด 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. ํ•˜์ง€๋งŒ ๋‹ค๋ฅธ ๊ณณ์— ์ถ”๊ฐ€ํ•ด์•ผ ํ•˜๋Š”์ง€ ๋ชจ๋ฅด๊ฒ ์Šต๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰