Skip to content

Commit 051e080

Browse files
authored
Merge pull request #27 from nvc8996/master
Telegram and Github accounts can differ; Added 'Unassigned' section; YAML config.
2 parents 79b77c7 + d01ed86 commit 051e080

File tree

8 files changed

+270
-211
lines changed

8 files changed

+270
-211
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
node_modules
2-
.env
2+
config.yml

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
2-
.env
2+
config.yml
33
.idea
44
.DS_Store

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $ git clone https://github.com/codex-team/workflow
1010

1111
## Set Environment Variables
1212

13-
Rename `.env.example` to `.env` and set require env for application.
13+
Rename `config.yml.example` to `config.yml` and set required parameters for application.
1414
Then run with following command.
1515

1616
## Run

.env.example renamed to config.example.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Github Personal Access Token (https://github.com/settings/tokens) with rights:
22
# - "repo - public_repo"
33
# - "admin:org - read:org"
4-
TOKEN=
4+
token:
55

66
# HAWK Catcher TOKEN
7-
HAWK_TOKEN=
7+
hawk_token:
88

99
# Columns Nodes id
1010
# To get these values use any app for sending requests (Insomnia for example) and send the following request
@@ -34,21 +34,29 @@ HAWK_TOKEN=
3434
# }
3535
# }
3636
# }
37-
COLUMN_NODE_ID_TO_DO=
38-
COLUMN_NODE_ID_PR=
37+
column_node_id_to_do:
38+
column_node_id_pr:
3939

4040
# @codex_bot notify URL
4141
# Open https://t.me/codex_bot
4242
# And run /notify command
43-
NOTIFIER_URL=
43+
notifier_url:
4444

45-
# List of people to tag in the «Pull Requests» message
46-
MENTION = "ilyamore88 GeekaN2 robonetphy neSpecc nikmel2803 n0str talyguryn gohabereg khaydarov f0m41h4u7 dependabot"
45+
# Define jobs
46+
# Example: 0 9,18 * * 1-5
47+
# At minute 0 past hour 9 and 18 on every day-of-week from Monday through Friday.
48+
to_do_time: 0 9,18 * * 1-5
49+
pr_time: 0 9,18 * * 1-5
50+
meeting_time: 0 9,18 * * 1-5
4751

48-
# List of people to tag in the «Meeting Message» message
49-
MEETING_MENTION = "specc guryn khaydarovm nikmel2803 gohabereg ilyamore88 GeekaN augustovich n0str f0m41h4u7 robonetphy"
52+
# List of people (Telegram only) to tag in the «Meeting Message» message
53+
meeting_mention:
54+
- nvc_8996
55+
# - n0str
5056

51-
# Define job
52-
TO_DO_TIME="0 9,20 * * 1-5"
53-
PR_TIME="0 9,20 * * 1-5"
54-
MEETING_TIME = "0 21 * * 1-5"
57+
# List of people to tag in the «Pull Requests» message
58+
# Separated Github and Telegram usernames if they differ.
59+
mention:
60+
# - n0str
61+
- tg: nvc_8996
62+
gh: nvc8996

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"@octokit/core": "^3.1.2",
1616
"axios": "^0.19.2",
1717
"cron": "^1.8.2",
18-
"dotenv": "^8.2.0",
1918
"parse-github-url": "^1.0.2"
2019
},
2120
"devDependencies": {

0 commit comments

Comments
 (0)