name: 'Lock Threads'

on:
  schedule:
    - cron: '0 0 * * 1'

permissions:
  issues: write

concurrency:
  group: lock

jobs:
  action:
    runs-on: ubuntu-latest
    steps:
      - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771
        with:
          issue-inactive-days: '182'
          issue-comment: >
            This issue has been automatically locked since there
            has not been any recent activity (i.e. last half year) after it was closed.
            It helps our maintainers focus on the active issues.

            If you have found a problem that seems similar, please open a
            [discussion](https://github.com/JanDeDobbeleer/oh-my-posh/discussions/new?category=troubleshoot)
            first, complete the body with all the details necessary to reproduce,
            and mention this issue as reference.
          process-only: 'issues'
