Skip to content

Commit 4c2315e

Browse files
authored
Merge pull request #100 from serokell/diogo/prep-staging
v1-rc release
2 parents 95c7f91 + 913ca01 commit 4c2315e

File tree

8 files changed

+86
-57
lines changed

8 files changed

+86
-57
lines changed

.buildkite/pipeline.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,10 @@ you must be able to justify that.
5151

5252
- [ ] My commits comply with [the policy used in Serokell](https://www.notion.so/serokell/Where-and-how-to-commit-your-work-58f8973a4b3142c8abbd2e6fd5b3a08e).
5353
- [ ] My code complies with the [style guide](../tree/master/docs/code-style.md).
54+
55+
## ✓ Release Checklist
56+
57+
- [ ] I updated the version number in `package.yaml`.
58+
- [ ] (After merging) I created a new entry in the [releases](https://github.com/serokell/tzbot/releases) page,
59+
with a summary of all user-facing changes.
60+
* I made sure a tag was created using the format `vX.Y`

.github/workflows/check.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# SPDX-FileCopyrightText: 2022 Serokell <https://serokell.io>
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
5+
name: CI
6+
7+
on:
8+
push:
9+
10+
jobs:
11+
validate:
12+
runs-on: [self-hosted, nix]
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: check trailing whitespaces
17+
run: nix build -L .#checks.x86_64-linux.trailing-whitespace
18+
19+
- name: shellcheck
20+
run: nix build -L .#checks.x86_64-linux.shellcheck
21+
if: success() || failure()
22+
23+
- name: validate cabal files
24+
run: nix develop .#ci -c ./scripts/validate-cabal-files.sh
25+
if: success() || failure()
26+
27+
- name: stylish
28+
run: nix build -L .#checks.x86_64-linux.stylish-haskell
29+
if: success() || failure()
30+
31+
- name: lint
32+
run: nix build -L .#checks.x86_64-linux.hlint
33+
if: success() || failure()
34+
35+
# not working for unknown reason (OPS-1487)
36+
# - name: xrefcheck
37+
# run: nix run github:serokell/xrefcheck
38+
# if: success() || failure()
39+
40+
- name: REUSE lint
41+
run: nix build -L .#checks.x86_64-linux.reuse-lint
42+
if: success() || failure()
43+
44+
build:
45+
runs-on: [self-hosted, nix]
46+
steps:
47+
- uses: actions/checkout@v3
48+
49+
- name: build
50+
run: nix build -L .#checks.x86_64-linux.build-all
51+
52+
test:
53+
runs-on: [self-hosted, nix]
54+
needs: [build]
55+
steps:
56+
- uses: actions/checkout@v3
57+
58+
- name: test
59+
run: nix build -L .#checks.x86_64-linux.test
60+
61+
- name: doctest
62+
run: nix develop .#doctest -c runghc doctest/doctests.hs
63+
if: success() || failure()
64+
65+
deploy:
66+
runs-on: [self-hosted, nix]
67+
needs: [test]
68+
if: ${{ github.ref == 'refs/heads/staging' }}
69+
steps:
70+
- uses: actions/checkout@v3
71+
72+
- name: deploy staging
73+
run: nix develop .#ci -c deploy .#staging --ssh-user deploy --skip-checks

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,7 @@
99
`tzbot` is a Slack bot that detects messages with references to some point in time
1010
and converts them to your timezone.
1111

12-
When a user in the Europe/Riga timezone sends a message such as:
13-
14-
> Hey, can we meet tomorrow at 6pm?
15-
16-
Users will receive an
17-
"ephemeral message" (a message visible only to that user):
18-
19-
![](./docs/imgs/example1.png)
12+
![A screenshot of the bot converting "tomorrow at 6pm"](./docs/imgs/example1.png)
2013

2114
## Features
2215

docs/imgs/example1.png

9.3 KB
Loading

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MPL-2.0
44

55
name: tzbot
6-
version: 0.1.0.0
6+
version: 1.0
77
github: serokell/tzbot
88
license: MPL-2.0
99
license-file: LICENSE

tzbot.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cabal-version: 1.12
55
-- see: https://github.com/sol/hpack
66

77
name: tzbot
8-
version: 0.1.0.0
8+
version: 1.0
99
description: Please see the README on GitHub at <https://github.com/serokell/tzbot#readme>
1010
homepage: https://github.com/serokell/tzbot#readme
1111
bug-reports: https://github.com/serokell/tzbot/issues

0 commit comments

Comments
 (0)