Skip to content

Commit

Permalink
update: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lareii committed Dec 8, 2023
1 parent c0e565e commit 179e0e5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions handlers/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
/*
* Deploy is a handler for the /deploy endpoint.
* If the request is ping, it returns "pong" message.
* Else, it pulls and returns "done" message the repo if signature is valid.
* If the request is just a ping message, it returns "pong" message. Otherwise,
* it pulls the repo and returns "done" message if the signature is valid.
*/

func Deploy(c *gin.Context) {
Expand Down
3 changes: 2 additions & 1 deletion utils/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import (
)

/*
* Check, checks if the .git directory exists in the specified directory.
* Check is a function to check if the ".git/" directory
* exists in the given directory.
*/

func Check(dir string) error {
Expand Down
2 changes: 1 addition & 1 deletion utils/clear.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

/*
* Clear, clears the terminal.
* Clear is a function for clearing the terminal screen.
*/

func Clear() {
Expand Down
2 changes: 1 addition & 1 deletion utils/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

/*
* Log, logs messages to the console.
* Log is a function for printing a log message.
*/

func Log(level int, message string, newLine bool) {
Expand Down
2 changes: 1 addition & 1 deletion utils/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

/*
* Pull, pulls the latest changes from the repo.
* Pull is a function for executing the "git pull" command.
*/

func Pull(dir string) error {
Expand Down
4 changes: 2 additions & 2 deletions utils/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
)

/*
* Repository, gets the repository url from the ./git/config
* file in the specified directory.
* Repository is a function to get the repository URL from
* the "./git/config" file in the specified directory.
*/

func Repository(dir string) (string, error) {
Expand Down
4 changes: 2 additions & 2 deletions utils/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
)

/*
* Signature, checks if the request signature matches the
* signature of the specified values.
* Signature is a function for checking if the request signature
* matches the signature of the specified values.
*/

func Signature(secret, header, payload string) error {
Expand Down

0 comments on commit 179e0e5

Please sign in to comment.