将用户添加到存储库时触发 Github 操作

标签 github triggers devops github-actions

我是 GitHub actions 的新手,不幸的是我没有找到任何有关将用户添加到存储库的触发器的信息。

GitHub Actions 中有类似的东西吗?

最佳答案

Events that trigger workflows”页面实际上并未列出有关添加到存储库的新用户/协作者的任何内容。

因此,这似乎不是受支持的事件。

您可能会考虑scheduled event定期监控存储库,查询 list of collaborators (GitHub API) ,如果数字发生变化则触发另一个作业。

关于将用户添加到存储库时触发 Github 操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70030931/

相关文章:

MySQL通过触发器防止某一列的数据修改

Terraform 计划 : Saved plan is stale

amazon-web-services - 我们如何在具有相同用户数据配置的同一模板中重用配置的 AMI

github - 访问 Github wiki/Markdown 中登录的用户名

eclipse - 使用 GitHub 和 Eclipse pull 代码

git - 将大型提交推送到 GitHub 会导致致命写入错误 : Bad file descriptor

javascript - 在父 View 中触发 subview 模型方法: MarionetteJs

mysql触发器自动完成可变日期

git - Jenkins:不想触发 Git 标签(无工作区)

Azure Devops ODATA : Request details of linked items,如何检索TargetWorkItem的AreaPath