Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbcb506d

Browse files
authored
Remove Kiln support (#53)
I am not sure if anyone is still using Kiln. We have not been using (=testing, dog-fooding) it for years, and it is the only type that needsextra code here instead of relying on Composer-provided drivers.Let's drop it.
1 parentde1611a commitbcb506d

File tree

10 files changed

+8
-529
lines changed

10 files changed

+8
-529
lines changed

‎README.md‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Which of your projects are affected by that vulnerable package release? Is it wo
66
How many package updates do you have to do before you can update your server to the latest PHP version? Baton helps you
77
answer these questions.
88

9-
Once installed, you can import any list of GitHubor Kilnrepositories to search for package usages in. You can also
9+
Once installed, you can import any list of GitHub repositories to search for package usages in. You can also
1010
set up a webhook to automatically import new projects whenever they get added to your organisation.
1111

1212
##Demo
@@ -62,12 +62,10 @@ Baton has Unit-Tests! Execute `bin/phpunit` to run them.
6262

6363
##Configuration
6464

65-
In order to import private repositories from GitHub you need to provide an[OAuth token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
65+
In order to import private repositories from GitHub you need to provide an[API access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
6666

6767
Set it as the value of the environment variable`GITHUB_OAUTH_TOKEN` on your server and you're good to go.
6868

69-
The same goes for Kiln repositories. Store your Kiln OAuth token in the`KILN_OAUTH_TOKEN` environment variable on your server.
70-
7169
###Overriding Symfony configuration
7270

7371
You can add your custom Symfony configuration by providing any of
@@ -85,7 +83,7 @@ This allows adding custom configuriation (like custom loggin configuration) with
8583

8684
###Import Projects
8785

88-
Use the webhook route`/webhook` to import/update repositories onpush events (tested withGitHuband Kiln).
86+
Use the webhook route`/webhook` to import/update repositories on GitHubpush events.
8987

9088
You can also import projects by repository URL through the Symfony Command`app:import-project` or the form at`/import-repositories`.
9189

@@ -104,7 +102,7 @@ Show Composer Package with list of using projects grouped by version.
104102

105103
##Roadmap
106104

107-
Right now private repositories are only supported for projects hosted on GitHub or Kiln using OAuth tokens for authentication.
105+
Right now private repositories are only supported for projects hosted on GitHub, accessible through a GitHub personal access token.
108106
A more general approach would be to use ssh URLs for importing repositories and pass an authorized ssh identity to the VCS.
109107

110108
##Contributing
@@ -123,9 +121,8 @@ This is the final commit from the initial implementation in the given timeframe:
123121

124122
##Credits, Copyright and License
125123

126-
This project was started atthewebfactory GmbH, Bonn.
124+
This project was started at webfactory GmbH, Bonn.
127125

128-
-<http://www.webfactory.de>
129-
-<http://twitter.com/webfactory>
126+
-<https://www.webfactory.de>
130127

131-
Copyright 2018 webfactory GmbH, Bonn. Code released under[the MIT license](LICENSE).
128+
Copyright 2018-2025 webfactory GmbH, Bonn. Code released under[the MIT license](LICENSE).

‎docker-compose.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ services:
1717
target:symfony_php
1818
environment:
1919
-GITHUB_OAUTH_TOKEN=${GITHUB_OAUTH_TOKEN}
20-
-KILN_OAUTH_TOKEN=${KILN_OAUTH_TOKEN}
2120
-MYSQL_USER=${MYSQL_USER:-baton}
2221
-MYSQL_PASSWORD=${MYSQL_PASSWORD:-baton}
2322
-MYSQL_DATABASE=${MYSQL_DATABASE:-baton}

‎env-example‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
HTTP_PORT=8000
22
GITHUB_OAUTH_TOKEN=<Your Token>
3-
KILN_OAUTH_TOKEN=<Your Token>
43
MYSQL_USER=baton
54
MYSQL_PASSWORD=baton
65
MYSQL_DATABASE=baton

‎src/AppBundle/Controller/WebhookController.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public function updateAction(Request $request)
2525

2626
$repositoryWasImported =false;
2727

28-
// This works for the Kiln webhook API as well as for GitHub webhooks of content-type "application/x-www-form-urlencoded"
2928
if ($payload =$request->get('payload')) {
3029
$payload =json_decode($payload, flags:JSON_THROW_ON_ERROR);
3130
if (isset($payload->repository) &&$payload->repository &&$payload->repository->html_url) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp