-
Notifications
You must be signed in to change notification settings - Fork 82
38 lines (35 loc) · 1.09 KB
/
hide_comments.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
# SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
# SPDX-License-Identifier: CC0-1.0
name: Hide bot comments
on:
workflow_dispatch:
inputs:
author:
description: 'Comment author'
required: true
default: 'github-actions'
type: choice
options:
- github-actions
- github-actions[bot]
- seqan-actions
issue_number:
description: 'The issue number'
required: true
type: string
leave_visible:
description: 'The number of most recent comments to leave untouched'
required: false
default: '0'
jobs:
hide-comments-action:
runs-on: ubuntu-latest
steps:
- name: Hide comments
uses: kanga333/comment-hider@v0.4.0
with:
github_token: ${{ secrets.SEQAN_ACTIONS_PAT }}
hide_user_name: ${{ github.event.inputs.author }}
issue_number: ${{ github.event.inputs.issue_number }}
leave_visible: ${{ github.event.inputs.leave_visible }}