You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ghost/.github/workflows/stale-i18n.yml

34 lines
1.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 工作流名称关闭过时的国际化i18n相关PR
name: 'Close stale i18n PRs'
# 触发条件
on:
workflow_dispatch: # 允许手动触发工作流
schedule:
- cron: '0 6 * * *' # 定时触发每天早上6点执行UTC时间
jobs:
stale: # 定义名为stale的任务处理过时PR
if: github.repository_owner == 'TryGhost' # 仅当仓库所有者为TryGhost时执行
runs-on: ubuntu-latest # 任务运行在最新版Ubuntu系统上
steps:
# 使用官方的stale动作处理过时PR
- uses: actions/stale@v9
with:
# 标记PR为过时的提示消息
stale-pr-message: |
Thanks for contributing to Ghost's i18n :)
This PR has been automatically marked as stale because there has not been any activity here in 3 weeks.
I18n PRs tend to get out of date quickly, so we're closing them to keep the PR list clean.
If you're still interested in working on this PR, please let us know. Otherwise this PR will be closed shortly, but can always be reopened later. Thank you for understanding 🙂
only-labels: 'affects:i18n' # 仅对带有affects:i18n标签的PR生效
days-before-pr-stale: 21 # PR闲置21天3周后标记为过时
days-before-pr-close: 7 # 标记为过时后7天自动关闭
exempt-pr-labels: 'feature,pinned,needs:triage' # 这些标签的PR不会被标记为过时
stale-pr-label: 'stale' # 标记过时PR时添加的标签
# 关闭PR时的提示消息
close-pr-message: |
This PR has been automatically closed due to inactivity. If you'd like to continue working on it, feel free to open a new PR.