Skip to content

Commit

Permalink
Merge pull request #166 from Ilhasoft/update/v9.2.0
Browse files Browse the repository at this point in the history
Update to v9.2.0
  • Loading branch information
Robi9 authored Jan 10, 2025
2 parents 38e12fd + fa1eb6f commit 7c7f558
Show file tree
Hide file tree
Showing 176 changed files with 11,581 additions and 9,114 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI
on: [push, pull_request]
env:
go-version: "1.21.x"
go-version: "1.22.x"
jobs:
test:
name: Test
Expand All @@ -24,10 +24,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.go-version }}

Expand All @@ -36,7 +36,7 @@ jobs:

- name: Upload coverage
if: success()
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Expand All @@ -48,25 +48,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.go-version }}

- name: Publish release
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
if: ${{ !contains(github.ref, '-') }}
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish non-master release
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
if: contains(github.ref, '-')
with:
args: release --clean --skip-validate
Expand Down
20 changes: 20 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
builds:
- main: ./cmd/courier/main.go
binary: courier
goos:
- darwin
- linux
goarch:
- amd64
- arm64

changelog:
filters:
exclude:
- "^Update CHANGELOG.md"

archives:
- files:
- LICENSE
- README.md
239 changes: 239 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,242 @@
v9.2.0 (2024-07-17)
-------------------------
* Update README

v9.1.53 (2024-07-15)
-------------------------
* Update deps

v9.1.52 (2024-07-10)
-------------------------
* Start writing msgs_msg.is_android

v9.1.51 (2024-07-01)
-------------------------
* Update deps

v9.1.50 (2024-06-20)
-------------------------
* Update chi library

v9.1.49 (2024-06-17)
-------------------------
* Adjust WA template to be send if present even when we have attachments

v9.1.48 (2024-06-14)
-------------------------
* Fix legacy WA components parameters

v9.1.47 (2024-06-10)
-------------------------
* Support template component types header/* and body/*

v9.1.46 (2024-06-07)
-------------------------
* Make sure TWA channels send the set messaging service SID when sending messages

v9.1.45 (2024-06-06)
-------------------------
* Adjust attachment variables for TWA templates

v9.1.44 (2024-06-06)
-------------------------
* Use split attachments for templates media attachment for consistency with messages attachments

v9.1.43 (2024-06-04)
-------------------------
* Update slog-multi

v9.1.42 (2024-06-03)
-------------------------
* Update deps
* Replace incorrect usages of ErrFailedWithReason
* Add support for sending Twilio content templates
* Use std library errors everywhere

v9.1.41 (2024-05-29)
-------------------------
* Add attachment support for chip

v9.1.40 (2024-05-29)
-------------------------
* Set content-type header in chip handler

v9.1.39 (2024-05-29)
-------------------------
* Fix hoormund bug so we don't ignore errors from fetching tokens
* Add test to make sure URN are normalized for EX channel with non phone schemes
* Allow sender ID tel urns on twilio channels

v9.1.38 (2024-05-09)
-------------------------
* Fix ext urns creation so we trigger normalization

v9.1.37 (2024-05-09)
-------------------------
* Update to latest gocommon

v9.1.36 (2024-05-09)
-------------------------
* Update to latest gocommon

v9.1.35 (2024-05-09)
-------------------------
* Fix HM token expiration timeout

v9.1.34 (2024-05-08)
-------------------------
* Update gocommon

v9.1.33 (2024-05-08)
-------------------------
* Update to latest gocommon and trust urns.ParsePhone for phone number parsing

v9.1.32 (2024-05-07)
-------------------------
* Update to new gocommon with urns changes

v9.1.31 (2024-04-29)
-------------------------
* Add support for read msg status

v9.1.30 (2024-04-26)
-------------------------
* Use filetype package to check file content for application/octet-stream content type header

v9.1.29 (2024-04-26)
-------------------------
* Prioritize the content-type header for attachments response for mimetype detection

v9.1.28 (2024-04-22)
-------------------------
* Support retrying failed messages for rate limit on Twilio WhatsApp

v9.1.27 (2024-04-22)
-------------------------
* Update deps

v9.1.26 (2024-04-17)
-------------------------
* Use variables in templating instead of params

v9.1.25 (2024-04-17)
-------------------------
* Read templating from new msg field instead of metadata
* Update test data schema inline with recent RP changes

v9.1.24 (2024-04-08)
-------------------------
* Stop writing Msg.queued_on

v9.1.23 (2024-04-03)
-------------------------
* Adjust legacy WA channel handler to use templating components

v9.1.22 (2024-04-02)
-------------------------
* Start writing status field on channel events as P

v9.1.21 (2024-03-28)
-------------------------
* Queue all channel events to mailroom as a single task type

v9.1.20 (2024-03-28)
-------------------------
* Update payloads for tasks queued to mailroom

v9.1.19 (2024-03-20)
-------------------------
* Use component name to find button index

v9.1.18 (2024-03-20)
-------------------------
* Update to use templating components with type

v9.1.17 (2024-03-15)
-------------------------
* Fix WA templating generation and add tests
* Fix max length for D3C

v9.1.16 (2024-03-15)
-------------------------
* Make parameter with type url to be sent as url buttons in WA handler

v9.1.15 (2024-03-14)
-------------------------
* Update deps

v9.1.14 (2024-03-12)
-------------------------
* Remove S3 region is media hostname before matching the media domain
* Unresolveable media should create channel log error

v9.1.13 (2024-03-07)
-------------------------
* Return error with line attachments issues
* Update to chi v5 and go 1.22

v9.1.12 (2024-02-29)
-------------------------
* Replace use of deprecated test fields
* Rework WA handler to new send, remove channel legacy handler

v9.1.11 (2024-02-28)
-------------------------
* Rework more send methods

v9.1.10 (2024-02-26)
-------------------------
* Rework more handlers send methods

v9.1.9 (2024-02-23)
-------------------------
* Rework more send methods

v9.1.8 (2024-02-21)
-------------------------
* Rework more handler sends

v9.1.7 (2024-02-20)
-------------------------
* Rework more handlers to new send method and improve tests

v9.1.6 (2024-02-14)
-------------------------
* Rework Telgram, Yo and Zenvia handlers to new send method

v9.1.5 (2024-02-05)
-------------------------
* Use markdown formatting for Telegram messages
* Update temba-chat handler to support multiple events per request and channel secrets

v9.1.4 (2024-02-05)
-------------------------
* Support MarkdownV2 text formatting styles
* Tweak experimental temba-chat handler

v9.1.3 (2024-01-25)
-------------------------
* Remove mailgun handler and revert change from user ids to user ref objects
* Simplify channel loading and caching

v9.1.2 (2024-01-23)
-------------------------
* Add optional user email and name to queued messages
* Add mailgun handler

v9.1.1 (2024-01-17)
-------------------------
* Standardize startup code with other services
* Drop support for variables field in templating metadata
* Update to latest ezconf which has builtin support for slog.Level
* Use redisx.NewPool

v9.1.0 (2024-01-15)
-------------------------
* Add support for chat_started event on tembachat handler
* Use latest gocommon
* Add support for templating params instead of variables

v9.0.1 (2024-01-08)
-------------------------
* Fix sending bandwidth MMS without text
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21
FROM golang:1.22

WORKDIR /usr/src/app

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Courier
# 🛫 Courier

[![Build Status](https://github.com/nyaruka/courier/workflows/CI/badge.svg)](https://github.com/nyaruka/courier/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/nyaruka/courier/branch/main/graph/badge.svg)](https://codecov.io/gh/nyaruka/courier)
Expand Down Expand Up @@ -41,6 +41,7 @@ For use with RapidPro/TextIt, you will want to configure these settings:
* `COURIER_SPOOL_DIR`: A local path where courier can spool files if the database is down, should be writable. (ex: `/home/courier/spool`)
* `COURIER_DB`: Details parameters used to connect to the Postgres RapidPro database (ex: `postgres://textit:[email protected]/5432/textit`)
* `COURIER_REDIS`: Details parameters to use to connect to Redis RapidPro database (ex: `redis://redis-internal.courier.io:6379/13`)
* `COURIER_AUTH_TOKEN`: authentication token to require for requests from Mailroom

For writing of message attachments, Courier needs access to an S3 bucket, you can configure access to your bucket via:

Expand Down
4 changes: 4 additions & 0 deletions WENI-CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.5.10-courier-9.2.0
----------
* Update to v9.2.0

1.5.9-courier-9.0.1
----------
* Update to v9.0.1
Expand Down
Loading

0 comments on commit 7c7f558

Please sign in to comment.