Skip to content

Commit

Permalink
client: contrihub 23 -> 24
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Patel <[email protected]>
  • Loading branch information
meisabhishekpatel committed Oct 3, 2024
1 parent 9a5d951 commit b2befde
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 29 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,36 @@ name: Django-Automated-Testing

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v3
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -uroot -proot -hlocalhost -P3306 -e "create database contrihub23_db;"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python manage.py test
- name: Running Flake8
run: |
python -m pip install flake8
flake8
- uses: actions/checkout@v3
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -uroot -proot -hlocalhost -P3306 -e "create database contrihub24_db;"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python manage.py test
- name: Running Flake8
run: |
python -m pip install flake8
flake8
2 changes: 1 addition & 1 deletion contrihub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases

DB_NAME = config('DB_NAME', default='contrihub23_db')
DB_NAME = config('DB_NAME', default='contrihub24_db')
DB_USER = config('DB_USER', default='root')
DB_PASSWORD = config('DB_PASSWORD', default='root')
DB_HOST = config('DB_HOST', default='localhost')
Expand Down
10 changes: 5 additions & 5 deletions home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def request_issue_assignment(request, issue_pk):
'url': issue.html_url,
'protocol': request.build_absolute_uri().split('://')[0],
'host': request.get_host() + '/' + decouple.config('BASE_URL', default=''),
'subject': "Request for Issue Assignment under ContriHUB-23.",
'subject': "Request for Issue Assignment under ContriHUB-24.",
'issue': issue,
'action': '',
'receiver': issue.mentor,
Expand Down Expand Up @@ -164,7 +164,7 @@ def accept_issue_request(request, issue_req_pk):
'url': issue.html_url,
'protocol': request.build_absolute_uri().split('://')[0],
'host': request.get_host() + '/' + decouple.config('BASE_URL', default=''),
'subject': "Issue Accepted under ContriHUB-23",
'subject': "Issue Accepted under ContriHUB-24",
'issue': issue,
'action': 'accepted',
'receiver': requester,
Expand Down Expand Up @@ -237,7 +237,7 @@ def submit_pr_request(request, active_issue_pk):
'host': request.get_host() + '/' + decouple.config('BASE_URL', default=''),
'issue': issue,
'action': '',
'subject': "Request for Approval of PR on an issue under ContriHUB-23.",
'subject': "Request for Approval of PR on an issue under ContriHUB-24.",
'receiver': issue.mentor,
}
try:
Expand Down Expand Up @@ -301,7 +301,7 @@ def judge_pr(request, pk):
'host': request.get_host(),
'issue': issue,
'action': 'accepted',
'subject': "PR Accepted under ContriHUB-23.",
'subject': "PR Accepted under ContriHUB-24.",
'receiver': contributor,
}
try:
Expand All @@ -327,7 +327,7 @@ def judge_pr(request, pk):
'host': request.get_host(),
'issue': issue,
'action': 'rejected',
'subject': "PR Rejected under ContriHUB-23.",
'subject': "PR Rejected under ContriHUB-24.",
'receiver': contributor,
}
try:
Expand Down

0 comments on commit b2befde

Please sign in to comment.