From 7887dba4713ee0230e81d9b6499a58faa67edbe2 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 17:58:36 +0200 Subject: [PATCH 01/16] Add `actions/labeler` --- .github/labeler.yml | 5 +++++ .github/workflows/pull-labeler.yml | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/pull-labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..47ba8abb9ab2d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,5 @@ +kind/docs: + - docs/**/* + +kind/ui: + - web_src/**/* diff --git a/.github/workflows/pull-labeler.yml b/.github/workflows/pull-labeler.yml new file mode 100644 index 0000000000000..c0113695f83fc --- /dev/null +++ b/.github/workflows/pull-labeler.yml @@ -0,0 +1,16 @@ +name: pull-labeler + +on: + - pull_request_target + +jobs: + label: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/labeler@v4 + with: + dot: true + sync-labels: true From e9d60cd27e284556deda147c31a6ac0c8750751e Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 18:02:34 +0200 Subject: [PATCH 02/16] try an edit --- docs/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/README.md b/docs/README.md index d9aa3b80b8f24..6e4c94a632c39 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,5 +1,7 @@ # Gitea: Docs +edit! + [![Join the chat at https://img.shields.io/discord/322538954119184384.svg](https://img.shields.io/discord/322538954119184384.svg)](https://discord.gg/Gitea) [![](https://images.microbadger.com/badges/image/gitea/docs.svg)](http://microbadger.com/images/gitea/docs "Get your own image badge on microbadger.com") From 0ed9d3c91fe618f09818d70f213e9c6b5da140ed Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 18:05:49 +0200 Subject: [PATCH 03/16] tweak --- .github/workflows/pull-labeler.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-labeler.yml b/.github/workflows/pull-labeler.yml index c0113695f83fc..180958a248b95 100644 --- a/.github/workflows/pull-labeler.yml +++ b/.github/workflows/pull-labeler.yml @@ -1,7 +1,7 @@ -name: pull-labeler +name: labeler on: - - pull_request_target + pull_request_target: jobs: label: From e6a96d4d8f2a9e57e9e7de2c0e612c3905ce14be Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 18:06:24 +0200 Subject: [PATCH 04/16] try on pull_request --- .github/workflows/pull-labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-labeler.yml b/.github/workflows/pull-labeler.yml index 180958a248b95..ac4fecbfa92e8 100644 --- a/.github/workflows/pull-labeler.yml +++ b/.github/workflows/pull-labeler.yml @@ -1,7 +1,7 @@ name: labeler on: - pull_request_target: + pull_request: jobs: label: From 7dc910a3680e97481d7319e7045bc5c24ab20525 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 18:09:55 +0200 Subject: [PATCH 05/16] revert to pull_request_target --- .github/workflows/pull-labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-labeler.yml b/.github/workflows/pull-labeler.yml index ac4fecbfa92e8..180958a248b95 100644 --- a/.github/workflows/pull-labeler.yml +++ b/.github/workflows/pull-labeler.yml @@ -1,7 +1,7 @@ name: labeler on: - pull_request: + pull_request_target: jobs: label: From f7dfb2d2240859349c4dc193f2efdc2d1be21796 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 18:20:37 +0200 Subject: [PATCH 06/16] add concurrency --- .github/workflows/pull-labeler.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pull-labeler.yml b/.github/workflows/pull-labeler.yml index 180958a248b95..2c1e991515a57 100644 --- a/.github/workflows/pull-labeler.yml +++ b/.github/workflows/pull-labeler.yml @@ -3,6 +3,10 @@ name: labeler on: pull_request_target: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: label: runs-on: ubuntu-latest From be98baf3bff12a7dd9a403633bb87c8be56d7d48 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Thu, 7 Sep 2023 12:24:47 -0400 Subject: [PATCH 07/16] Update labeler.yml --- .github/labeler.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 47ba8abb9ab2d..f1a370c8c1d5d 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,5 +1,5 @@ -kind/docs: - - docs/**/* - kind/ui: - web_src/**/* + +kind/docs: + - docs/**/* From 9ac9d2020aba05af61b06d8033a460c8ef3c9e42 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 18:27:58 +0200 Subject: [PATCH 08/16] try types array --- .github/workflows/pull-labeler.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pull-labeler.yml b/.github/workflows/pull-labeler.yml index 2c1e991515a57..c62142b9d2857 100644 --- a/.github/workflows/pull-labeler.yml +++ b/.github/workflows/pull-labeler.yml @@ -2,6 +2,7 @@ name: labeler on: pull_request_target: + types: [opened, synchronize, reopened] concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} From 235be20f6577d3dd3f28a9062b22bd6c13874a59 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 19:02:12 +0200 Subject: [PATCH 09/16] revert edit --- docs/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 6e4c94a632c39..d9aa3b80b8f24 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,7 +1,5 @@ # Gitea: Docs -edit! - [![Join the chat at https://img.shields.io/discord/322538954119184384.svg](https://img.shields.io/discord/322538954119184384.svg)](https://discord.gg/Gitea) [![](https://images.microbadger.com/badges/image/gitea/docs.svg)](http://microbadger.com/images/gitea/docs "Get your own image badge on microbadger.com") From 570888975e16695c078a127d66fcdcaff51d33be Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 19:21:29 +0200 Subject: [PATCH 10/16] add templates to ui and api label --- .github/labeler.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index f1a370c8c1d5d..a10275b97f107 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,5 +1,9 @@ +kind/docs: + - docs/**/* + kind/ui: - web_src/**/* + - all: ["templates/**/*", "!templates/swagger/v1_json.tmpl"] -kind/docs: - - docs/**/* +kind/api: + - templates/swagger/v1_json.tmpl From c06889965f3b257aa9c2cfa052805f6296dadb30 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 19:26:53 +0200 Subject: [PATCH 11/16] add a few more --- .github/labeler.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index a10275b97f107..0816ebbdf2072 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -7,3 +7,24 @@ kind/ui: kind/api: - templates/swagger/v1_json.tmpl + +kind/build: + - Makefile + - Dockerfile + - Dockerfile.* + - webpack.config.js + +kind/dependencies: + - go.mod + - go.sum + - package.json + - package-lock.json + - pyproject.toml + - poetry.lock + +kind/lint: + - .eslintrc.yaml + - .golangci.yml + - .markdownlint.yaml + - .spectral.yaml + - .stylelintrc.yaml From 0dda37d5b8199023a61f5f42114bd3e0660f4a46 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 19:28:04 +0200 Subject: [PATCH 12/16] use 'dependencies' --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 0816ebbdf2072..7c99dfbce026c 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -14,7 +14,7 @@ kind/build: - Dockerfile.* - webpack.config.js -kind/dependencies: +dependencies: - go.mod - go.sum - package.json From 7cd05c218612c5334abfa2058a92f48618439f92 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 19:29:34 +0200 Subject: [PATCH 13/16] use full name --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7c99dfbce026c..38ad5425a83aa 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -11,7 +11,7 @@ kind/api: kind/build: - Makefile - Dockerfile - - Dockerfile.* + - Dockerfile.rootless - webpack.config.js dependencies: From 72654a77d883d65e85fefda80ba8f3dae690fa1a Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 21:20:18 +0200 Subject: [PATCH 14/16] remove dependencies for now --- .github/labeler.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 38ad5425a83aa..a1c4ed03d0dfd 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -14,14 +14,6 @@ kind/build: - Dockerfile.rootless - webpack.config.js -dependencies: - - go.mod - - go.sum - - package.json - - package-lock.json - - pyproject.toml - - poetry.lock - kind/lint: - .eslintrc.yaml - .golangci.yml From a8d851e803d21416278ef13b453e1108f81f41cf Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 22:59:52 +0200 Subject: [PATCH 15/16] Update .github/labeler.yml --- .github/labeler.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index a1c4ed03d0dfd..9a8f53c889e17 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,4 +1,5 @@ kind/docs: + - **/*.md - docs/**/* kind/ui: From 2045ec2f1789fda251bb2fe028431794d31db32d Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 Sep 2023 23:00:38 +0200 Subject: [PATCH 16/16] Update .github/labeler.yml --- .github/labeler.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 9a8f53c889e17..34713f078e61a 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -13,6 +13,7 @@ kind/build: - Makefile - Dockerfile - Dockerfile.rootless + - docker/** - webpack.config.js kind/lint: