Skip to content

Commit

Permalink
Merge pull request #4 from PiedTweet/develop
Browse files Browse the repository at this point in the history
* refactor: reformat middleware

* Create enforcer.yml
  • Loading branch information
nnh53 authored Nov 23, 2023
2 parents d8acb4c + 77047f0 commit 66803aa
Show file tree
Hide file tree
Showing 6 changed files with 458 additions and 447 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/enforcer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Check Branch'

on:
pull_request:

jobs:
check_branch:
runs-on: ubuntu-latest
steps:
- name: Check branch
if: github.base_ref == 'main' && github.head_ref != 'develop'
run: |
echo "ERROR: You can only merge to main from dev."
exit 1
2 changes: 1 addition & 1 deletion .vscode/bookmarks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"path": "src/middlewares/users.middlewares.ts",
"bookmarks": [
{
"line": 243,
"line": 236,
"column": 5,
"label": "decoded_authorization_Type"
}
Expand Down
1 change: 1 addition & 0 deletions src/constants/message.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const USERS_MESSAGES = {
INVALID_PROPERTIES: 'Invalid properties',
UPLOAD_SUCCESS: 'Upload success',
EMAIL_NOT_VERIFIED: 'Email not verified',
CHANGE_PASSWORD_SUCCESS: 'Change password success',
Expand Down
Loading

0 comments on commit 66803aa

Please sign in to comment.