github / github/platform-samples

Add an example of iterating through pull request changed files in ruby.

未關閉
#196 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Shell
星號
2.2k
分支
1.9k
平均合併
7 天 19 小時
30 天內合併 PR
1

描述

I currently got this much done on it myself, however with not knowing ruby much at all I am not sure if I coded it all right. The code lies at https://github.com/Elskom/CI/blob/master/CI.rb. Yes it is formatted like the building a CI server example but with pull request label check for "skip news", and a "Misc/NEWS" entry check for if a new file was added there. I am not sure how I can filter it though to where that check only works with new entry files, not modified or deleted ones unless all of them merged to a single file (like right before a release). I would also love to be able to have my CI read comments from repo /org admins though for things like "I approve this" where the CI then approves the changes and then waits for "merge squashed/rebased/commit". I personally think it would be great to have an example like that tbh. And yes, feel free to use the code I got so far on an example, I don’t mind if you guys even linked to it too. Also I thought those octocat stuff was some sort of photoshopped thing. 🤔

貢獻指南

開啟貢獻指南

研究方向

先檢視 CI.rb 和現有的建置 CI 伺服器範例。確定範例應如何檢查 pull request 的變更檔案、區分新加入的 Misc/NEWS 項目與已修改或刪除的檔案,並處理所要求的標籤和管理員留言工作流程。當 Ruby 範例清楚示範已議定的檢查以及核准或合併行為時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
ruby
領域
ci-cd
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。