This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-enforcer.git


The following commit(s) were added to refs/heads/master by this push:
     new 995d8cf  Add GitHub Automation actions
995d8cf is described below

commit 995d8cfcda6deb5ad8af42edf772d8cc7d9c6bee
Author: Slawomir Jaranowski <s.jaranow...@gmail.com>
AuthorDate: Sun Feb 23 08:29:21 2025 +0100

    Add GitHub Automation actions
---
 .github/release-drafter.yml                             |  1 +
 .../{release-drafter.yml => pr-automation.yml}          | 16 +++++++++-------
 .github/workflows/release-drafter.yml                   |  2 ++
 .github/workflows/{release-drafter.yml => stale.yml}    | 17 ++++++++++-------
 4 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
index 387b9ca..3c48b45 100644
--- a/.github/release-drafter.yml
+++ b/.github/release-drafter.yml
@@ -16,3 +16,4 @@
 # under the License.
 
 _extends: maven-gh-actions-shared
+tag-template: enforcer-$RESOLVED_VERSION
diff --git a/.github/workflows/release-drafter.yml 
b/.github/workflows/pr-automation.yml
similarity index 80%
copy from .github/workflows/release-drafter.yml
copy to .github/workflows/pr-automation.yml
index 1049eaa..5307595 100644
--- a/.github/workflows/release-drafter.yml
+++ b/.github/workflows/pr-automation.yml
@@ -14,12 +14,14 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-   
-name: Release Drafter
+
+name: PR Automation
 on:
-  push:
-    branches:
-      - master
+  pull_request_target:
+    types:
+      - closed
+
 jobs:
-   update_release_draft:
-      uses: 
apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml@v4
+  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 1049eaa..96eaa60 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
diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/stale.yml
similarity index 81%
copy from .github/workflows/release-drafter.yml
copy to .github/workflows/stale.yml
index 1049eaa..5c1740f 100644
--- a/.github/workflows/release-drafter.yml
+++ b/.github/workflows/stale.yml
@@ -14,12 +14,15 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-   
-name: Release Drafter
+
+name: Stale
+
 on:
-  push:
-    branches:
-      - master
+  schedule:
+    - cron: '33 4 * * *'
+  issue_comment:
+    types: [ 'created' ]
+
 jobs:
-   update_release_draft:
-      uses: 
apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml@v4
+  stale:
+    uses: 'apache/maven-gh-actions-shared/.github/workflows/stale.yml@v4'

Reply via email to