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

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc-format.git


The following commit(s) were added to refs/heads/main by this push:
     new 11e04e7  Setup .github
11e04e7 is described below

commit 11e04e784ea835973a031edfa3f5cba3a61d1fd6
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Tue Dec 5 09:20:19 2023 -0800

    Setup .github
---
 .github/PULL_REQUEST_TEMPLATE | 32 ++++++++++++++++++++++++++++++++
 .github/labeler.yml           | 29 +++++++++++++++++++++++++++++
 .github/workflows/labeler.yml | 34 ++++++++++++++++++++++++++++++++++
 .github/workflows/stale.yml   | 41 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 136 insertions(+)

diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE
new file mode 100644
index 0000000..01c8d0a
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE
@@ -0,0 +1,32 @@
+<!--
+Thanks for sending a pull request!  Here are some tips for you:
+  1. File a JIRA issue first and use it as a prefix of your PR title, e.g., 
`ORC-001: Fix ABC`.
+  2. Use your PR title to summarize what this PR proposes instead of 
describing the problem.
+  3. Make PR title and description complete because these will be the 
permanent commit log.
+  4. If possible, provide a concise and reproducible example to reproduce the 
issue for a faster review.
+  5. If the PR is unfinished, use GitHub PR Draft feature.
+-->
+
+### What changes were proposed in this pull request?
+<!--
+Please clarify what changes you are proposing. The purpose of this section is 
to outline the changes and how this PR fixes the issue. 
+If possible, please consider writing useful notes for better and faster 
reviews in your PR. See the examples below.
+  1. If you refactor some codes with changing classes, showing the class 
hierarchy will help reviewers.
+  2. If there is a discussion in the mailing list, please add the link.
+-->
+
+
+### Why are the changes needed?
+<!--
+Please clarify why the changes are needed. For instance,
+  1. If you propose a new API, clarify the use case for a new API.
+  2. If you fix a bug, you can clarify why it is a bug.
+-->
+
+
+### How was this patch tested?
+<!--
+If tests were added, say they were added here. Please make sure to add some 
test cases that check the changes thoroughly including negative and positive 
cases if possible.
+If it was tested in a way different from regular unit tests, please clarify 
how you tested step by step, ideally copy and paste-able, so that other 
reviewers can test and check, and descendants can verify in the future.
+If tests were not added, please describe why they were not added and/or why it 
was difficult to add.
+-->
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 0000000..5c59aee
--- /dev/null
+++ b/.github/labeler.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.
+#
+
+INFRA:
+  - ".github/**/*"
+  - ".asf.yaml"
+  - ".gitignore"
+BUILD:
+  - "**/*pom.xml"
+DOCS:
+  - "**/*.md"
+PROTO:
+  - "src/**/*"
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644
index 0000000..5c25e72
--- /dev/null
+++ b/.github/workflows/labeler.yml
@@ -0,0 +1,34 @@
+#
+# 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: "On pull requests"
+on: pull_request_target
+
+jobs:
+  label:
+    name: Label pull requests
+    runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      pull-requests: write
+    steps:
+    - uses: actions/[email protected]
+      with:
+        repo-token: "${{ secrets.GITHUB_TOKEN }}"
+        sync-labels: true
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 0000000..1145fb0
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,41 @@
+#
+# 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: Close stale PRs
+
+on:
+  schedule:
+  - cron: "0 0 * * *"
+
+jobs:
+  stale:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/stale@c201d45ef4b0ccbd3bb0616f93bae13e73d0a080 # [email protected]
+      with:
+        repo-token: ${{ secrets.GITHUB_TOKEN }}
+        stale-pr-message: >
+          We're closing this PR because it hasn't been updated in a while.
+          This isn't a judgement on the merit of the PR in any way. It's just
+          a way of keeping the PR queue manageable.
+
+          If you'd like to revive this PR, please reopen it and ask a
+          committer to remove the Stale tag!
+        days-before-stale: 365
+        days-before-close: 0

Reply via email to