diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 698686c1a..14d455f10 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -12,10 +12,12 @@ A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error +1. Kotlin version +2. Gradle version +3. OS (Or at least KMP platform) +4. Minimal reproducer in code +5. Error description +6. And so on **Expected behavior** A clear and concise description of what you expected to happen. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index b6160af65..97dd9df86 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -2,7 +2,7 @@ name: Feature request about: Suggest an idea for this project title: '' -labels: enhancement +labels: feature assignees: Mr3zee --- diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 0dae97fe6..2dacfbf51 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -7,3 +7,5 @@ Describe what problem this PR solves and why it is important. Refer to a bug/tic **Solution** Describe your solution. +**ATTENTION** +Provide this pull request with proper labels, it is important to simplify generation of releases. diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..ffc965000 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,26 @@ +changelog: + exclude: + authors: + - renovate[bot] + categories: + - title: Features ๐ŸŽ‰ + labels: + - feature + - title: Breaking Changes ๐Ÿ”ด + labels: + - breaking + - title: Deprecations โš ๏ธ + labels: + - deprecation + - title: Bug fixes ๐Ÿ› + labels: + - bug + - title: Documentation ๐Ÿ“— + labels: + - docs + - title: Infra ๐Ÿšง + labels: + - infra + - title: Other Changes ๐Ÿงน + labels: + - "*" diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 000000000..6ec0385c0 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,24 @@ +name: Check PR Labels + +on: + pull_request: + types: + - opened + - synchronize + - reopened + - labeled + - unlabeled + - converted_to_draft + - ready_for_review + +jobs: + check-labels: + name: Check labels + runs-on: ubuntu-latest + if: ${{ github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'feature') && !contains(github.event.pull_request.labels.*.name, 'bug') && !contains(github.event.pull_request.labels.*.name, 'breaking') && !contains(github.event.pull_request.labels.*.name, 'infra') && !contains(github.event.pull_request.labels.*.name, 'docs') && !contains(github.event.pull_request.labels.*.name, 'deprecation') && !contains(github.event.pull_request.labels.*.name, 'dependencies') }} + steps: + - name: Fail build after no labels present + run: | + echo "Pull request does not contain any required labels" + echo "Please use at least one of 'feature', 'bug', 'breaking', 'infra', 'docs', 'deprecation' or 'dependencies' labels" + exit 1 diff --git a/compiler-plugin/gradle.properties b/compiler-plugin/gradle.properties new file mode 120000 index 000000000..7677fb73b --- /dev/null +++ b/compiler-plugin/gradle.properties @@ -0,0 +1 @@ +../gradle.properties \ No newline at end of file diff --git a/gradle-conventions/src/main/kotlin/conventions-publishing.gradle.kts b/gradle-conventions/src/main/kotlin/conventions-publishing.gradle.kts index 6e4ff0125..bb719aece 100644 --- a/gradle-conventions/src/main/kotlin/conventions-publishing.gradle.kts +++ b/gradle-conventions/src/main/kotlin/conventions-publishing.gradle.kts @@ -4,7 +4,7 @@ import util.* -val isGradlePlugin = project.properties["kotlinx.rpc.gradle.plugin"] == "true" +val isGradlePlugin = project.name == "gradle-plugin" val publishingExtension = project.extensions.findByType() val globalRootDir: String by extra diff --git a/gradle-plugin/gradle.properties b/gradle-plugin/gradle.properties deleted file mode 100644 index 28e6b6a95..000000000 --- a/gradle-plugin/gradle.properties +++ /dev/null @@ -1,5 +0,0 @@ -# -# Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. -# - -kotlinx.rpc.gradle.plugin=true diff --git a/gradle-plugin/gradle.properties b/gradle-plugin/gradle.properties new file mode 120000 index 000000000..7677fb73b --- /dev/null +++ b/gradle-plugin/gradle.properties @@ -0,0 +1 @@ +../gradle.properties \ No newline at end of file diff --git a/ksp-plugin/gradle.properties b/ksp-plugin/gradle.properties new file mode 120000 index 000000000..7677fb73b --- /dev/null +++ b/ksp-plugin/gradle.properties @@ -0,0 +1 @@ +../gradle.properties \ No newline at end of file diff --git a/tests/compiler-plugin-tests/build.gradle.kts b/tests/compiler-plugin-tests/build.gradle.kts index 4a7ffa09c..2d65ccd4d 100644 --- a/tests/compiler-plugin-tests/build.gradle.kts +++ b/tests/compiler-plugin-tests/build.gradle.kts @@ -91,6 +91,7 @@ dependencies { testImplementation(libs.junit5.platform.runner) testImplementation(libs.junit5.platform.suite.api) + testDataClasspath(projects.utils) testDataClasspath(libs.coroutines.core) testDataClasspath(libs.serialization.core) }