Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add issues helper action #1922

Merged
merged 3 commits into from
Feb 12, 2021
Merged

chore: add issues helper action #1922

merged 3 commits into from
Feb 12, 2021

Conversation

xrkffgg
Copy link
Contributor

@xrkffgg xrkffgg commented Feb 7, 2021

Background

利用 GitHub Actions 帮助你处理 issues。根据该仓库以往处理 issues 的记录加了一些功能,不对或欠缺地方可以提出来。

Changelog

  • 给 Issue 加 Label
    • contribution welcomehelp wanted
      • github actions bot 自动评论
      • 自动移除 bug: pending triage need reproduction label,如果有的话
    • enhancementbug: upstreambug: hmrbug
      • 自动移除 bug: pending triage label
    • need reproduction
      • 自动评论,评论内容若有需要改动地方,可提出
      • 自动移除 bug: pending triage label
  • 每天定时触发
    • 检测标记有 need reproduction 的 issues,若 3 天未活跃,则自动关闭 issue

labels: 'bug: pending triage, need reproduction'

- name: remove pending
if: github.event.label.name == 'enhancement' || github.event.label.name == 'bug: upstream' || github.event.label.name == 'bug: hmr' || github.event.label.name == 'bug'
Copy link
Member

@yyx990803 yyx990803 Feb 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use a generic label.name.startsWith('bug:') check here in case we add more bug: * labels in the future (or does this condition support such checks?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yyx990803
Copy link
Member

Ok let's try this out!

@yyx990803 yyx990803 merged commit 8f830bf into vitejs:main Feb 12, 2021
@yyx990803
Copy link
Member

Looks like an action failed here https://github.com/vitejs/vite/actions/runs/561618613

@xrkffgg
Copy link
Contributor Author

xrkffgg commented Feb 12, 2021

Let me check

@xrkffgg
Copy link
Contributor Author

xrkffgg commented Feb 12, 2021

新年快乐 ~ @yyx990803

@xrkffgg xrkffgg deleted the patch-1 branch February 12, 2021 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants