一個使用Probot構建的GitHub應用程序,該應用程序在一段時間內關閉了廢棄的問題並提取請求。
受 @parkr的自動機器人的啟發,該機器人運行@jekyllbot。
請改用陳舊的動作。
.github/stale.yml
。需要一個.github/stale.yml
文件才能啟用插件。該文件可以為空,也可以覆蓋這些默認設置中的任何一個:
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale : 60
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose : 7
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels : []
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels :
- pinned
- security
- " [Status] Maybe Later "
# Set to true to ignore issues in a project (defaults to false)
exemptProjects : false
# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones : false
# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees : false
# Label to use when marking as stale
staleLabel : wontfix
# Comment to post when marking as stale. Set to `false` to disable
markComment : >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.
# Comment to post when closing a stale Issue or Pull Request.
# closeComment: >
# Your comment here.
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun : 30
# Limit to only `issues` or `pulls`
# only: issues
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
# pulls:
# daysUntilStale: 30
# markComment: >
# This pull request has been automatically marked as stale because it has not had
# recent activity. It will be closed if no further activity occurs. Thank you
# for your contributions.
# issues:
# exemptLabels:
# - confirmed
該應用程序使用GitHub的更新搜索預選賽來確定陳舊性。對問題或拉的請求的任何更改都被視為更新,包括評論,更改標籤,應用或刪除里程碑或推動提交。
一種簡單的方法來檢查並查看最初將哪些問題或拉的請求標記為“陳舊”是將updated
搜索預選程序添加到您的存儲庫中的問題或拉請請求頁過濾器: updated:<2017-07-01
。調整60天前的日期(或您為daysUntilStale
設置的任何內容),以查看將標記哪些問題或拉的請求。
為了避免在GitHub上觸發預防濫用機制,每小時只有30個問題和拉動請求被標記或關閉。如果您的存儲庫有更多的內容,則僅需幾個小時或幾天就可以標記它們。
該應用程序按計劃和批量運行,以避免達到率限制天花板。
這意味著即使您最初安裝github配置並添加stale.yml
文件,您也可能不會立即看到它。
如果機器人在初始設置後的24小時內不運行,請隨時打開問題,我們可以進一步調查。
在一個擁有無限資源的理想世界中,該應用不需要。
但是,在任何成功的軟件項目中,總有比人們要做的工作要做更多的工作。隨著越來越多的工作堆積,它變得癱瘓了。僅對工作應該做什麼而不應該完成的決定就可以耗盡所有可用資源。在該應用程序的維護者以及使用它的其他數百個項目和組織的經驗中,將積極影響人類的問題關注是優先考慮工作的有效方法。
對於某些人來說,試圖解決陳舊問題的機器人似乎對貢獻者來說似乎是不愉快的或令人反感的。但是,另一種選擇是通過設定錯誤的期望並隱含地忽略他們的工作來不尊重他們。該應用程序使其明確:如果工作沒有進展,那就太過時了。要保持對話的活力所需的全部評論。
如果您想運行自己的插件實例,請參見DOCS/DEVALINE.MD。
如果您有關於如何改善過時的建議,或者想報告錯誤,請打開問題!我們希望所有的貢獻。
請注意,所有互動都屬於概率的行為代碼。
ISC版權所有©2017-2018 Brandon飼養員