From 14b53dc95c5b534935f813a78f09a30f1162da20 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Wed, 5 Feb 2025 20:54:49 +0100 Subject: [PATCH] Release drafter configuration and PR Automation --- .github/release-drafter-3.x.yml | 21 +++++++++++++++++++ .github/release-drafter.yml | 10 +++++++++ .github/workflows/pr-automation.yml | 29 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 2 ++ 4 files changed, 62 insertions(+) create mode 100644 .github/release-drafter-3.x.yml create mode 100644 .github/workflows/pr-automation.yml diff --git a/.github/release-drafter-3.x.yml b/.github/release-drafter-3.x.yml new file mode 100644 index 00000000..b6650a6b --- /dev/null +++ b/.github/release-drafter-3.x.yml @@ -0,0 +1,21 @@ + + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +_extends: maven-gh-actions-shared:.github/release-drafter.yml +tag-template: maven-deploy-plugin-$RESOLVED_VERSION diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 387b9ca2..d168f700 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,3 +1,5 @@ + + # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -16,3 +18,11 @@ # under the License. _extends: maven-gh-actions-shared +tag-template: maven-deploy-plugin-$RESOLVED_VERSION + +include-pre-releases: true +prerelease: true + +header: | + > [!WARNING] + > This plugin is a Maven 4 plugin and requires Maven 4.x to run. diff --git a/.github/workflows/pr-automation.yml b/.github/workflows/pr-automation.yml new file mode 100644 index 00000000..e9d66988 --- /dev/null +++ b/.github/workflows/pr-automation.yml @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: PR Automation +on: + pull_request_target: + types: + - closed + - unlabeled + - review_requested + +jobs: + pr-automation: + name: PR Automation + uses: apache/maven-gh-actions-shared/.github/workflows/pr-automation.yml@v4 diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 1049eaa3..96eaa60a 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -20,6 +20,8 @@ on: push: branches: - master + workflow_dispatch: + jobs: update_release_draft: uses: apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml@v4