简体   繁体   English

Github 工作流自动化

[英]Github workflow automation

I try to automate workflow in my GitHub project kanban board.我尝试在我的 GitHub 项目看板中自动化工作流程。

The goal is: when the issue is closed and card located in "Closed" column I want to get notification via email that this issue was closed 30 days ago and I maybe want to do something with it.目标是:当问题关闭并且卡片位于“已关闭”列中时,我想通过电子邮件收到通知,该问题已在 30 天前关闭,我可能想对其进行处理。

I checked in Github workflow documentation, there is an event:我查看了 Github 工作流文档,有一个事件:

on:
  project_card:
    types: moved

But it will not work in my case.但在我的情况下它不起作用。 I need to specify that this card is closed and located in "Closed" column.我需要指定此卡已关闭并位于“已关闭”列中。

There is no "closed" activity type in the "Automating your workflow with GitHub Actions / events / Project Card section.“使用 GitHub 操作/事件/项目卡自动化您的工作流程”部分中没有“关闭”活动类型。
Which seems logical if "closed" is considered as a status, not an activity for a project card.如果“关闭”被视为一种状态,而不是项目卡的活动,这似乎是合乎逻辑的。

There is a "closed" activity type for issues though, which means you might monitor issues instead, considering an issue event comes with project_card["column_name"] attribute.但是,问题有一个“关闭”活动类型,这意味着您可以改为监视问题,考虑到问题事件带有project_card["column_name"]属性。
It is the name of the column that the card is listed in.它是列出卡片的列的名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM