github.heygears.com/openimsdk/tools@v0.0.49/.github/workflows/lock-issue.yml (about)

     1  # Copyright © 2023 OpenIM open source community. All rights reserved.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  name: 'Lock Threads'
    16  
    17  on:
    18    schedule:
    19      - cron: '0 * * * *'
    20    workflow_dispatch:
    21  
    22  permissions:
    23    issues: write
    24    pull-requests: write
    25  
    26  concurrency:
    27    group: lock
    28  
    29  jobs:
    30    action:
    31      runs-on: ubuntu-latest
    32      steps:
    33        - uses: dessant/lock-threads@v5
    34          with:
    35            github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
    36            issue-inactive-days: '365'
    37            exclude-issue-created-before: ''
    38            exclude-issue-created-after: ''
    39            exclude-issue-created-between: ''
    40            exclude-issue-closed-before: ''
    41            exclude-issue-closed-after: ''
    42            exclude-issue-closed-between: ''
    43            include-any-issue-labels: ''
    44            include-all-issue-labels: ''
    45            exclude-any-issue-labels: ''
    46            add-issue-labels: ''
    47            remove-issue-labels: ''
    48            issue-comment: ''
    49            issue-lock-reason: 'resolved'
    50            pr-inactive-days: '365'
    51            exclude-pr-created-before: ''
    52            exclude-pr-created-after: ''
    53            exclude-pr-created-between: ''
    54            exclude-pr-closed-before: ''
    55            exclude-pr-closed-after: ''
    56            exclude-pr-closed-between: ''
    57            include-any-pr-labels: ''
    58            include-all-pr-labels: ''
    59            exclude-any-pr-labels: ''
    60            add-pr-labels: ''
    61            remove-pr-labels: ''
    62            pr-comment: ''
    63            pr-lock-reason: 'resolved'
    64            process-only: ''
    65            log-output: false