cloudposse / cloudposse/github-commenter
Feature request: Restrict deletion of previous comments to current user
未关闭
enhancement
- 主要语言
- Go
- 星标
- 112
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
`GITHUB_DELETE_COMMENT_REGEX` can be used to delete previous comments before posting the new one. The current implementation will delete matching comments regardless of who they were posted by. This can easily lead to false positives where someone happens to post comment that matches your regex (due to loose regex, or quoting, etc).
I do not see a use case to delete comments by others, and recommend restricting it to the user that the tool is running as.
贡献指南
调研方向
定位 GITHUB_DELETE_COMMENT_REGEX 的实现,以及删除匹配评论的路径。检查当前用户和评论作者是如何表示的,然后确保只有在匹配评论由当前用户发布时才将其删除;完成的标准是其他用户的评论保持不变。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github, go
- 领域
- api, cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100