github.com/hashicorp/packer@v1.14.3/.github/workflows/lock.yml (about)

     1  name: 'Lock Threads'
     2  
     3  on:
     4    schedule:
     5      - cron: '50 1 * * *'
     6  
     7  # Only 50 issues will be handled during a given run.
     8  permissions:
     9    contents: read
    10  
    11  jobs:
    12    lock:
    13      permissions:
    14        issues: write  # for dessant/lock-threads to lock issues
    15        pull-requests: write  # for dessant/lock-threads to lock PRs
    16      runs-on: ubuntu-latest
    17      steps:
    18        - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
    19          with:
    20            github-token: ${{ github.token }}
    21            issue-comment: >
    22              I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
    23  
    24              If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
    25            issue-inactive-days: '30'
    26            # Issues older than 180 days ago should be ignored
    27            exclude-issue-created-before: '2020-11-01'
    28            pr-comment: >
    29              I'm going to lock this pull request because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
    30  
    31              If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
    32            pr-inactive-days: '30'
    33            # Issues older than 180 days ago should be ignored
    34            exclude-pr-created-before: '2020-11-01'
    35