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

Adds github webhook integration #123

Merged
merged 4 commits into from
Jun 5, 2024
Merged

Adds github webhook integration #123

merged 4 commits into from
Jun 5, 2024

Conversation

Jerboa-app
Copy link
Contributor

@Jerboa-app Jerboa-app commented Jun 1, 2024

When push event is recieved, pulls

requires github token

Closes #116
Closes #106
Closes #99

src/integrations/git/mod.rs Show resolved Hide resolved
src/integrations/git/refresh.rs Show resolved Hide resolved
src/integrations/git/refresh.rs Show resolved Hide resolved
src/integrations/github/mod.rs Show resolved Hide resolved
src/integrations/github/mod.rs Outdated Show resolved Hide resolved
src/integrations/github/mod.rs Outdated Show resolved Hide resolved
@BurrowBot
Copy link

Seems the coverage is below main by -1.72 %, please consider adding to the tests, thanks!
Here is the full report breakdown

Total coverage 56.39 % (-1.72 % against main)
________________________________
src/integrations/github/mod.rs   | 0.0   % 0 / 37
src/main.rs                      | 0.0   % 0 / 56
src/server/api/stats.rs          | 0.0   % 0 / 78
src/server/http.rs               | 0.0   % 0 / 20
src/server/https.rs              | 5.97  % 4 / 67
src/integrations/git/refresh.rs  | 26.67 % 12 / 45
src/server/stats/mod.rs          | 30.36 % 17 / 56
src/lib.rs                       | 42.11 % 8 / 19
src/server/stats/hits.rs         | 45.68 % 37 / 81
src/server/throttle.rs           | 61.22 % 30 / 49
src/integrations/discord/post.rs | 62.5  % 10 / 16
src/integrations/git/mod.rs      | 65.0  % 52 / 80
src/server/stats/digest.rs       | 69.66 % 62 / 89
src/content/mod.rs               | 72.73 % 80 / 110
src/task/mod.rs                  | 74.14 % 43 / 58
src/filesystem/folder.rs         | 75.56 % 34 / 45
src/integrations/mod.rs          | 76.47 % 26 / 34
src/server/stats/file.rs         | 79.31 % 23 / 29
src/filesystem/file.rs           | 79.41 % 27 / 34
src/content/sitemap.rs           | 80.0  % 148 / 185
src/filesystem/mod.rs            | 80.0  % 8 / 10
src/util.rs                      | 83.91 % 73 / 87
src/config.rs                    | 92.11 % 35 / 38
src/content/filter.rs            | 100.0 % 5 / 5
src/content/mime_type.rs         | 100.0 % 31 / 31
src/integrations/webhook.rs      | 100.0 % 3 / 3
________________________________

1 similar comment
@BurrowBot
Copy link

Seems the coverage is below main by -1.72 %, please consider adding to the tests, thanks!
Here is the full report breakdown

Total coverage 56.39 % (-1.72 % against main)
________________________________
src/integrations/github/mod.rs   | 0.0   % 0 / 37
src/main.rs                      | 0.0   % 0 / 56
src/server/api/stats.rs          | 0.0   % 0 / 78
src/server/http.rs               | 0.0   % 0 / 20
src/server/https.rs              | 5.97  % 4 / 67
src/integrations/git/refresh.rs  | 26.67 % 12 / 45
src/server/stats/mod.rs          | 30.36 % 17 / 56
src/lib.rs                       | 42.11 % 8 / 19
src/server/stats/hits.rs         | 45.68 % 37 / 81
src/server/throttle.rs           | 61.22 % 30 / 49
src/integrations/discord/post.rs | 62.5  % 10 / 16
src/integrations/git/mod.rs      | 65.0  % 52 / 80
src/server/stats/digest.rs       | 69.66 % 62 / 89
src/content/mod.rs               | 72.73 % 80 / 110
src/task/mod.rs                  | 74.14 % 43 / 58
src/filesystem/folder.rs         | 75.56 % 34 / 45
src/integrations/mod.rs          | 76.47 % 26 / 34
src/server/stats/file.rs         | 79.31 % 23 / 29
src/filesystem/file.rs           | 79.41 % 27 / 34
src/content/sitemap.rs           | 80.0  % 148 / 185
src/filesystem/mod.rs            | 80.0  % 8 / 10
src/util.rs                      | 83.91 % 73 / 87
src/config.rs                    | 92.11 % 35 / 38
src/content/filter.rs            | 100.0 % 5 / 5
src/content/mime_type.rs         | 100.0 % 31 / 31
src/integrations/webhook.rs      | 100.0 % 3 / 3
________________________________

@BurrowBot
Copy link

Seems the coverage is below main by -1.24 %, please consider adding to the tests, thanks!
Here is the full report breakdown

Total coverage 56.87 % (-1.24 % against main)
________________________________
src/main.rs                      | 0.0   % 0 / 56
src/server/api/stats.rs          | 0.0   % 0 / 78
src/server/http.rs               | 0.0   % 0 / 20
src/server/https.rs              | 5.97  % 4 / 67
src/integrations/git/refresh.rs  | 26.09 % 12 / 46
src/integrations/github/mod.rs   | 28.57 % 14 / 49
src/server/stats/mod.rs          | 30.36 % 17 / 56
src/lib.rs                       | 42.11 % 8 / 19
src/server/stats/hits.rs         | 45.68 % 37 / 81
src/server/throttle.rs           | 61.22 % 30 / 49
src/integrations/discord/post.rs | 62.5  % 10 / 16
src/integrations/git/mod.rs      | 65.0  % 52 / 80
src/server/stats/digest.rs       | 69.66 % 62 / 89
src/content/mod.rs               | 72.73 % 80 / 110
src/task/mod.rs                  | 74.14 % 43 / 58
src/filesystem/folder.rs         | 75.56 % 34 / 45
src/integrations/mod.rs          | 76.47 % 26 / 34
src/server/stats/file.rs         | 79.31 % 23 / 29
src/filesystem/file.rs           | 79.41 % 27 / 34
src/content/sitemap.rs           | 80.0  % 148 / 185
src/filesystem/mod.rs            | 80.0  % 8 / 10
src/util.rs                      | 83.91 % 73 / 87
src/config.rs                    | 92.11 % 35 / 38
src/content/filter.rs            | 100.0 % 5 / 5
src/content/mime_type.rs         | 100.0 % 31 / 31
src/integrations/webhook.rs      | 100.0 % 3 / 3
________________________________

When push event is recieved, pulls

requires github token
@BurrowBot
Copy link

Seems the coverage is below main by -1.19 %, please consider adding to the tests, thanks!
Here is the full report breakdown

Total coverage 56.31 % (-1.19 % against main)
________________________________
src/main.rs                      | 0.0   % 0 / 63
src/server/api/stats.rs          | 0.0   % 0 / 78
src/server/http.rs               | 0.0   % 0 / 20
src/server/https.rs              | 5.97  % 4 / 67
src/integrations/git/refresh.rs  | 26.09 % 12 / 46
src/integrations/github/mod.rs   | 28.57 % 14 / 49
src/server/stats/mod.rs          | 30.36 % 17 / 56
src/lib.rs                       | 42.11 % 8 / 19
src/server/stats/hits.rs         | 45.68 % 37 / 81
src/server/throttle.rs           | 61.22 % 30 / 49
src/integrations/discord/post.rs | 62.5  % 10 / 16
src/integrations/git/mod.rs      | 65.0  % 52 / 80
src/server/stats/digest.rs       | 69.66 % 62 / 89
src/content/mod.rs               | 72.48 % 79 / 109
src/task/mod.rs                  | 74.14 % 43 / 58
src/filesystem/folder.rs         | 75.56 % 34 / 45
src/integrations/mod.rs          | 76.47 % 26 / 34
src/content/sitemap.rs           | 77.49 % 148 / 191
src/server/stats/file.rs         | 79.31 % 23 / 29
src/filesystem/file.rs           | 79.41 % 27 / 34
src/filesystem/mod.rs            | 80.0  % 8 / 10
src/util.rs                      | 83.91 % 73 / 87
src/config.rs                    | 92.11 % 35 / 38
src/content/filter.rs            | 100.0 % 5 / 5
src/content/mime_type.rs         | 100.0 % 31 / 31
src/integrations/webhook.rs      | 100.0 % 3 / 3
________________________________

@BurrowBot
Copy link

Seems the coverage is below main by -1.17 %, please consider adding to the tests, thanks!
Here is the full report breakdown

Total coverage 56.33 % (-1.17 % against main)
________________________________
src/main.rs                      | 0.0   % 0 / 63
src/server/api/stats.rs          | 0.0   % 0 / 78
src/server/http.rs               | 0.0   % 0 / 20
src/server/https.rs              | 5.97  % 4 / 67
src/integrations/git/refresh.rs  | 23.53 % 12 / 51
src/integrations/github/mod.rs   | 28.57 % 14 / 49
src/server/stats/mod.rs          | 30.36 % 17 / 56
src/lib.rs                       | 42.11 % 8 / 19
src/server/stats/hits.rs         | 45.68 % 37 / 81
src/server/throttle.rs           | 61.22 % 30 / 49
src/integrations/discord/post.rs | 62.5  % 10 / 16
src/server/stats/digest.rs       | 69.66 % 62 / 89
src/integrations/git/mod.rs      | 70.11 % 61 / 87
src/filesystem/folder.rs         | 71.11 % 32 / 45
src/content/mod.rs               | 72.48 % 79 / 109
src/task/mod.rs                  | 74.14 % 43 / 58
src/integrations/mod.rs          | 76.47 % 26 / 34
src/content/sitemap.rs           | 77.49 % 148 / 191
src/server/stats/file.rs         | 79.31 % 23 / 29
src/filesystem/file.rs           | 79.41 % 27 / 34
src/filesystem/mod.rs            | 80.0  % 8 / 10
src/util.rs                      | 83.91 % 73 / 87
src/config.rs                    | 92.11 % 35 / 38
src/content/filter.rs            | 100.0 % 5 / 5
src/content/mime_type.rs         | 100.0 % 31 / 31
src/integrations/webhook.rs      | 100.0 % 3 / 3
________________________________

@Jerboa-app Jerboa-app merged commit a0474d2 into main Jun 5, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants