Skip to content

Merge 'development' into 'main' #15

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

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e763ce0
build(requirements.txt): add initial requirements.txt
YazanShannak Jul 30, 2023
5a50078
feat(Nuha): implement Nuha model inference
YazanShannak Jul 30, 2023
93ed42f
feat(main.py): integrate Nuha in the predict endpoint
YazanShannak Jul 30, 2023
bc5fd2a
fix(main.py): login to huggingface hub
YazanShannak Jul 30, 2023
63791cd
build(Dockerfile): write initial Dockerfile
YazanShannak Jul 30, 2023
c091c72
docs(README.md): Update README.md
YazanShannak Jul 30, 2023
32ce490
feat: added original post and comments to the response
mbaraa Aug 7, 2023
1f0de5d
chore: removed unnecessary async from the request handler
mbaraa Aug 7, 2023
353327f
Merge pull request #2 from jordanopensource/feat/map-post-and-comment…
thamudi Aug 7, 2023
f1a1197
perf(requirements.txt): remove CUDA dependencies
YazanShannak Aug 9, 2023
490b839
refactor(src/model.py): remove unnecessary print
YazanShannak Aug 9, 2023
49402fe
build(Dockerfile): Fix some issues in the Dockerfile
YazanShannak Aug 9, 2023
3d72b66
refactor(main.py-src/model.py): Refactor model output and response to…
YazanShannak Aug 9, 2023
957a882
Merge pull request #3 from jordanopensource/fix/reduce-deps
thamudi Aug 9, 2023
8ee9353
Merge pull request #4 from jordanopensource/fix/cleanup-print
thamudi Aug 9, 2023
66ef60c
Merge pull request #5 from jordanopensource/fix/Dockerfile
thamudi Aug 9, 2023
59eebd4
Merge branch 'development' into refactor/model-response
thamudi Aug 9, 2023
1968f9b
Merge pull request #6 from jordanopensource/refactor/model-response
thamudi Aug 9, 2023
5709268
build(requirements.txt): Add extra index for torch-cpu
YazanShannak Aug 9, 2023
ef6cbeb
refactor: optimize docker image from 3G to 1.4G
thamudi Aug 13, 2023
778a977
build: add drone file
thamudi Aug 13, 2023
19d67b1
feat: add healthcheck endpoint
thamudi Aug 13, 2023
2f0776c
update critical dependencies
mbaraa Nov 30, 2023
a62d9e2
update less critical dependencies
mbaraa Nov 30, 2023
4795379
Add Multiclass api capabilities
YazanShannak Jan 21, 2024
781af62
Merge pull request #9 from jordanopensource/feature/multi-class
thamudi Jan 21, 2024
5e872e8
ci(.drone.yml): use the container jsonnet template
itsmohmans Sep 2, 2024
0947688
Merge pull request #12 from jordanopensource/ci/update-drone-template
itsmohmans Sep 3, 2024
e251f65
Add GitHub Actions workflow to schedule milestones weekly (#14)
thamudi Mar 9, 2025
fcce9c9
Merge branch 'main' into development
thegbk May 11, 2025
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
36 changes: 6 additions & 30 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,8 @@
# Drone CI File!

kind: pipeline
type: kubernetes
name: default

metadata:
namespace: builds

node_selector:
doks.digitalocean.com/node-pool: josa-cloud-np

steps:
- name: build
image: plugins/docker
settings:
repo: josaorg/nuha-api
tags:
- ${DRONE_COMMIT_SHA}
- latest
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: notify
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
channel: heartbeat
depends_on:
- build
kind: template
load: container.jsonnet
data:
repositoryName: josaorg/nuha-api
releaseName: nuha-api
buildArgs:
24 changes: 24 additions & 0 deletions .github/workflows/schedule-milestones.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: schedule-milestones

on:
schedule:
- cron: 0 0 * * SUN # Run every Sunday at midnight

jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Schedule Milestones
uses: readmeio/[email protected]
id: scheduled
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: 'S-'
days: Thursday
count: 4
format: YYYY-MM-DD

- name: Created Milestones
run: echo ${{ steps.scheduled.outputs.milestones }}
Comment on lines +9 to +24

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI about 1 month ago

To fix the issue, we need to add a permissions block to the workflow. Since the workflow uses the GITHUB_TOKEN to create milestones, it requires contents: read (to read repository contents) and issues: write (to create milestones). These permissions should be explicitly defined at the job level to ensure the workflow has only the necessary access.

The permissions block will be added under the generate job, specifying contents: read and issues: write.


Suggested changeset 1
.github/workflows/schedule-milestones.yaml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/schedule-milestones.yaml b/.github/workflows/schedule-milestones.yaml
--- a/.github/workflows/schedule-milestones.yaml
+++ b/.github/workflows/schedule-milestones.yaml
@@ -8,2 +8,5 @@
   generate:
+    permissions:
+      contents: read
+      issues: write
     runs-on: ubuntu-latest
EOF
@@ -8,2 +8,5 @@
generate:
permissions:
contents: read
issues: write
runs-on: ubuntu-latest
Copilot is powered by AI and may make mistakes. Always verify output.