Skip to content

Commit

Permalink
NINJA-17: Update Ninja README
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasBuchfink committed Mar 28, 2024
1 parent 417fac5 commit aca5135
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions inlang/source-code/github-lint-action/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

Automate your i18n workflow and ensure that your i18n files are always up to date with the latest changes in your source code.

![Ninja i18n comment cover image](https://cdn.jsdelivr.net/gh/opral/monorepo@latest/inlang/source-code/github-lint-action/assets/ninja-i18n-cover.png)

## Workflow

https://github.com/opral/monorepo/assets/59048346/99049121-11db-4672-a7a8-e0d606426f4b

- When a pull request is opened or updated, the action will run and check for new i18n issues.
- If issues are found, the action creates a comment on the pull request with an issues report including links to the Fink localization editor to resolve the issues.
- After the issues are resolved, the action will automatically update the pull request comment to reflect the changes.
- If no issues are found, the action will simply not create any comments.

## Features

- Automated i18n linting for pull requests
Expand Down Expand Up @@ -62,12 +73,3 @@ Create a pull request with changes to your i18n files and see if the action runs
| Name | Requirement | Description |
| --------------------- | ----------- | ----------- |
| `GITHUB_TOKEN` | _required_ | Usage: `GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}`, Ninja i18n action uses this in-built GitHub token to make the API calls for interacting with GitHub. It is built into Github Actions and does not need to be manually specified in your secrets store. [More Info](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token)|

## Workflow

https://github.com/opral/monorepo/assets/59048346/99049121-11db-4672-a7a8-e0d606426f4b

- When a pull request is opened or updated, the action will run and check for new i18n issues.
- If issues are found, the action creates a comment on the pull request with an issues report including links to the Fink localization editor to resolve the issues.
- After the issues are resolved, the action will automatically update the pull request comment to reflect the changes.
- If no issues are found, the action will simply not create any comments.

0 comments on commit aca5135

Please sign in to comment.