forked from dropbox/zxcvbn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add translations and ci pipeline
- Loading branch information
Showing
10 changed files
with
16,440 additions
and
31 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @Gympass/new-ventures-leads @Gympass/nv-italkeis |
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,49 @@ | ||
<!-- | ||
The PR title should be: | ||
[JIRA_TASK] <The PR title> | ||
E.g.: "[WEB-123] Creating a new pull request" | ||
--> | ||
|
||
[jira-task]: https://gympass.atlassian.net/browse/JIRA_TASK | ||
[jira-img]: https://img.shields.io/badge/issue-JIRA-blue.svg | ||
|
||
[![JIRA][jira-img]][jira-task] | ||
|
||
## Motivation | ||
|
||
<!-- In the motivation section, you need to explain around what has behind these changes, like a purpose of changes and what benefits do we get --> | ||
|
||
## ⚠️ Warning | ||
|
||
<!-- [Optional] In warning section, you can alert reviewers for something about this PR or add some reminders that need attention --> | ||
|
||
- [ ] Need to create feature toggle | ||
|
||
## Changes | ||
|
||
<!-- In the changelog section, you can add the changes in an objective way --> | ||
|
||
- Something that added/fixed/changed | ||
|
||
## Status Checklist | ||
|
||
<!-- In the status section, you can mark what you have already done --> | ||
|
||
- [ ] devint ready | ||
- [ ] Unit tests | ||
- [ ] Manual tests | ||
- [ ] Add in Storybook | ||
|
||
## Screenshots | ||
|
||
<!-- If you are adding a layout change, you can show the images below --> | ||
|
||
|Before|After| | ||
|---|---| | ||
|<img src="https://via.placeholder.com/100x80.png" />|<img src="https://via.placeholder.com/100x80.png" />| | ||
|
||
## Testing | ||
|
||
<!-- How do we test the implementation? --> | ||
|
||
- Access the url /employees |
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,66 @@ | ||
version: 2 | ||
mergeable: | ||
- when: pull_request.* | ||
validate: | ||
- do: description | ||
no_empty: | ||
enabled: true | ||
message: Description matter and should not be empty. Provide detail with **what** was changed, **why** it was changed, and **how** it was changed. | ||
|
||
- when: pull_request.* | ||
validate: | ||
- do: or | ||
validate: | ||
- do: description | ||
must_include: | ||
regex: '[A-Z][A-Z0-9]+[-_]\d+' | ||
message: 'The Jira ticket does not exist' | ||
- do: title | ||
must_include: | ||
regex: '[A-Z][A-Z0-9]+[-_]\d+' | ||
message: 'The Jira ticket does not exist' | ||
- do: headRef | ||
must_include: | ||
regex: '[A-Z][A-Z0-9]+[-_]\d+' | ||
message: 'The Jira ticket does not exist' | ||
pass: | ||
- do: labels | ||
delete: 'NO_JIRA' | ||
fail: | ||
- do: labels | ||
add: 'NO_JIRA' | ||
- do: comment | ||
payload: | ||
body: This is NO_JIRA. Is it relevant now, really, why? | ||
|
||
- when: pull_request.*, pull_request_review.* | ||
name: 'Approval check' | ||
validate: | ||
- do: approvals | ||
min: | ||
count: 2 | ||
|
||
- when: schedule.repository | ||
validate: | ||
- do: stale | ||
days: 20 | ||
type: pull_request | ||
pass: | ||
- do: comment | ||
payload: | ||
body: This is old. Is it still relevant? | ||
|
||
- when: schedule.repository | ||
filter: | ||
- do: author | ||
must_exclude: | ||
regex: 'dependabot' | ||
validate: | ||
- do: stale | ||
days: 40 | ||
type: pull_request | ||
pass: | ||
- do: comment | ||
payload: | ||
body: This is old. This PR will be closed now. | ||
- do: close |
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,23 @@ | ||
name: CI/CD | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
# if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20' | ||
- name: Run npm install | ||
run: npm install | ||
- name: Run npm build | ||
run: npm run build | ||
- name: Run run release | ||
run: npm run release | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_USERNAME: ${{ secrets.NEXUS_USER }} | ||
NPM_PASSWORD: ${{ secrets.NEXUS_PASS }} | ||
NPM_EMAIL: ${{ secrets.NEXUS_USER }} |
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 @@ | ||
20.9.0 |
Oops, something went wrong.