Skip to content

Commit

Permalink
Restore original paths
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Aug 20, 2021
1 parent a64aa53 commit ed585f5
Show file tree
Hide file tree
Showing 50 changed files with 88 additions and 88 deletions.
34 changes: 17 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ Thank you for many contributions!
- doc: Add logo to README ([#813])
- doc: Update current project status and Add changelog for v0.7.0 ([#814])

[#753]: https://github.com/crisp-dev/slack/pull/753
[#755]: https://github.com/crisp-dev/slack/pull/755
[#772]: https://github.com/crisp-dev/slack/pull/772
[#773]: https://github.com/crisp-dev/slack/pull/773
[#778]: https://github.com/crisp-dev/slack/pull/778
[#779]: https://github.com/crisp-dev/slack/pull/779
[#782]: https://github.com/crisp-dev/slack/pull/782
[#783]: https://github.com/crisp-dev/slack/pull/783
[#787]: https://github.com/crisp-dev/slack/pull/787
[#790]: https://github.com/crisp-dev/slack/pull/790
[#791]: https://github.com/crisp-dev/slack/pull/791
[#793]: https://github.com/crisp-dev/slack/pull/793
[#794]: https://github.com/crisp-dev/slack/pull/794
[#800]: https://github.com/crisp-dev/slack/pull/800
[#810]: https://github.com/crisp-dev/slack/pull/810
[#813]: https://github.com/crisp-dev/slack/pull/813
[#814]: https://github.com/crisp-dev/slack/pull/814
[#753]: https://github.com/slack-go/slack/pull/753
[#755]: https://github.com/slack-go/slack/pull/755
[#772]: https://github.com/slack-go/slack/pull/772
[#773]: https://github.com/slack-go/slack/pull/773
[#778]: https://github.com/slack-go/slack/pull/778
[#779]: https://github.com/slack-go/slack/pull/779
[#782]: https://github.com/slack-go/slack/pull/782
[#783]: https://github.com/slack-go/slack/pull/783
[#787]: https://github.com/slack-go/slack/pull/787
[#790]: https://github.com/slack-go/slack/pull/790
[#791]: https://github.com/slack-go/slack/pull/791
[#793]: https://github.com/slack-go/slack/pull/793
[#794]: https://github.com/slack-go/slack/pull/794
[#800]: https://github.com/slack-go/slack/pull/800
[#810]: https://github.com/slack-go/slack/pull/810
[#813]: https://github.com/slack-go/slack/pull/813
[#814]: https://github.com/slack-go/slack/pull/814

### v0.6.0 - August 31, 2019
full differences can be viewed using `git log --oneline --decorate --color v0.5.0..v0.6.0`
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Slack API in Go [![Go Reference](https://pkg.go.dev/badge/github.com/crisp-dev/slack.svg)](https://pkg.go.dev/github.com/crisp-dev/slack)
Slack API in Go [![Go Reference](https://pkg.go.dev/badge/github.com/slack-go/slack.svg)](https://pkg.go.dev/github.com/slack-go/slack)
===============

This is the original Slack library for Go created by Norberto Lopes, transferred to a Github organization.
Expand All @@ -15,13 +15,13 @@ a fully managed way.
There is currently no major version released.
Therefore, minor version releases may include backward incompatible changes.

See [CHANGELOG.md](https://github.com/crisp-dev/slack/blob/master/CHANGELOG.md) or [Releases](https://github.com/crisp-dev/slack/releases) for more information about the changes.
See [CHANGELOG.md](https://github.com/slack-go/slack/blob/master/CHANGELOG.md) or [Releases](https://github.com/slack-go/slack/releases) for more information about the changes.

## Installing

### *go get*

$ go get -u github.com/crisp-dev/slack
$ go get -u github.com/slack-go/slack

## Example

Expand All @@ -31,7 +31,7 @@ See [CHANGELOG.md](https://github.com/crisp-dev/slack/blob/master/CHANGELOG.md)
import (
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand All @@ -56,7 +56,7 @@ func main() {
import (
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand All @@ -72,12 +72,12 @@ func main() {

## Minimal RTM usage:

See https://github.com/crisp-dev/slack/blob/master/examples/websocket/websocket.go
See https://github.com/slack-go/slack/blob/master/examples/websocket/websocket.go


## Minimal EventsAPI usage:

See https://github.com/crisp-dev/slack/blob/master/examples/eventsapi/events.go
See https://github.com/slack-go/slack/blob/master/examples/eventsapi/events.go


## Contributing
Expand Down
2 changes: 1 addition & 1 deletion block_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (s TextBlockObject) Validate() error {
return errors.New("type must be either of plain_text or mrkdwn")
}

// https://github.com/crisp-dev/slack/issues/881
// https://github.com/slack-go/slack/issues/881
if s.Type == "mrkdwn" && s.Emoji {
return errors.New("emoji cannot be true in mrkdown")
}
Expand Down
2 changes: 1 addition & 1 deletion chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/url"
"strconv"

"github.com/crisp-dev/slack/slackutilsx"
"github.com/slack-go/slack/slackutilsx"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package slack

import "github.com/crisp-dev/slack/internal/errorsx"
import "github.com/slack-go/slack/internal/errorsx"

// Errors returned by various methods.
const (
Expand Down
2 changes: 1 addition & 1 deletion examples/blocks/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

// The functions below mock the different templates slack has as examples on their website.
Expand Down
2 changes: 1 addition & 1 deletion examples/buttons/buttons.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"os"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/connparams/connparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"os"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/dialog/dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/url"
"strings"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

var api = slack.New("YOUR_TOKEN")
Expand Down
4 changes: 2 additions & 2 deletions examples/eventsapi/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"os"

"github.com/crisp-dev/slack"
"github.com/crisp-dev/slack/slackevents"
"github.com/slack-go/slack"
"github.com/slack-go/slack/slackevents"
)

// You more than likely want your "Bot User OAuth Access Token" which starts with "xoxb-"
Expand Down
2 changes: 1 addition & 1 deletion examples/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/messages/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/modal/modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"io/ioutil"
"net/http"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func generateModalRequest() slack.ModalViewRequest {
Expand Down Expand Up @@ -59,7 +59,7 @@ func generateModalRequest() slack.ModalViewRequest {
}

// This was taken from the slash example
// https://github.com/crisp-dev/slack/blob/master/examples/slash/slash.go
// https://github.com/slack-go/slack/blob/master/examples/slash/slash.go
func verifySigningSecret(r *http.Request) error {
signingSecret := "YOUR_SIGNING_SECRET_HERE"
verifier, err := slack.NewSecretsVerifier(r.Header, signingSecret)
Expand Down
2 changes: 1 addition & 1 deletion examples/modal_users/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

// An example how to open a modal with different kinds of input fields
Expand Down
2 changes: 1 addition & 1 deletion examples/pins/pins.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion examples/reactions/reactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/slash/slash.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io/ioutil"
"net/http"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/socketmode/socketmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"os"
"strings"

"github.com/crisp-dev/slack/socketmode"
"github.com/slack-go/slack/socketmode"

"github.com/crisp-dev/slack"
"github.com/crisp-dev/slack/slackevents"
"github.com/slack-go/slack"
"github.com/slack-go/slack/slackevents"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/stars/stars.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/team/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/users/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/webhooks/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"time"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand All @@ -15,7 +15,7 @@ func main() {
Fallback: "You successfully posted by Incoming Webhook URL!",
AuthorName: "slack-go/slack",
AuthorSubname: "github.com",
AuthorLink: "https://github.com/crisp-dev/slack",
AuthorLink: "https://github.com/slack-go/slack",
AuthorIcon: "https://avatars2.githubusercontent.com/u/652790",
Text: "<!channel> All text in Slack uses the same system of escaping: chat messages, direct messages, file comments, etc. :smile:\nSee <https://api.slack.com/docs/message-formatting#linking_to_channels_and_users>",
Footer: "slack api",
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket_respond/respond.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/crisp-dev/slack
module github.com/slack-go/slack

require (
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down
2 changes: 1 addition & 1 deletion interactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type InteractionCallback struct {
ViewClosedCallback

// FIXME(kanata2): just workaround for backward-compatibility.
// See also https://github.com/crisp-dev/slack/issues/816
// See also https://github.com/slack-go/slack/issues/816
RawState json.RawMessage `json:"state,omitempty"`

// BlockActionState stands for the `state` field in block_actions type.
Expand Down
2 changes: 1 addition & 1 deletion misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"strings"
"time"

"github.com/crisp-dev/slack/internal/misc"
"github.com/slack-go/slack/internal/misc"
)

// SlackResponse handles parsing out errors from the web api.
Expand Down
4 changes: 2 additions & 2 deletions misc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"sync"
"testing"

"github.com/crisp-dev/slack/internal/misc"
"github.com/slack-go/slack/internal/misc"

"github.com/crisp-dev/slack/slackutilsx"
"github.com/slack-go/slack/slackutilsx"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion slackevents/action_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slackevents
import (
"encoding/json"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

type MessageActionResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion slackevents/inner_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package slackevents
import (
"encoding/json"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

// EventsAPIInnerEvent the inner event of a EventsAPI event_callback Event.
Expand Down
2 changes: 1 addition & 1 deletion slackevents/parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"reflect"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

// eventsMap checks both slack.EventsMapping and
Expand Down
2 changes: 1 addition & 1 deletion slackevents/parsers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/crisp-dev/slack"
"github.com/slack-go/slack"
)

func TestParserOuterCallBackEvent(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slacktest
import (
"fmt"

slack "github.com/crisp-dev/slack"
slack "github.com/slack-go/slack"
)

const defaultBotName = "TestSlackBot"
Expand Down

0 comments on commit ed585f5

Please sign in to comment.