From 693ca01d5044e9431a1c3f8507990fbf54aacec9 Mon Sep 17 00:00:00 2001 From: kimyu0218 Date: Wed, 21 Feb 2024 17:54:16 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=EB=B8=8C=EB=9E=9C=EC=B9=98=20?= =?UTF-8?q?=EB=84=A4=EC=9D=B4=EB=B0=8D=20=EA=B0=95=EC=A0=9C=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EC=95=A1=EC=85=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 외부 액션을 사용하여 브랜치명 강제 - 풀리퀘스트가 발생할 때마다 실행 - 정규식을 만족하는 브랜치만 허용 --- .github/workflows/assert-branch-naming.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/assert-branch-naming.yml diff --git a/.github/workflows/assert-branch-naming.yml b/.github/workflows/assert-branch-naming.yml new file mode 100644 index 00000000..518a0fa9 --- /dev/null +++ b/.github/workflows/assert-branch-naming.yml @@ -0,0 +1,11 @@ +name: "Assert Branch Naming Convention" +on: pull_request + +jobs: + branch-naming-rules: + runs-on: ubuntu-latest + steps: + - uses: deepakputhraya/action-branch-name@master + with: + regex: '(Be|Fe|Devops|Be,fe|Fe,be)\/(feature|bugfix|hotfix|refactor)(,(feature|bugfix|hotfix|refactor))*\/#[\d]+( #[\d]+)*.+' + ignore: dev,release From ff0701d07fae75e10bfa2bddd9d000a827c2c83e Mon Sep 17 00:00:00 2001 From: kimyu0218 Date: Wed, 21 Feb 2024 18:01:58 +0900 Subject: [PATCH 2/3] =?UTF-8?q?style:=20=EC=8C=8D=EB=94=B0=EC=98=B4?= =?UTF-8?q?=ED=91=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/configure-pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/configure-pr.yml b/.github/workflows/configure-pr.yml index ed1f36ab..ace072a6 100644 --- a/.github/workflows/configure-pr.yml +++ b/.github/workflows/configure-pr.yml @@ -2,7 +2,8 @@ name: Configure PR When PR Opened on: pull_request: - types: ["opened"] + types: + - opened permissions: contents: read From cb252c0455d762120cbb98330f9dcea94597dd2e Mon Sep 17 00:00:00 2001 From: kimyu0218 Date: Wed, 21 Feb 2024 18:05:15 +0900 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=EB=B8=8C=EB=9E=9C=EC=B9=98=EC=9D=98?= =?UTF-8?q?=20=EA=B2=BD=EC=9A=B0,=20=EB=B6=84=EC=95=BC=20uppercase=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/assert-branch-naming.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/assert-branch-naming.yml b/.github/workflows/assert-branch-naming.yml index 518a0fa9..a25b7378 100644 --- a/.github/workflows/assert-branch-naming.yml +++ b/.github/workflows/assert-branch-naming.yml @@ -7,5 +7,5 @@ jobs: steps: - uses: deepakputhraya/action-branch-name@master with: - regex: '(Be|Fe|Devops|Be,fe|Fe,be)\/(feature|bugfix|hotfix|refactor)(,(feature|bugfix|hotfix|refactor))*\/#[\d]+( #[\d]+)*.+' + regex: '(BE|FE|DEVOPS|BE,FE|Fe,BE)\/(feature|bugfix|hotfix|refactor)(,(feature|bugfix|hotfix|refactor))*\/#[\d]+(-#[\d]+)*.+' ignore: dev,release