Rename webhook_handler to api
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
This commit is contained in:
parent
e20b1469d3
commit
46c5ab2aec
|
@ -5,8 +5,9 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
|
||||
"gitea-sonarqube-pr-bot/internal/api"
|
||||
"gitea-sonarqube-pr-bot/internal/settings"
|
||||
handler "gitea-sonarqube-pr-bot/internal/webhook_handler"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -26,7 +27,7 @@ func main() {
|
|||
Name: "gitea-sonarqube-pr-bot",
|
||||
Usage: "Improve your experience with SonarQube and Gitea",
|
||||
Description: `By default, gitea-sonarqube-pr-bot will start running the webserver if no arguments are passed.`,
|
||||
Action: handler.Serve,
|
||||
Action: api.Serve,
|
||||
}
|
||||
|
||||
err := app.Run(os.Args)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package webhook_handler
|
||||
package api
|
||||
|
||||
import (
|
||||
"fmt"
|
|
@ -1,4 +1,4 @@
|
|||
package webhook_handler
|
||||
package api
|
||||
|
||||
import (
|
||||
"fmt"
|
|
@ -1,4 +1,4 @@
|
|||
package webhook_handler
|
||||
package api
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
|
@ -1,4 +1,4 @@
|
|||
package webhook_handler
|
||||
package api
|
||||
|
||||
import (
|
||||
"fmt"
|
|
@ -1,4 +1,4 @@
|
|||
package webhook_handler
|
||||
package api
|
||||
|
||||
import (
|
||||
"bytes"
|
Loading…
Reference in a new issue