Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Fix typos found by crate-ci/typos #106

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Typos

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
typos:
name: Check for typos
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ svix login # interactively configure your Svix API credentials
svix application create '{ "name": "demo" }'
# or pipe in some json
echo '{ "name": "demo" }' | svix application create
# or use the convinence cli flags
# or use the convenience cli flags
svix application create --data-name demo

# List Applications
Expand Down
4 changes: 2 additions & 2 deletions cmd/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ func newMessageCmd() *messageCmd {
payloadFlagName := "data-payload"
create := &cobra.Command{
Use: "create APP_ID [JSON_PAYLOAD]",
Short: "Create a new messsage",
Long: `Create a new messsage
Short: "Create a new message",
Long: `Create a new message

Example Schema:
{
Expand Down
2 changes: 1 addition & 1 deletion cmd/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func newVerifyCmd() *verifyCmd {
} else if !cmd.Flags().Changed(timestampFlagName) {
err = fmt.Errorf("Timestamp required for verification!")
} else if !cmd.Flags().Changed(msgIdFlagName) {
err = fmt.Errorf("Message ID required for verifcation")
err = fmt.Errorf("Message ID required for verification")
}
printer.CheckErr(err)

Expand Down
8 changes: 4 additions & 4 deletions relay/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (c *Client) recLoop() {
c.sendErrorMaybe(err, c.stopRead)
return
}
go c.handleIncommingMessage(packet)
go c.handleIncomingMessage(packet)
}
}

Expand Down Expand Up @@ -287,7 +287,7 @@ func (c *Client) sendLoop() {
}
}

func (c *Client) handleIncommingMessage(packet []byte) {
func (c *Client) handleIncomingMessage(packet []byte) {
var msg IncomingMessage
if err := json.Unmarshal(packet, &msg); err != nil {
return
Expand All @@ -297,7 +297,7 @@ func (c *Client) handleIncommingMessage(packet []byte) {
var msgData IncomingMessageEventData
err := json.Unmarshal(msg.Data, &msgData)
if err != nil {
color.Red("Recieved Invalid Webhook message... skipping\n")
color.Red("Received Invalid Webhook message... skipping\n")
return
}
color.Blue("<- Forwarding Message to: %s", c.localURL.String())
Expand Down Expand Up @@ -364,7 +364,7 @@ func (c *Client) processResponse(id string, res *http.Response) {
Body: base64.StdEncoding.EncodeToString(buf),
},
}
color.Green("-> Recieved \"%s\" response, forwarding to webhook sender\n", res.Status)
color.Green("-> Received \"%s\" response, forwarding to webhook sender\n", res.Status)
c.SendMessage(msg)
}

Expand Down
Loading