Skip to content

Commit

Permalink
Merge pull request #100 from serokell/diogo/prep-staging
Browse files Browse the repository at this point in the history
v1-rc release
  • Loading branch information
dcastro authored Sep 5, 2023
2 parents 95c7f91 + 913ca01 commit 4c2315e
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 57 deletions.
44 changes: 0 additions & 44 deletions .buildkite/pipeline.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,10 @@ you must be able to justify that.

- [ ] My commits comply with [the policy used in Serokell](https://www.notion.so/serokell/Where-and-how-to-commit-your-work-58f8973a4b3142c8abbd2e6fd5b3a08e).
- [ ] My code complies with the [style guide](../tree/master/docs/code-style.md).

## ✓ Release Checklist

- [ ] I updated the version number in `package.yaml`.
- [ ] (After merging) I created a new entry in the [releases](https://github.com/serokell/tzbot/releases) page,
with a summary of all user-facing changes.
* I made sure a tag was created using the format `vX.Y`
73 changes: 73 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# SPDX-FileCopyrightText: 2022 Serokell <https://serokell.io>
#
# SPDX-License-Identifier: MPL-2.0

name: CI

on:
push:

jobs:
validate:
runs-on: [self-hosted, nix]
steps:
- uses: actions/checkout@v3

- name: check trailing whitespaces
run: nix build -L .#checks.x86_64-linux.trailing-whitespace

- name: shellcheck
run: nix build -L .#checks.x86_64-linux.shellcheck
if: success() || failure()

- name: validate cabal files
run: nix develop .#ci -c ./scripts/validate-cabal-files.sh
if: success() || failure()

- name: stylish
run: nix build -L .#checks.x86_64-linux.stylish-haskell
if: success() || failure()

- name: lint
run: nix build -L .#checks.x86_64-linux.hlint
if: success() || failure()

# not working for unknown reason (OPS-1487)
# - name: xrefcheck
# run: nix run github:serokell/xrefcheck
# if: success() || failure()

- name: REUSE lint
run: nix build -L .#checks.x86_64-linux.reuse-lint
if: success() || failure()

build:
runs-on: [self-hosted, nix]
steps:
- uses: actions/checkout@v3

- name: build
run: nix build -L .#checks.x86_64-linux.build-all

test:
runs-on: [self-hosted, nix]
needs: [build]
steps:
- uses: actions/checkout@v3

- name: test
run: nix build -L .#checks.x86_64-linux.test

- name: doctest
run: nix develop .#doctest -c runghc doctest/doctests.hs
if: success() || failure()

deploy:
runs-on: [self-hosted, nix]
needs: [test]
if: ${{ github.ref == 'refs/heads/staging' }}
steps:
- uses: actions/checkout@v3

- name: deploy staging
run: nix develop .#ci -c deploy .#staging --ssh-user deploy --skip-checks
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@
`tzbot` is a Slack bot that detects messages with references to some point in time
and converts them to your timezone.

When a user in the Europe/Riga timezone sends a message such as:

> Hey, can we meet tomorrow at 6pm?
Users will receive an
"ephemeral message" (a message visible only to that user):

![](./docs/imgs/example1.png)
![A screenshot of the bot converting "tomorrow at 6pm"](./docs/imgs/example1.png)

## Features

Expand Down
Binary file modified docs/imgs/example1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MPL-2.0

name: tzbot
version: 0.1.0.0
version: 1.0
github: serokell/tzbot
license: MPL-2.0
license-file: LICENSE
Expand Down
2 changes: 1 addition & 1 deletion tzbot.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack

name: tzbot
version: 0.1.0.0
version: 1.0
description: Please see the README on GitHub at <https://github.com/serokell/tzbot#readme>
homepage: https://github.com/serokell/tzbot#readme
bug-reports: https://github.com/serokell/tzbot/issues
Expand Down

0 comments on commit 4c2315e

Please sign in to comment.