Skip to content

Merge pull request #165 from ianlewis/renovate/github-codeql-action-4.x #611

Merge pull request #165 from ianlewis/renovate/github-codeql-action-4.x

Merge pull request #165 from ianlewis/renovate/github-codeql-action-4.x #611

# Copyright 2024 Ian Lewis
#
# Licensed 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: "TODO Issue Reopener"
on:
workflow_dispatch:
# push[main] will catch changes to TODOs in code.
push:
branches: [main]
# issues[closed] will catch issues closed manually that contain TODOs.
issues:
types: [closed]
# schedule will periodically reconcile and catch any missed TODOs.
schedule:
- cron: "0 0 1 * *"
permissions: {}
jobs:
issue-reopener:
name: Reopen TODO issues
runs-on: ubuntu-latest
permissions:
contents: read # Needed for private repositories.
issues: write # Needed to comment on and reopen issues.
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Issue Reopener
uses: ianlewis/todo-issue-reopener@05ca1b2493e450e1cc464bb25e0fa735ae8e4a00 # v1.7.0