mirror of
https://gh.llkk.cc/https://github.com/WeblateOrg/fail2ban.git
synced 2025-10-03 15:32:19 +08:00
Some checks are pending
Pre-commit check / pre-commit (push) Waiting to run
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
64 lines
2.8 KiB
YAML
64 lines
2.8 KiB
YAML
# Copyright © Michal Čihař <michal@weblate.org>
|
||
#
|
||
# SPDX-License-Identifier: CC0-1.0
|
||
|
||
# This file is maintained in https://github.com/WeblateOrg/meta/
|
||
name: Issue closed
|
||
|
||
on:
|
||
issues:
|
||
types: [closed]
|
||
|
||
concurrency:
|
||
group: ${{ github.workflow }}-${{ github.event.issue.id }}
|
||
cancel-in-progress: true
|
||
|
||
permissions:
|
||
contents: read
|
||
|
||
jobs:
|
||
issueClosed:
|
||
permissions:
|
||
issues: write # for peter-evans/create-or-update-comment to create or update comment
|
||
pull-requests: write # for peter-evans/create-or-update-comment to create or update comment
|
||
runs-on: ubuntu-24.04
|
||
steps:
|
||
- name: Add closed question comment
|
||
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
|
||
if: |
|
||
github.actor != 'renovate[bot]' &&
|
||
github.event.issue.state_reason == 'completed' &&
|
||
((
|
||
contains(github.event.issue.labels.*.name, 'question') &&
|
||
! contains(github.event.issue.labels.*.name, 'duplicate') &&
|
||
! contains(github.event.issue.labels.*.name, 'wontfix')
|
||
) || join(github.event.issue.labels.*.name) == '')
|
||
with:
|
||
token: ${{ secrets.GITHUB_TOKEN }}
|
||
issue-number: ${{ github.event.issue.number }}
|
||
body: |
|
||
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
||
|
||
* In case you see a similar problem, please open a separate issue.
|
||
* If you are happy with the outcome, don’t hesitate to support Weblate by making a [donation](https://weblate.org/donate/).
|
||
- name: Add closed issue comment
|
||
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
|
||
if: |
|
||
github.actor != 'renovate[bot]' &&
|
||
github.event.issue.state_reason == 'completed' &&
|
||
! contains(github.event.issue.labels.*.name, 'invalid') &&
|
||
! contains(github.event.issue.labels.*.name, 'question') &&
|
||
! contains(github.event.issue.labels.*.name, 'wontfix') &&
|
||
! contains(github.event.issue.labels.*.name, 'duplicate') &&
|
||
! contains(github.event.issue.labels.*.name, 'undecided') &&
|
||
! contains(github.event.issue.labels.*.name, 'needinfo') &&
|
||
join(github.event.issue.labels.*.name) != ''
|
||
with:
|
||
token: ${{ secrets.GITHUB_TOKEN }}
|
||
issue-number: ${{ github.event.issue.number }}
|
||
body: |
|
||
Thank you for your report; the issue you have reported has just been fixed.
|
||
|
||
* In case you see a problem with the fix, please comment on this issue.
|
||
* In case you see a similar problem, please open a separate issue.
|
||
* If you are happy with the outcome, don’t hesitate to support Weblate by making a [donation](https://weblate.org/donate/).
|