You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2024/12/23 09:39:43 UTC
(maven-gh-actions-shared) branch pr-automation-doc created (now eb06674)
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a change to branch pr-automation-doc
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git
at eb06674 Add Pull Request Automation documentation
This branch includes the following new commits:
new eb06674 Add Pull Request Automation documentation
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(maven-gh-actions-shared) 01/01: Add Pull Request Automation documentation
Posted by sj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch pr-automation-doc
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git
commit eb06674252c0e9366a3d565def5ef959b1187cac
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Mon Dec 23 10:39:31 2024 +0100
Add Pull Request Automation documentation
---
README.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/README.md b/README.md
index f90459f..ea9ad7e 100644
--- a/README.md
+++ b/README.md
@@ -144,6 +144,55 @@ We can store some logs of execution in case of failure as workflow attachments:
matrix-enabled: false
```
+## Pull Request Automation
+
+Create GitHub workflow in project file:
+
+```
+.github/workflows/pr-automation.yml
+```
+
+with content:
+
+```yaml
+# 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:
+ types:
+ - closed
+ - unlabeled
+ - demilestoned
+ pull_request_review:
+ types:
+ - submitted
+
+jobs:
+ pr-automation:
+ name: PR Automation
+ uses: apache/maven-gh-actions-shared/.github/workflows/pr-automation.yml@v4
+```
+
+After approval or merged:
+- default label - `maintenance` will be added
+- current milestone will be set
+
## More options
More options with default values can be found in workflow source in `inputs` section: