-
Notifications
You must be signed in to change notification settings - Fork 0
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
thegbk
wants to merge
30
commits into
main
Choose a base branch
from
development
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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 5a50078
feat(Nuha): implement Nuha model inference
YazanShannak 93ed42f
feat(main.py): integrate Nuha in the predict endpoint
YazanShannak bc5fd2a
fix(main.py): login to huggingface hub
YazanShannak 63791cd
build(Dockerfile): write initial Dockerfile
YazanShannak c091c72
docs(README.md): Update README.md
YazanShannak 32ce490
feat: added original post and comments to the response
mbaraa 1f0de5d
chore: removed unnecessary async from the request handler
mbaraa 353327f
Merge pull request #2 from jordanopensource/feat/map-post-and-comment…
thamudi f1a1197
perf(requirements.txt): remove CUDA dependencies
YazanShannak 490b839
refactor(src/model.py): remove unnecessary print
YazanShannak 49402fe
build(Dockerfile): Fix some issues in the Dockerfile
YazanShannak 3d72b66
refactor(main.py-src/model.py): Refactor model output and response to…
YazanShannak 957a882
Merge pull request #3 from jordanopensource/fix/reduce-deps
thamudi 8ee9353
Merge pull request #4 from jordanopensource/fix/cleanup-print
thamudi 66ef60c
Merge pull request #5 from jordanopensource/fix/Dockerfile
thamudi 59eebd4
Merge branch 'development' into refactor/model-response
thamudi 1968f9b
Merge pull request #6 from jordanopensource/refactor/model-response
thamudi 5709268
build(requirements.txt): Add extra index for torch-cpu
YazanShannak ef6cbeb
refactor: optimize docker image from 3G to 1.4G
thamudi 778a977
build: add drone file
thamudi 19d67b1
feat: add healthcheck endpoint
thamudi 2f0776c
update critical dependencies
mbaraa a62d9e2
update less critical dependencies
mbaraa 4795379
Add Multiclass api capabilities
YazanShannak 781af62
Merge pull request #9 from jordanopensource/feature/multi-class
thamudi 5e872e8
ci(.drone.yml): use the container jsonnet template
itsmohmans 0947688
Merge pull request #12 from jordanopensource/ci/update-drone-template
itsmohmans e251f65
Add GitHub Actions workflow to schedule milestones weekly (#14)
thamudi fcce9c9
Merge branch 'main' into development
thegbk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
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 theGITHUB_TOKEN
to create milestones, it requirescontents: read
(to read repository contents) andissues: 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 thegenerate
job, specifyingcontents: read
andissues: write
.