├── .cobra.yml ├── .github └── workflows │ ├── main.yml │ └── release.yml ├── .golangci.yml ├── .goreleaser.yml ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── cmd ├── cmd.go ├── cmd_test.go └── testdata │ └── submit_dryrun_out.golden ├── go.mod ├── go.sum ├── main.go ├── openapi-generator-config.yml ├── pkg ├── article │ ├── article.go │ ├── article_test.go │ ├── client.go │ ├── client_test.go │ ├── frontmatter.go │ ├── frontmatter_test.go │ ├── mock │ │ └── mock_client.go │ └── testdata │ │ ├── empty.md │ │ ├── real_article.golden │ │ ├── real_article.md │ │ ├── testdata.md │ │ └── testdata_nocoverimage.md ├── config │ ├── config.go │ ├── config_test.go │ └── testdata │ │ ├── bad.yml │ │ ├── devto.yml │ │ └── empty.yml ├── devto │ ├── .gitignore │ ├── .openapi-generator-ignore │ ├── .openapi-generator │ │ └── VERSION │ ├── .travis.yml │ ├── README.md │ ├── api │ │ └── openapi.yaml │ ├── api_articles.go │ ├── api_users.go │ ├── api_webhooks.go │ ├── client.go │ ├── configuration.go │ ├── docs │ │ ├── ApiError.md │ │ ├── ArticleCreate.md │ │ ├── ArticleCreateArticle.md │ │ ├── ArticleFlareTag.md │ │ ├── ArticleIndex.md │ │ ├── ArticleMe.md │ │ ├── ArticleOrganization.md │ │ ├── ArticleShow.md │ │ ├── ArticleUpdate.md │ │ ├── ArticleUpdateArticle.md │ │ ├── ArticleUser.md │ │ ├── ArticlesApi.md │ │ ├── UsersApi.md │ │ ├── WebhookCreate.md │ │ ├── WebhookCreateWebhookEndpoint.md │ │ ├── WebhookIndex.md │ │ ├── WebhookShow.md │ │ └── WebhooksApi.md │ ├── model_api_error.go │ ├── model_article_create.go │ ├── model_article_create_article.go │ ├── model_article_flare_tag.go │ ├── model_article_index.go │ ├── model_article_me.go │ ├── model_article_organization.go │ ├── model_article_show.go │ ├── model_article_update.go │ ├── model_article_update_article.go │ ├── model_article_user.go │ ├── model_webhook_create.go │ ├── model_webhook_create_webhook_endpoint.go │ ├── model_webhook_index.go │ ├── model_webhook_show.go │ └── response.go └── links │ ├── links.go │ ├── links_test.go │ ├── root.go │ └── root_test.go └── tools.go /.cobra.yml: -------------------------------------------------------------------------------- 1 | author: Shi Han NG 2 | license: MIT 3 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/.golangci.yml -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/.goreleaser.yml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/README.md -------------------------------------------------------------------------------- /cmd/cmd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/cmd/cmd.go -------------------------------------------------------------------------------- /cmd/cmd_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/cmd/cmd_test.go -------------------------------------------------------------------------------- /cmd/testdata/submit_dryrun_out.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/cmd/testdata/submit_dryrun_out.golden -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/go.sum -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/main.go -------------------------------------------------------------------------------- /openapi-generator-config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/openapi-generator-config.yml -------------------------------------------------------------------------------- /pkg/article/article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/article.go -------------------------------------------------------------------------------- /pkg/article/article_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/article_test.go -------------------------------------------------------------------------------- /pkg/article/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/client.go -------------------------------------------------------------------------------- /pkg/article/client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/client_test.go -------------------------------------------------------------------------------- /pkg/article/frontmatter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/frontmatter.go -------------------------------------------------------------------------------- /pkg/article/frontmatter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/frontmatter_test.go -------------------------------------------------------------------------------- /pkg/article/mock/mock_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/mock/mock_client.go -------------------------------------------------------------------------------- /pkg/article/testdata/empty.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pkg/article/testdata/real_article.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/testdata/real_article.golden -------------------------------------------------------------------------------- /pkg/article/testdata/real_article.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/testdata/real_article.md -------------------------------------------------------------------------------- /pkg/article/testdata/testdata.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/testdata/testdata.md -------------------------------------------------------------------------------- /pkg/article/testdata/testdata_nocoverimage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/article/testdata/testdata_nocoverimage.md -------------------------------------------------------------------------------- /pkg/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/config/config.go -------------------------------------------------------------------------------- /pkg/config/config_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/config/config_test.go -------------------------------------------------------------------------------- /pkg/config/testdata/bad.yml: -------------------------------------------------------------------------------- 1 | bad 2 | -------------------------------------------------------------------------------- /pkg/config/testdata/devto.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/config/testdata/devto.yml -------------------------------------------------------------------------------- /pkg/config/testdata/empty.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pkg/devto/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/.gitignore -------------------------------------------------------------------------------- /pkg/devto/.openapi-generator-ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/.openapi-generator-ignore -------------------------------------------------------------------------------- /pkg/devto/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 4.2.2 -------------------------------------------------------------------------------- /pkg/devto/.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/.travis.yml -------------------------------------------------------------------------------- /pkg/devto/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/README.md -------------------------------------------------------------------------------- /pkg/devto/api/openapi.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/api/openapi.yaml -------------------------------------------------------------------------------- /pkg/devto/api_articles.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/api_articles.go -------------------------------------------------------------------------------- /pkg/devto/api_users.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/api_users.go -------------------------------------------------------------------------------- /pkg/devto/api_webhooks.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/api_webhooks.go -------------------------------------------------------------------------------- /pkg/devto/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/client.go -------------------------------------------------------------------------------- /pkg/devto/configuration.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/configuration.go -------------------------------------------------------------------------------- /pkg/devto/docs/ApiError.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ApiError.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticleCreate.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticleCreate.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticleCreateArticle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticleCreateArticle.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticleFlareTag.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticleFlareTag.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticleIndex.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticleIndex.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticleMe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticleMe.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticleOrganization.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticleOrganization.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticleShow.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticleShow.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticleUpdate.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticleUpdate.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticleUpdateArticle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticleUpdateArticle.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticleUser.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticleUser.md -------------------------------------------------------------------------------- /pkg/devto/docs/ArticlesApi.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/ArticlesApi.md -------------------------------------------------------------------------------- /pkg/devto/docs/UsersApi.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/UsersApi.md -------------------------------------------------------------------------------- /pkg/devto/docs/WebhookCreate.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/WebhookCreate.md -------------------------------------------------------------------------------- /pkg/devto/docs/WebhookCreateWebhookEndpoint.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/WebhookCreateWebhookEndpoint.md -------------------------------------------------------------------------------- /pkg/devto/docs/WebhookIndex.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/WebhookIndex.md -------------------------------------------------------------------------------- /pkg/devto/docs/WebhookShow.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/WebhookShow.md -------------------------------------------------------------------------------- /pkg/devto/docs/WebhooksApi.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/docs/WebhooksApi.md -------------------------------------------------------------------------------- /pkg/devto/model_api_error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_api_error.go -------------------------------------------------------------------------------- /pkg/devto/model_article_create.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_article_create.go -------------------------------------------------------------------------------- /pkg/devto/model_article_create_article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_article_create_article.go -------------------------------------------------------------------------------- /pkg/devto/model_article_flare_tag.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_article_flare_tag.go -------------------------------------------------------------------------------- /pkg/devto/model_article_index.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_article_index.go -------------------------------------------------------------------------------- /pkg/devto/model_article_me.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_article_me.go -------------------------------------------------------------------------------- /pkg/devto/model_article_organization.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_article_organization.go -------------------------------------------------------------------------------- /pkg/devto/model_article_show.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_article_show.go -------------------------------------------------------------------------------- /pkg/devto/model_article_update.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_article_update.go -------------------------------------------------------------------------------- /pkg/devto/model_article_update_article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_article_update_article.go -------------------------------------------------------------------------------- /pkg/devto/model_article_user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_article_user.go -------------------------------------------------------------------------------- /pkg/devto/model_webhook_create.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_webhook_create.go -------------------------------------------------------------------------------- /pkg/devto/model_webhook_create_webhook_endpoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_webhook_create_webhook_endpoint.go -------------------------------------------------------------------------------- /pkg/devto/model_webhook_index.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_webhook_index.go -------------------------------------------------------------------------------- /pkg/devto/model_webhook_show.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/model_webhook_show.go -------------------------------------------------------------------------------- /pkg/devto/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/devto/response.go -------------------------------------------------------------------------------- /pkg/links/links.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/links/links.go -------------------------------------------------------------------------------- /pkg/links/links_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/links/links_test.go -------------------------------------------------------------------------------- /pkg/links/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/links/root.go -------------------------------------------------------------------------------- /pkg/links/root_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/pkg/links/root_test.go -------------------------------------------------------------------------------- /tools.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shihanng/devto/HEAD/tools.go --------------------------------------------------------------------------------