kou commented on code in PR #46904:
URL: https://github.com/apache/arrow/pull/46904#discussion_r2395911782


##########
.github/workflows/stale.yml:
##########
@@ -0,0 +1,74 @@
+# 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: "30 1 * * 1" # Run once per week on Monday at 1:30 AM UTC
+
+jobs:
+  close-stale-prs:
+    runs-on: ubuntu-latest
+    permissions:
+      issues: write
+      pull-requests: write
+    steps:
+      - uses: actions/stale@v9
+        with:
+          stale-pr-message: "Thank you for your contribution. Unfortunately, 
this pull request has been marked as stale because it has had no activity in 
the past 365 days. Please remove the stale label or comment below, or this PR 
will be closed in 14 days.  Feel free to re-open this if it has been closed in 
error. If you do not have repo permissions to reopen the PR, please tag a 
relevant maintainer."
+          stale-pr-label: "Status: stale-warning"
+          days-before-pr-stale: 365
+          days-before-pr-close: 14
+          # exclude issues
+          days-before-issue-stale: -1
+          days-before-issue-close: -1
+          repo-token: ${{ secrets.GITHUB_TOKEN }}
+  close-stale-issues-usage:
+    runs-on: ubuntu-latest
+    permissions:
+      issues: write
+      pull-requests: write
+    steps:
+      - uses: actions/stale@v9
+        with:
+          # exclude PRs
+          days-before-pr-stale: -1
+          days-before-pr-close: -1
+          only-issue-labels: "Type: usage"
+          stale-issue-message: "This issue has been marked as stale because it 
has had no activity in the past 365 days. Please remove the stale label or 
comment below, or this issue will be closed in 14 days. If this usage question 
has evolved into a feature request or docs update, please remove the 'Type: 
usage' label and add the 'Type: enhancement' label instead."
+          stale-issue-label: "Status: stale-warning"
+          days-before-issue-stale: 365
+          days-before-issue-close: 14

Review Comment:
   We can do it by removing 
https://github.com/apache/arrow/blob/main/.github/ISSUE_TEMPLATE/usage_question.yaml
 and the following diff:
   
   ```diff
   diff --git a/.github/ISSUE_TEMPLATE/config.yml 
b/.github/ISSUE_TEMPLATE/config.yml
   index 960a754a28..23cda63dcf 100644
   --- a/.github/ISSUE_TEMPLATE/config.yml
   +++ b/.github/ISSUE_TEMPLATE/config.yml
   @@ -16,4 +16,7 @@
    # under the License.
    
    blank_issues_enabled: false
   -
   +contact_links:
   +  - name: GitHub Discussions
   +    url: https://github.com/apache/arrow/discussions
   +    about: ...description for this link here...
   ```
   
   See also: 
https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to