Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: reformat middleware & create enforcer.yml #4

Merged
merged 8 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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