mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2026-03-11 20:53:58 -05:00
Validate Pull Requests with a Continuous Integration system #4100
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @m1guelpf on GitHub (Nov 30, 2016).
@Kickball Is there a reason for this repository to avoid using http://danger.systems ?
@nodiscc commented on GitHub (Nov 30, 2016):
Link is broken. What do you mean?
Please clarify your question and the issue title.
@nodiscc commented on GitHub (Nov 30, 2016):
Got it. http://danger.systems/ is the correct link. The question about a Continuous Integration system/tests has bee brought up before. See https://github.com/Kickball/awesome-selfhosted/issues/63
@AndyR207 has built a custom scanner which detects invalid entries. I think it's still work in progress, and still not public. I think it would be useful to have a CI system that integrates with Github, so that contributors are immediately aware of problems in their Pull Requests.
There are a few checks available in the Makefile (
make checks), and I think a draft of Travis integration has been pushed to a random branch, but I can't find the discussion about it. If you'd like to improve the makefile and/or add Travis tests I'd be glad to merge your changes.@m1guelpf commented on GitHub (Nov 30, 2016):
To start, @dkhamsing made Awesomebot to check and report broken links directly to pull requests.
Also, you can build custom checks in Ruby and integrate them with Danger to report directly to pull requests.
@nodiscc commented on GitHub (Nov 30, 2016):
The required features for such a CI system would be:
So, mostly enforce contribution guidelines. I think @AndyR207's bot does most of these it just lacks Github PR integration, and a public source release + a running instance. Is there any ETA on this? Else anyone is welcome to propose an implementation (in a Pull Request).
By the way I don't think Danger CI is open source, we should not rely on third party proprietary tools.
@n8225 commented on GitHub (Nov 30, 2016):
If you take a look at the https://github.com/Kickball/awesome-selfhosted/tree/addTravis branch, I have started working on it. I hope to put some time into it next week.
@nodiscc commented on GitHub (Nov 30, 2016):
Great. The list of relevant commits can be found here: https://github.com/Kickball/awesome-selfhosted/compare/addTravis
@m1guelpf commented on GitHub (Nov 30, 2016):
@nodiscc I will have a look. Anyway, Danger IS open source: https://github.com/danger/danger
Also, opened pull #876 to add title checks adn remember to add a Github API token to enable Danger!
If you want, I can provide one of a bot I use for Danger.
@nodiscc commented on GitHub (Nov 30, 2016):
Thanks @m1guelpf I have left the PR for @n8225 to merge.
Also, we may want to get our own API key.
The current tests fail with
and another error about the missing API key for danger.
Additional checks that are already partly in place:
@m1guelpf commented on GitHub (Nov 30, 2016):
@nodiscc You can get contribution info from the Github API:
https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data
@m1guelpf commented on GitHub (Dec 1, 2016):
@nodiscc Maybe we should replace the summary check with another check, as we have a pull template that autofills the form. Will search about a way to check if everything is
instead of
@n8225 commented on GitHub (Dec 5, 2016):
@AndyR207 @nodiscc @Kickball @m1guelpf
It looks like I've got Travis, Danger, and Awesomebot working reliable. If you guys could create PRs to the addTravis branch to test, it would be greatly appreciated. (Current checks: syntax check, link check, summary not blank, summary boxes all checked, PR title)
@m1guelpf commented on GitHub (Dec 5, 2016):
@n8225 Do you have repo activity test?
@n8225 commented on GitHub (Dec 5, 2016):
@m1guelpf no I don't I've been brainstorming how to implement it.
@m1guelpf commented on GitHub (Dec 5, 2016):
@n8225 I would try querying the Github API for contribuiting info
@nodiscc commented on GitHub (Dec 19, 2016):
Thanks @n8225 for your work on this,
Can you document the
test.jsfile a bit? Ideally with comment blocks for each function/...@m1guelpf commented on GitHub (Dec 19, 2016):
@n8225 Just seen that Danger has Github API usage.
Maybe you could make AwesomeBot check the repo activity...
@n8225 commented on GitHub (Dec 22, 2016):
@nodiscc I'll start working on this after the holidays.
@nodiscc commented on GitHub (Apr 4, 2017):
Issue mostly resolved: we have automated checks in place to validate syntax and valid links. I will close this and report new issues for the remaining points:
test.js