From b93c937b211c9424aee9375353149844e977dcc2 Mon Sep 17 00:00:00 2001 From: prisis Date: Wed, 22 May 2024 20:48:24 +0200 Subject: [PATCH 1/6] chore: changed urls to the new mono repo --- packages/multi-semantic-release/README.md | 8 ++++---- packages/multi-semantic-release/package.json | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/multi-semantic-release/README.md b/packages/multi-semantic-release/README.md index 4b32ec3..caec363 100644 --- a/packages/multi-semantic-release/README.md +++ b/packages/multi-semantic-release/README.md @@ -1,6 +1,6 @@
-Logo +Logo

Multi Semantic Release

@@ -249,7 +249,7 @@ You can also combine the CLI ignore options with the `!` operator at each packag We use this tool to release our JS platform code inhouse (GitHub Enterprise + JB TeamCity) and for our OSS (GitHub + Travis CI). Guaranteed working configurations available in projects. -- [anolilab/multi-semantic-release](https://github.com/anolilab/multi-semantic-release) +- [anolilab/multi-semantic-release](https://github.com/anolilab/semantic-release) - [visulima/visulima](https://github.com/visulima/visulima) - [qiwi/substrate](https://github.com/qiwi/substrate) - [qiwi/json-rpc](https://github.com/qiwi/json-rpc) @@ -389,14 +389,14 @@ post on why we think this is important](https://medium.com/the-node-js-collectio ## Contributing -If you would like to help take a look at the [list of issues](https://github.com/anolilab/multi-semantic-release/issues) and check our [Contributing](.github/CONTRIBUTING.md) guild. +If you would like to help take a look at the [list of issues](https://github.com/anolilab/semantic-release/issues) and check our [Contributing](.github/CONTRIBUTING.md) guild. > **Note:** please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. ## Credits - [Daniel Bannert](https://github.com/prisis) -- [All Contributors](https://github.com/anolilab/multi-semantic-release/graphs/contributors) +- [All Contributors](https://github.com/anolilab/semantic-release/graphs/contributors) - [hanseltime](https://github.com/hanseltime) -> https://github.com/qiwi/multi-semantic-release/pull/96 - [lyh543](https://github.com/lyh543) -> https://github.com/dhoulb/multi-semantic-release/issues/111 - [dhoub/multi-semantic-release](https://github.com/dhoulb/multi-semantic-release) diff --git a/packages/multi-semantic-release/package.json b/packages/multi-semantic-release/package.json index 679230d..48392d4 100644 --- a/packages/multi-semantic-release/package.json +++ b/packages/multi-semantic-release/package.json @@ -4,7 +4,8 @@ "description": "A multi semantic release tool for a monorepo.", "repository": { "type": "git", - "url": "https://github.com/anolilab/multi-semantic-release.git" + "url": "https://github.com/anolilab/semantic-release.git", + "directory": "packages/multi-semantic-release" }, "license": "0BSD", "author": "Dave Houlbrooke ", From 47e29c789e5b9675012c814f56f13767dba7b3aa Mon Sep 17 00:00:00 2001 From: prisis Date: Wed, 22 May 2024 20:55:35 +0200 Subject: [PATCH 2/6] chore: fix pipe --- .github/workflows/semantic-pull-request.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index 19a49d6..ba96fbe 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -17,5 +17,8 @@ permissions: jobs: semantic-pull-request: uses: "anolilab/workflows/.github/workflows/semantic-pull-request.yml@main" + permissions: + pull-requests: "write" # to analyze PRs (amannn/action-semantic-pull-request) + statuses: "write" # to mark status of analyzed PR (amannn/action-semantic-pull-request) with: target-repo: "anolilab/semantic-release" From 9b7f1f1def8b802d0246c0794a7d6427fdb1b72f Mon Sep 17 00:00:00 2001 From: prisis Date: Wed, 22 May 2024 20:56:47 +0200 Subject: [PATCH 3/6] chore: fix pipe --- .github/workflows/semantic-pull-request.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index ba96fbe..3072a0e 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -12,13 +12,12 @@ on: # yamllint disable-line rule:truthy merge_group: # yamllint disable-line rule:empty-values permissions: + pull-requests: "write" # to analyze PRs (amannn/action-semantic-pull-request) + statuses: "write" # to mark status of analyzed PR (amannn/action-semantic-pull-request) contents: "read" jobs: semantic-pull-request: uses: "anolilab/workflows/.github/workflows/semantic-pull-request.yml@main" - permissions: - pull-requests: "write" # to analyze PRs (amannn/action-semantic-pull-request) - statuses: "write" # to mark status of analyzed PR (amannn/action-semantic-pull-request) with: target-repo: "anolilab/semantic-release" From 00fb614d9a7ee565d44045a50cc08bd43f2f795c Mon Sep 17 00:00:00 2001 From: prisis Date: Wed, 22 May 2024 21:12:56 +0200 Subject: [PATCH 4/6] chore: fix pipe --- .github/workflows/codeql.yml | 2 +- .github/workflows/semantic-pull-request.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6471043..4e91ee2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -37,7 +37,7 @@ jobs: strategy: fail-fast: false matrix: - language: ["javascript", "typescript"] + language: ["typescript"] # CodeQL supports [ $supported-codeql-languages ] # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index 3072a0e..ba96fbe 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -12,12 +12,13 @@ on: # yamllint disable-line rule:truthy merge_group: # yamllint disable-line rule:empty-values permissions: - pull-requests: "write" # to analyze PRs (amannn/action-semantic-pull-request) - statuses: "write" # to mark status of analyzed PR (amannn/action-semantic-pull-request) contents: "read" jobs: semantic-pull-request: uses: "anolilab/workflows/.github/workflows/semantic-pull-request.yml@main" + permissions: + pull-requests: "write" # to analyze PRs (amannn/action-semantic-pull-request) + statuses: "write" # to mark status of analyzed PR (amannn/action-semantic-pull-request) with: target-repo: "anolilab/semantic-release" From a9fede9e357bcb7c294f5c0388288d5cec3b2fbb Mon Sep 17 00:00:00 2001 From: prisis Date: Wed, 22 May 2024 21:21:03 +0200 Subject: [PATCH 5/6] chore: fix pipe --- .github/workflows/semantic-pull-request.yml | 56 +++++++++++++++++++-- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index ba96fbe..3ca1ce0 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -15,10 +15,58 @@ permissions: contents: "read" jobs: - semantic-pull-request: - uses: "anolilab/workflows/.github/workflows/semantic-pull-request.yml@main" + main: permissions: pull-requests: "write" # to analyze PRs (amannn/action-semantic-pull-request) statuses: "write" # to mark status of analyzed PR (amannn/action-semantic-pull-request) - with: - target-repo: "anolilab/semantic-release" + runs-on: "ubuntu-latest" + name: "Semantic Pull Request" + steps: + - name: "Harden Runner" + uses: "step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4" # v2.7.1 + with: + egress-policy: "audit" + + - name: "Validate PR title" + id: "lint_pr_title" + uses: "amannn/action-semantic-pull-request@cfb60706e18bc85e8aec535e3c577abe8f70378e" # v5.5.2 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + with: + types: | + build + chore + ci + docs + feat + fix + perf + infra + refactor + revert + test + + - uses: "marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31" # v2.9.0 + # When the previous steps fail, the workflow would stop. By adding this + # condition you can continue the execution with the populated error message. + if: "always() && (steps.lint_pr_title.outputs.error_message != null)" + with: + header: "pr-title-lint-error" + message: | + Hey there and thank you for opening this pull request! 👋🏼 + + We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted. + + Details: + + ``` + ${{ steps.lint_pr_title.outputs.error_message }} + ``` + + # Delete a previous comment when the issue has been resolved + - if: "${{ steps.lint_pr_title.outputs.error_message == null }}" + uses: "marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31" # v2.9.0 + with: + header: "pr-title-lint-error" + message: | + Thank you for following the naming conventions! 🙏 From 2a20a63c7193d68cb0762c87bf2282bac31b353c Mon Sep 17 00:00:00 2001 From: prisis Date: Wed, 22 May 2024 21:21:40 +0200 Subject: [PATCH 6/6] chore: fix pipe --- .github/workflows/semantic-pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index 3ca1ce0..f05543d 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -15,7 +15,7 @@ permissions: contents: "read" jobs: - main: + semantic-pull-request: permissions: pull-requests: "write" # to analyze PRs (amannn/action-semantic-pull-request) statuses: "write" # to mark status of analyzed PR (amannn/action-semantic-pull-request)