Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 28c103b

Browse files
Merge branch 'develop' into bugfix/731-repair-notification-settings
2 parents 56ec38d + ac3b2ee commit 28c103b

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ script:
7373
- sed -i 's/$TRAVIS_COMMIT/'$TRAVIS_COMMIT'/' src/server.ts
7474
- npm run test # run backend test
7575
- cd ..
76+
- .travis/apidoc-check.sh
7677
# run frontend-tests and return back to root for following steps
7778
- cd app/webFrontend
7879
- npm run lint # run linter

.travis/apidoc-check.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# Path to this file
4+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5+
# Path the script was called from
6+
IPWD="$(pwd)"
7+
# Import shared vars
8+
. ${DIR}/_shared-vars.sh
9+
10+
11+
echo
12+
echo "+++ Check API-Doc +++"
13+
echo
14+
15+
if ([ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "develop" ]) || ([ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]); then
16+
echo "+ detected pull request from ($TRAVIS_PULL_REQUEST_BRANCH) to $TRAVIS_BRANCH"
17+
cd api
18+
npm run apidoc
19+
else
20+
echo -e "${YELLOW}+ WARNING: No Pull Request agiainst Develop or Master -> skipping automate api doc check${NC}";
21+
fi

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2222
### Fixed
2323
- Fixed broken notification settings. [#731](https://github.com/h-da/geli/issues/731)
2424

25+
### Fixed
26+
- Fixed broken Apidoc [#737](https://github.com/h-da/geli/issues/737)
27+
2528
## [[0.7.0](https://github.com/h-da/geli/releases/tag/v0.7.0)] - 2018-05-05 - SS 18 intermediate Release
2629
### Added
2730
- Added the possibility to sort all courses alphabetically. [#567](https://github.com/h-da/geli/issues/567)

api/src/controllers/CourseController.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export class CourseController {
482482
* @apiParam {Object} data Data (with access key).
483483
* @apiParam {IUser} currentUser Currently logged in user.
484484
*
485-
* @apiSuccess {{}} result Empty object.
485+
* @apiSuccess {Object} result Empty object.
486486
*
487487
* @apiSuccessExample {json} Success-Response:
488488
* {}
@@ -533,7 +533,7 @@ export class CourseController {
533533
* @apiParam {Object} data Body.
534534
* @apiParam {IUser} currentUser Currently logged in user.
535535
*
536-
* @apiSuccess {{}} result Empty object.
536+
* @apiSuccess {Object} result Empty object.
537537
*
538538
* @apiSuccessExample {json} Success-Response:
539539
* {}
@@ -653,7 +653,7 @@ export class CourseController {
653653
* @apiParam {String} id Course ID.
654654
* @apiParam {IUser} currentUser Currently logged in user.
655655
*
656-
* @apiSuccess {{}} result Empty object.
656+
* @apiSuccess {Object} result Empty object.
657657
*
658658
* @apiSuccessExample {json} Success-Response:
659659
* {}

0 commit comments

Comments
 (0)