Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
353 commits
Select commit Hold shift + click to select a range
f3f8747
Merge pull request #1999 from doccano/enhancement/handleJSONDecodeError
Hironsan Sep 14, 2022
1e3b7cd
Change base image tag to nightly in Dockerfile.heroku
Hironsan Sep 14, 2022
b899228
Describe development workflow, resolve #1928
Hironsan Sep 15, 2022
b8a6e54
Merge pull request #2000 from doccano/enhancement/Contributing
Hironsan Sep 15, 2022
52c1a9c
fix typo
bsenst Sep 15, 2022
8c16d84
Merge pull request #2001 from bsenst/patch-1
Hironsan Sep 16, 2022
a5f865c
Add logging config to production.py
Hironsan Sep 16, 2022
75a688f
Change CLI's loglevel from debug to info
Hironsan Sep 16, 2022
c298069
Update script to capture stdout/stderr
Hironsan Sep 16, 2022
01e818b
Merge pull request #2003 from doccano/enhancement/settingLogging
Hironsan Sep 16, 2022
b97050b
Update yarn install line
Hironsan Sep 16, 2022
889b452
Merge pull request #2004 from doccano/fix/timeoutOnBuildingImages
Hironsan Sep 16, 2022
3810f97
Bump vuetify from 2.6.4 to 2.6.10 in /frontend
dependabot[bot] Sep 21, 2022
de3678e
Add score field to Example model
Hironsan Oct 21, 2022
3f0e2c2
Enable to order examples by score
Hironsan Oct 21, 2022
15928aa
Enable to order examples by score in frontend
Hironsan Oct 21, 2022
4a8295b
Merge pull request #2009 from doccano/dependabot/npm_and_yarn/fronten…
Hironsan Oct 24, 2022
5536a63
Bump django from 4.0.7 to 4.0.8 in /backend
dependabot[bot] Oct 24, 2022
22fc0a9
Merge pull request #2026 from doccano/dependabot/pip/backend/django-4…
Hironsan Oct 24, 2022
9086e88
Update python packages
Hironsan Oct 24, 2022
54904fa
Merge pull request #2027 from doccano/enhancement/update-packages
Hironsan Oct 24, 2022
28c6831
Merge pull request #2028 from doccano/enhancement/order-by-score
Hironsan Oct 24, 2022
6e51b0c
Add button for ordering
Hironsan Oct 24, 2022
3930e89
Add user creation api
Hironsan Oct 26, 2022
5b01c33
Merge pull request #2031 from doccano/feature/user-creation
Hironsan Oct 28, 2022
f73d7d3
Fix #1881
Hironsan Nov 16, 2022
c502218
Merge pull request #2053 from doccano/fix/1881
Hironsan Nov 16, 2022
0d81dd5
Enable to expand/collapse label types card
Hironsan Nov 16, 2022
3eb33f9
Merge pull request #2054 from doccano/enhancement/enable-to-expand-la…
Hironsan Nov 16, 2022
2614080
Trigger auto labeling automatically, fix #1426
Hironsan Nov 17, 2022
c27ce71
Merge pull request #2056 from doccano/enhancement/1426
Hironsan Nov 17, 2022
567ec86
Remove pageLink from project model
Hironsan Nov 18, 2022
0aa24a8
Remove unused properties from Project model
Hironsan Nov 22, 2022
ae6f8aa
Add page class and remove ProjectItemList class
Hironsan Nov 22, 2022
2327248
Remove ProjectWriteItem
Hironsan Nov 22, 2022
973fb90
Rename ProjectReadItem to Project
Hironsan Nov 22, 2022
1a09d13
Rename project fields
Hironsan Nov 22, 2022
3610d3d
Add project field components
Hironsan Nov 24, 2022
d315fee
Remove form create component
Hironsan Nov 24, 2022
a6ccae5
Remove project DTOs
Hironsan Nov 24, 2022
8755aaf
Remove interface for project repository
Hironsan Nov 24, 2022
1bb48fd
Validate project name field
Hironsan Nov 25, 2022
3412956
Validate description field
Hironsan Nov 25, 2022
a29f721
Change date format from dd/mm/yy to yy/mm/dd
Hironsan Nov 25, 2022
8b6c3aa
Simplify rule names
Hironsan Nov 25, 2022
28fef91
Change validators name
Hironsan Nov 25, 2022
bc496b8
Update version
Hironsan Nov 28, 2022
c337e4a
Fix installation issue
Hironsan Nov 29, 2022
2c9e681
Merge pull request #2068 from doccano/fix/installation
Hironsan Nov 29, 2022
706edd8
okta login feature
Clovin Dec 1, 2022
170f0a1
Enable to set CSRF_TRUSTED_ORIGINS in debug mode
Hironsan Dec 2, 2022
272103e
fix prettier issue
Clovin Dec 2, 2022
969ee82
fix env issue
Clovin Dec 2, 2022
1185ce5
fix lint issue
Clovin Dec 2, 2022
46afe80
fix lint issue
Clovin Dec 2, 2022
1071f13
fix lint issue
Clovin Dec 2, 2022
d1eb667
fix lint issue
Clovin Dec 2, 2022
441a8b5
fix lint issue
Clovin Dec 2, 2022
494aef7
Describe how to handle CSRF failed
Hironsan Dec 2, 2022
57e3187
Merge pull request #2077 from doccano/enhancement/csrf-trusted-origins
Hironsan Dec 2, 2022
313cd89
Enable to use shortcut keys for classification
Hironsan Dec 5, 2022
d6f304b
add i18n
Clovin Dec 6, 2022
3b79a67
Merge pull request #2083 from doccano/fix/1850
Hironsan Dec 6, 2022
cb70890
Update cli
Hironsan Dec 8, 2022
9c9af28
Merge pull request #2089 from doccano/fix/run-task
Hironsan Dec 8, 2022
0ea0400
Update version
Hironsan Dec 8, 2022
a2918f7
Merge pull request #2079 from botisan-ai/okta-login
Hironsan Dec 9, 2022
fd43dc7
Add SharingModeField component
Hironsan Dec 9, 2022
1c738db
Add RandomOrderField component
Hironsan Dec 9, 2022
4440826
Add TagList component
Hironsan Dec 9, 2022
f7a12a9
Simplify FormUpdate component
Hironsan Dec 10, 2022
1cb34dd
Replace field type from object to TagItem
Hironsan Dec 12, 2022
4ec9192
Update TagDTO
Hironsan Dec 12, 2022
4a33e90
Rename Options to ProjectFields
Hironsan Dec 12, 2022
7c447ad
Merge pull request #2093 from doccano/enhancement/project
Hironsan Dec 12, 2022
0daad7e
Add error handling to social login
Hironsan Dec 12, 2022
4788388
Merge pull request #2094 from doccano/fix/social-login
Hironsan Dec 12, 2022
fdbdf26
Replace fileUrl with url
Hironsan Dec 12, 2022
a402a54
Describe how to change port number
Hironsan Dec 12, 2022
eafac8f
Add /media to proxy
Hironsan Dec 13, 2022
2ce7f13
Merge pull request #2096 from doccano/fix/2033
Hironsan Dec 13, 2022
0375779
Avoid to read env file if it is not a file
Hironsan Dec 14, 2022
700f08f
Merge pull request #2097 from doccano/enhancement/cli
Hironsan Dec 14, 2022
875c1fa
Update the way to import relational dataset
Hironsan Dec 15, 2022
32319fe
Merge pull request #2099 from doccano/fix/2039
Hironsan Dec 16, 2022
4068439
improve Chinese support
SuperMaskv Dec 20, 2022
598b6ef
reformat links.js
SuperMaskv Dec 20, 2022
28d069c
Apply linter
Hironsan Dec 21, 2022
9b546a7
Merge pull request #2100 from SuperMaskv/master
Hironsan Dec 21, 2022
12c16bc
Update postgres addon in app.json
Hironsan Jan 13, 2023
1055139
Merge pull request #2112 from doccano/fix/2110
Hironsan Jan 13, 2023
74b1190
Bump http-cache-semantics from 4.1.0 to 4.1.1 in /frontend
dependabot[bot] Feb 4, 2023
34bbf26
Fix test codes
Hironsan Feb 15, 2023
8f80f78
Add psycopg2-binary to extra dependency
Hironsan Feb 15, 2023
91d0c5b
Update packages
Hironsan Feb 16, 2023
1b5630c
Merge pull request #2132 from doccano/enhancement/packages
Hironsan Feb 16, 2023
c66eef0
Add SITE_ID to base.py
Hironsan Feb 22, 2023
4108d57
Merge pull request #2134 from doccano/fix/access-to-admin-page
Hironsan Feb 22, 2023
6d894a4
Upgrade frontend dependencies
Hironsan Feb 22, 2023
7752659
Merge pull request #2135 from doccano/enhancement/upgrade-frontend-pa…
Hironsan Feb 22, 2023
5c9bd0c
Bump terser from 4.8.0 to 4.8.1 in /frontend
dependabot[bot] Feb 22, 2023
a2ce55a
Merge pull request #1913 from doccano/dependabot/npm_and_yarn/fronten…
Hironsan Feb 22, 2023
ee51e2c
Merge pull request #1896 from doccano/dependabot/npm_and_yarn/fronten…
Hironsan Feb 22, 2023
56d4a5d
Merge pull request #2126 from doccano/dependabot/npm_and_yarn/fronten…
Hironsan Feb 22, 2023
e4c7cf2
Remove user application service
Hironsan Feb 23, 2023
f569f34
Merge pull request #2136 from doccano/enhancement/frontend-user
Hironsan Feb 23, 2023
488fe8c
Remove auth application service
Hironsan Feb 23, 2023
ada3f19
Merge pull request #2138 from doccano/enhancement/frontend-auth
Hironsan Feb 23, 2023
f16833d
Remove role application service
Hironsan Feb 24, 2023
aeb0f9a
Merge pull request #2140 from doccano/enhancement/frontend-role
Hironsan Feb 24, 2023
7fc5a58
Set default role name
Hironsan Feb 27, 2023
e01f478
Merge pull request #2142 from doccano/fix/member-creation-form
Hironsan Feb 27, 2023
6f1c0ee
Remove metrics application service
Hironsan Feb 28, 2023
50eb1eb
Merge pull request #2143 from doccano/enhancement/frontend-metrics-se…
Hironsan Feb 28, 2023
2620468
Remove template application service
Hironsan Feb 28, 2023
ff436b0
Remove task status application service
Hironsan Feb 28, 2023
aa41209
Remove catalog application service
Hironsan Feb 28, 2023
1f37910
Remove parse application service
Hironsan Feb 28, 2023
152a924
Remove download format application service
Hironsan Feb 28, 2023
1927c02
Remove download application service
Hironsan Feb 28, 2023
7203691
Merge pull request #2144 from doccano/frontend/remove-application-ser…
Hironsan Feb 28, 2023
7a08ec0
Update install_and_upgrade_doccano.md
armandfardeau Feb 28, 2023
03f0d3f
Merge pull request #2145 from armandfardeau/patch-1
Hironsan Feb 28, 2023
aaff695
Remove CommentItemList
Hironsan Mar 1, 2023
975e97a
Remove comment application service
Hironsan Mar 1, 2023
27473ea
Merge pull request #2146 from doccano/enhancement/frontend-comment
Hironsan Mar 1, 2023
7d92be1
Remove member application service
Hironsan Mar 1, 2023
62b5600
Merge pull request #2147 from doccano/enhancement/frontend-member
Hironsan Mar 1, 2023
cac9dbe
Remove config application service
Hironsan Mar 2, 2023
ad2ff23
Merge pull request #2148 from doccano/enhancement/frontend-config
Hironsan Mar 2, 2023
9c778a4
Remove unused tag dto
Hironsan Mar 2, 2023
dced4c9
Merge pull request #2149 from doccano/enhancement/frontend-tag
Hironsan Mar 2, 2023
18e29eb
Add create method to Category
Hironsan Mar 3, 2023
9c12731
Use category repository in image classification page
Hironsan Mar 3, 2023
a89eb1b
Use category repository in intent classification page
Hironsan Mar 3, 2023
203d2e9
Use repository in text classification page
Hironsan Mar 3, 2023
f217d17
Remove text classification application service
Hironsan Mar 3, 2023
e0eb6b6
Merge pull request #2151 from doccano/enhancement/frontend-annotation…
Hironsan Mar 3, 2023
cceaf1a
Add example number to comment list
AaRaBiNoZa Mar 3, 2023
7ff9a93
Merge pull request #2152 from AaRaBiNoZa/feature-for-issue-1883
Hironsan Mar 6, 2023
e9f4ce2
Remove seq2seq service from seq2seq page
Hironsan Mar 6, 2023
7edbb93
Remove seq2seq service from speech to text page
Hironsan Mar 6, 2023
803a3b9
Remove seq2seq service from image captioning page
Hironsan Mar 6, 2023
cc96a35
Remove seq2seq application service
Hironsan Mar 6, 2023
e264b4c
Add useTextLabel
Hironsan Mar 14, 2023
7f4a038
Use useExampleItem in caption page
Hironsan Mar 16, 2023
bb0f741
Use useProjectItem in caption page
Hironsan Mar 16, 2023
07eccdb
Bump django from 4.1.7 to 4.1.9 in /backend
dependabot[bot] May 9, 2023
cbe05d3
Apply linter
Hironsan May 31, 2023
43502ba
Use composition API in sequence to sequence page
Hironsan May 31, 2023
4945903
Use composition API in speech to text page
Hironsan May 31, 2023
e511ac6
Merge pull request #2197 from doccano/enhancement/frontend-seq2seq
Hironsan May 31, 2023
19431bc
Merge pull request #2183 from doccano/dependabot/pip/backend/django-4…
Hironsan Jun 1, 2023
3b3ca38
Bump tornado from 6.2 to 6.3.2 in /backend
dependabot[bot] Jun 1, 2023
f2d793e
Merge pull request #2194 from doccano/dependabot/pip/backend/tornado-…
Hironsan Jun 1, 2023
80d3fd2
Bump requests from 2.27.1 to 2.31.0 in /backend
dependabot[bot] Jun 1, 2023
a435ed7
Merge pull request #2192 from doccano/dependabot/pip/backend/requests…
Hironsan Jun 1, 2023
25d1ffe
Bump sqlparse from 0.4.2 to 0.4.4 in /backend
dependabot[bot] Jun 1, 2023
9879a64
Merge pull request #2178 from doccano/dependabot/pip/backend/sqlparse…
Hironsan Jun 1, 2023
e8a726d
Add text edit page
Hironsan Jun 1, 2023
84d0532
Add link to go to the edit page
Hironsan Jun 1, 2023
0dd8595
Merge pull request #2198 from doccano/feature/edit-text
Hironsan Jun 1, 2023
6e45f69
Add fields to project model
Hironsan Jun 1, 2023
d4c013c
Merge pull request #2199 from doccano/enhancement/add-fields-to-project
Hironsan Jun 1, 2023
0c0e352
Upgrade nuxt version
Hironsan Jun 2, 2023
5261fa9
Merge pull request #2200 from doccano/enhancement/upgrade-packages
Hironsan Jun 2, 2023
3f40c2a
Enable to sort comments by example
Hironsan Jun 2, 2023
f3e8c92
Merge pull request #2201 from doccano/enhancement/1883
Hironsan Jun 2, 2023
09c6fe1
Support project clone in backend
Hironsan Jun 5, 2023
a0240c2
Support project clone in frontend
Hironsan Jun 6, 2023
584605b
Merge pull request #2204 from doccano/enhancement/clone-project
Hironsan Jun 6, 2023
1ba6631
Add ProjectType as a enumeration type
Hironsan Jun 7, 2023
0b12c4c
Merge pull request #2205 from doccano/refactoring/project-type
Hironsan Jun 7, 2023
25e58c4
Allow project member to create label types
Hironsan Jun 7, 2023
a603c41
Add middlewares
Hironsan Jun 8, 2023
85c5aa8
Allow member to create label types
Hironsan Jun 8, 2023
c05733d
Deny member to delete label types when allow_member_to_create_label_t…
Hironsan Jun 8, 2023
d5ee4bf
Merge pull request #2207 from doccano/enhancement/1804
Hironsan Jun 8, 2023
c219ce9
Move middleware from layout to page
Hironsan Jun 8, 2023
1b10516
Merge pull request #2208 from doccano/fix/middleware
Hironsan Jun 8, 2023
0c6aeca
Remove fetching projects
Hironsan Jun 9, 2023
1c81e73
Merge pull request #2209 from doccano/enhancement/reduce-duplicate-fetch
Hironsan Jun 9, 2023
910bb17
Fix typo
Hironsan Jun 11, 2023
ce9fa66
Merge pull request #2213 from doccano/fix/2212
Hironsan Jun 11, 2023
5605f80
Fix image URL handling for S3 compatibility
iwsh Jun 12, 2023
1162e57
Enable support for S3 compatible storage providers
iwsh Jun 12, 2023
9625dee
Edit doccano docs
Jun 13, 2023
05e12f8
Merge pull request #2214 from iwsh/update-for-using-cloudstorage
Hironsan Jun 13, 2023
03eadfa
Fix project store to use Project model
Hironsan Jun 13, 2023
a6df48b
Merge pull request #2216 from sblotner/doccano-doc-edits
Hironsan Jun 13, 2023
8203faa
Merge pull request #2217 from doccano/fix/project-store
Hironsan Jun 13, 2023
2583f83
Fix appearance of lists in doccano docs
Jun 13, 2023
67b356d
Merge pull request #2218 from sblotner/fix-doc-format
Hironsan Jun 14, 2023
5f0449d
Update ExampleFilter to filter by label name
Hironsan Jun 28, 2023
f61c6e1
Enable to filter by label name
Hironsan Jun 29, 2023
f7c5509
Merge pull request #2228 from doccano/enhancement/label-filter
Hironsan Jun 29, 2023
969a537
Bump django from 4.1.9 to 4.1.10 in /backend
dependabot[bot] Jul 6, 2023
76673b4
Bump tough-cookie from 4.1.2 to 4.1.3 in /frontend
dependabot[bot] Jul 10, 2023
a3c1a3c
Bump semver from 5.7.1 to 5.7.2 in /frontend
dependabot[bot] Jul 11, 2023
adba3ce
Merge pull request #2233 from doccano/dependabot/pip/backend/django-4…
Hironsan Jul 11, 2023
9625593
Merge pull request #2235 from doccano/dependabot/npm_and_yarn/fronten…
Hironsan Jul 11, 2023
c0093f0
Merge pull request #2234 from doccano/dependabot/npm_and_yarn/fronten…
Hironsan Jul 11, 2023
3c6eedb
Update pydantic version
Hironsan Jul 20, 2023
67e9caf
Fix TypeError on running webserver
Hironsan Jul 20, 2023
a82ed72
Merge pull request #2246 from doccano/fix/pydantic
Hironsan Jul 20, 2023
0fc8b2e
Update version
Hironsan Jul 20, 2023
f935fd1
Update node version
Hironsan Jul 20, 2023
6d2a41d
Add assignment model
Hironsan Jul 24, 2023
dab945b
Add endpoints for assignment
Hironsan Jul 24, 2023
b4c72af
Add weighted random strategy
Hironsan Jul 26, 2023
e104cd3
Add sampling without replacement strategy
Hironsan Jul 26, 2023
dca2af2
Add weighted sequential strategy
Hironsan Jul 27, 2023
6ef85df
Add reset assignment endpoint
Hironsan Jul 27, 2023
82e7289
Add bulk assignment API
Hironsan Jul 27, 2023
500cd85
Add test cases for assignment API
Hironsan Jul 28, 2023
4d5b185
Extract bulk_assign function
Hironsan Jul 31, 2023
2dfc270
Change bulk_assign to assign only unassigned examples
Hironsan Jul 31, 2023
1f168b7
Add test cases for bulk_assign
Hironsan Jul 31, 2023
de9ebe6
Make ExampleList return only assigned examples
Hironsan Aug 1, 2023
7bf1405
Return all examples to project admin
Hironsan Aug 3, 2023
4d78036
Fix example list view
Hironsan Aug 4, 2023
927ede4
Add assignment UI
Hironsan Aug 6, 2023
01ee590
Enable to bulk assign in frontend
Hironsan Aug 8, 2023
277ee7b
Enable to reset assignment
Hironsan Aug 8, 2023
ad84c02
Fix weighted sequential strategy
Hironsan Aug 8, 2023
d71743c
Make bulk assign await
Hironsan Aug 8, 2023
41a2543
Simplify weighted sequential strategy
Hironsan Aug 8, 2023
7dc58a5
Integrate random order to example list api
Hironsan Aug 9, 2023
4002be2
Improve bulk assign performance
Hironsan Aug 9, 2023
d46990e
Show overlay while waiting bulk assignment
Hironsan Aug 9, 2023
80b9c81
Make unassign example easier
Hironsan Aug 9, 2023
6387097
Merge pull request #2261 from doccano/enhancement/assignment
Hironsan Aug 10, 2023
4f12dfb
Comment: Updated an incorrectly implemented method.
munahaf Sep 6, 2023
4246bbe
fix: make GOOGLE_APPLICATION_CREDENTIALS optional
asfaltboy Oct 21, 2023
d8a5e78
Upgrade vue-filter-date-parse to fix build error
Hironsan Mar 6, 2024
3dd427e
Update poetry.lock
Hironsan Mar 6, 2024
4ac18ed
Merge pull request #2330 from doccano/fix/upgrade-package-version
Hironsan Mar 6, 2024
da75fc3
feature: filter examples by assignee
synweap15 Jul 28, 2024
1e2a400
Merge pull request #2295 from asfaltboy/ps/make-app-creds-optional
Hironsan Aug 24, 2024
decd404
Update frontend dependencies
Hironsan Aug 25, 2024
8c7e526
Update node version and apply lint
Hironsan Aug 25, 2024
79ddf7b
Update backend dependencies
Hironsan Aug 25, 2024
673a31d
Merge pull request #2379 from doccano/fix/update-dependencies
Hironsan Aug 25, 2024
e352d92
Update node image version
Hironsan Aug 25, 2024
caf9620
Merge pull request #2380 from doccano/fix/node-image-version
Hironsan Aug 25, 2024
8ce9037
chore: prettier
synweap15 Aug 26, 2024
72a4339
Merge pull request #2280 from munahaf/Improper_Method_Call-4label.py4…
Hironsan Aug 27, 2024
a485e32
Merge pull request #2371 from synweap15/feature/filter-by-assignee
Hironsan Aug 27, 2024
6f4da27
docs: add Docker quickstart guide
iatharvmore Jun 16, 2025
23d23c3
Merge pull request #2437 from iatharvmore/docs/pip-quickstart
Hironsan Jun 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
run:
working-directory: ./backend
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
Expand Down Expand Up @@ -45,10 +45,10 @@ jobs:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: '18'
- name: Install Yarn
run: npm install -g yarn
- name: Install npm modules
Expand All @@ -65,6 +65,6 @@ jobs:
run:
working-directory: ./docker
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: hadolint
run: hadolint ./Dockerfile*
68 changes: 34 additions & 34 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"
name: 'CodeQL'

on:
push:
Expand All @@ -29,43 +29,43 @@ jobs:
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
2 changes: 1 addition & 1 deletion .github/workflows/mkdocs-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@1.16
env:
Expand Down
57 changes: 37 additions & 20 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,65 @@ on:
schedule:
- cron: '0 10 * * *' # everyday at 10am
push:
branches:
- master
tags:
- 'v*.*.*'

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Docker meta
- name: Checkout
uses: actions/checkout@v4

- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: doccano/doccano
tag-sha: true
tag-semver: |
{{version}}
{{major}}.{{minor}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
file: ./docker/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}

- name: Build a backend image and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
file: ./docker/Dockerfile.prod
push: ${{ github.event_name != 'pull_request' }}
tags: doccano/doccano:backend
labels: ${{ steps.docker_meta.outputs.labels }}

- name: Build a frontend image and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
file: ./docker/Dockerfile.nginx
push: ${{ github.event_name != 'pull_request' }}
tags: doccano/doccano:frontend
labels: ${{ steps.docker_meta.outputs.labels }}
84 changes: 42 additions & 42 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,45 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Preparation
run: |
mkdir backend/client
- name: Fix up git URLs
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Build with Node.js
run: |
yarn install
yarn build
cp -r dist ../backend/client/
working-directory: ./frontend
env:
PUBLIC_PATH: "/static/_nuxt/"
- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry poetry-dynamic-versioning
poetry install
working-directory: ./backend
- name: collectstatic
run: |
poetry run task collectstatic
working-directory: ./backend
- name: Build a binary wheel and a source tarball
run: |
sed -e "s/, from = \"..\"//g" backend/pyproject.toml > pyproject.toml
poetry build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: ./dist/
- uses: actions/checkout@v4
- name: Preparation
run: |
mkdir backend/client
- name: Fix up git URLs
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Build with Node.js
run: |
yarn install
yarn build
cp -r dist ../backend/client/
working-directory: ./frontend
env:
PUBLIC_PATH: '/static/_nuxt/'
- name: Setup Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry poetry-dynamic-versioning
poetry install
working-directory: ./backend
- name: collectstatic
run: |
poetry run task collectstatic
working-directory: ./backend
- name: Build a binary wheel and a source tarball
run: |
sed -e "s/, from = \"..\"//g" backend/pyproject.toml > pyproject.toml
poetry build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: ./dist/
32 changes: 32 additions & 0 deletions .github/workflows/test-installation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test installation and doccano commands

on:
schedule:
- cron: '15 22 * * *'

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10']
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Enabling JSON1 extension on SQLite
if: ${{ startsWith(matrix.os, 'windows') && matrix.python-version == '3.8' }}
shell: bash
run: |
export VERSION=`python -V | cut -f2 -d " "`
curl -LO https://www.sqlite.org/2022/sqlite-dll-win64-x64-3390300.zip
unzip sqlite-dll-win64-x64-3390300.zip
mv sqlite3.dll /c/hostedtoolcache/windows/Python/$VERSION/x64/DLLs/
- name: Test installation
run: pip install doccano
- name: Test doccano init command
run: doccano init
- name: Test doccano createuser command
run: doccano createuser --username admin --password pass
Loading