-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create pr-to-prod.yml (#346) * remove deploy rule (#349) * remove deploy rule * Update build-and-push-docker-image.yml * Update build-and-push-docker-image.yml * unblock wksp on plan changing (#352) * Email notifications with priority (#339) * Email notifications with priority * Fix linter errors * Remove sign-up email from templates * Renamed default priority * Added password-reset and workspace-invite emails (#356) * improvement(repetitions): title and type added to Repetition payload (#358) * [Feature] New integration token format (#357) * upgrade hawk.types * create project with new integration token format * add resolver for regenerating token * refactor generating token * fix import * refactor type of returned object * Update projectsFactory.ts * Update project.ts * refactor generating integration id * Update projectsFactory.ts * generate integration id if not any (#360) * Fix catcher problems * Event repetitions pagination (#363) * feat: Event repetitions load * Fix lint * Fix lint * Add seed resolver for e2e env (#366) * Add seed resolver for e2e env * Add workspace model back * Fix lint * [Feature] Date from objectid (#370) * add function for getting timestamp from object id * return date from function, add resolver for project * add resolvers for user and workspace to * add test * Send commits on build (#367) * send commits on build * add name to release id * Bump version up to 1.0.1 * remove commits.sh * update workflow * Update build-and-push-docker-image.yml * Update package.json * test * remove log Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Bump tmpl from 1.0.4 to 1.0.5 (#374) Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. - [Release notes](https://github.com/daaku/nodejs-tmpl/releases) - [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5) --- updated-dependencies: - dependency-name: tmpl dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump object-path from 0.11.5 to 0.11.8 (#373) Bumps [object-path](https://github.com/mariocasciaro/object-path) from 0.11.5 to 0.11.8. - [Release notes](https://github.com/mariocasciaro/object-path/releases) - [Commits](https://github.com/mariocasciaro/object-path/commits) --- updated-dependencies: - dependency-name: object-path dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Taly <vitalik7tv@yandex.ru> * Bump axios from 0.21.1 to 0.21.2 (#372) * Bump axios from 0.21.1 to 0.21.2 Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md) - [Commits](axios/axios@v0.21.1...v0.21.2) --- updated-dependencies: - dependency-name: axios dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Bump version up to 1.0.4 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Taly <vitalik7tv@yandex.ru> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Bump passport-oauth2 from 1.5.0 to 1.6.1 (#375) Bumps [passport-oauth2](https://github.com/jaredhanson/passport-oauth2) from 1.5.0 to 1.6.1. - [Release notes](https://github.com/jaredhanson/passport-oauth2/releases) - [Changelog](https://github.com/jaredhanson/passport-oauth2/blob/master/CHANGELOG.md) - [Commits](jaredhanson/passport-oauth2@v1.5.0...v1.6.1) --- updated-dependencies: - dependency-name: passport-oauth2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix workspace editing (#376) * fix Validator importing * remove JWT_SECRET_PROJECT_TOKEN from .env.sample * Bump version up to 1.0.5 Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Update user.ts Co-authored-by: Taly <vitalik7tv@yandex.ru> Co-authored-by: Mikhail Popov <geekan@bk.ru> Co-authored-by: Peter Savchenko <specc.dev@gmail.com> Co-authored-by: Ilya Moroz <37909603+ilyamore88@users.noreply.github.com> Co-authored-by: Nikita Melnikov <nikmel2803@gmail.com> Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com> Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
7bf7270
commit dd5d2e4
Showing
15 changed files
with
199 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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,61 @@ | ||
name: Bump version in PR | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
# If pull request was merged then we should check for a package version update | ||
check-version-update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout to target branch | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Get package new version name | ||
- name: Get package info | ||
id: packageNew | ||
uses: codex-team/action-nodejs-package-info@v1 | ||
|
||
# Checkout to the base commit before merge | ||
- name: Checkout to the base commit before merge | ||
run: git checkout ${{ github.event.pull_request.base.sha }} | ||
|
||
# Get package old version name | ||
- name: Get package info | ||
id: packageOld | ||
uses: codex-team/action-nodejs-package-info@v1 | ||
|
||
# Stop workflow and do not bump version if it was changed already | ||
- name: Stop workflow and do not bump version if it was changed already | ||
uses: andymckay/cancel-action@0.2 | ||
if: steps.packageOld.outputs.version != steps.packageNew.outputs.version | ||
|
||
bump-version: | ||
needs: check-version-update | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout to target branch | ||
- uses: actions/checkout@v2 | ||
|
||
# Setup node environment | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
# Bump version to the next prerelease (patch) with rc suffix | ||
- name: Suggest the new version | ||
run: yarn version --patch --no-git-tag-version | ||
|
||
# Get package new version name | ||
- name: Get package info | ||
id: package | ||
uses: codex-team/action-nodejs-package-info@v1 | ||
|
||
# Commit version upgrade | ||
- uses: EndBug/add-and-commit@v7 | ||
with: | ||
author_name: github-actions | ||
author_email: 41898282+github-actions[bot]@users.noreply.github.com | ||
message: "Bump version up to ${{ steps.package.outputs.version }}" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,22 @@ | ||
import { ObjectId } from 'mongodb'; | ||
import { dateFromObjectId } from '../../src/utils/dates'; | ||
|
||
describe('dateFromObjectId', () => { | ||
it('should return correct Date object from Object ID', () => { | ||
/** | ||
* Arrange | ||
*/ | ||
const objectId = new ObjectId('612102b24b7a2b00231131b6'); | ||
const expectedDate = new Date('2021-08-21T13:42:10.000Z'); | ||
|
||
/** | ||
* Act | ||
*/ | ||
const parsedDate = dateFromObjectId(objectId); | ||
|
||
/** | ||
* Assert | ||
*/ | ||
expect(parsedDate).toStrictEqual(expectedDate); | ||
}); | ||
}); |
This file contains 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
Oops, something went wrong.