mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/language-data.git
synced 2026-04-21 09:42:22 +08:00
55 lines
2 KiB
YAML
55 lines
2 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 gh issue comment
|
|
runs-on: ubuntu-slim
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Add closed question comment
|
|
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) == '')
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
run: gh issue comment "$ISSUE_NUMBER" --body-file .github/comments/issue-resolved.md
|
|
- name: Add closed issue comment
|
|
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) != ''
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
run: gh issue comment "$ISSUE_NUMBER" --body-file .github/comments/issue-fixed.md
|