feat: automate dist recompilation on Renovate PRs and configure concurrency limit (#120)
Test / Run Tests (push) Successful in 1m59s
Test / Run Tests (push) Successful in 1m59s
### Summary of Changes 1. **Gitea Workflow (.gitea/workflows/recompile-dist.yaml)**: - Automates recompilation of dist/index.js on Renovate PRs. - Adds loop-prevention check for [skip compile]. 2. **Renovate Configuration ( enovate.json)**: - Configures branchConcurrentLimit: 2 and prConcurrentLimit: 2. - Adds gitIgnoredAuthors for automated bot commits. - Adds rebaseWhen: 'behind-base-branch'. - Removes postUpgradeTasks. 3. **Test Workflow (.gitea/workflows/test.yaml)**: - Added pull_request trigger. 4. **Gitea-Only Setup**: - Removed .github/ workflows to keep workflow execution strictly on Gitea. 5. **Preferences (GEMINI.md)**: - Documented strict pnpm/pnpx rule. 6. **Tests**: - Added afterEach import in __tests__/index.test.js. Reviewed-on: #120 Reviewed-by: LLMReview <27+autoreview@noreplay.horstenkamp.eu>
This commit was merged in pull request #120.
This commit is contained in:
@@ -7,6 +7,7 @@ This repository is maintained by Gemini.
|
||||
* **Test-Driven Development (TDD):** Wherever possible, Test-Driven Development principles should be followed. Write tests before writing the code they are intended to validate.
|
||||
* **Pre-commit Hooks:** Ensure that `pre-commit` hooks are installed and active before making any commits. This can be done by running `pre-commit install` in your local repository.
|
||||
* **Note for Gemini:** Git commits trigger pre-commit hooks, which can take several seconds (or minutes) to complete. Checking the command status for git commit is only appropriate every 120s.
|
||||
* **Package Manager Preferences:** Always use `pnpm` and `pnpx`. Never use `npm` or `npx` under any circumstances. All package management operations, script runs, and tool invocations must use `pnpm` / `pnpx`.
|
||||
|
||||
## Repository Comparison
|
||||
|
||||
@@ -32,3 +33,8 @@ The Gitea workflow does the following:
|
||||
2. Sets up Node.js and pnpm.
|
||||
3. Installs the dependencies using `pnpm install`.
|
||||
4. Runs the tests using `pnpm test`.
|
||||
|
||||
### Automated Recompilation & Permissions
|
||||
|
||||
* The automated recompilation workflow (`.gitea/workflows/recompile-dist.yaml`) recompiles `dist/index.js` on Renovate PRs and requires `contents: write` permissions to push back to the branch.
|
||||
* Ensure that the Gitea repository workflow settings have write permissions enabled (**Settings** ➔ **Actions** ➔ **General** ➔ **Workflow permissions** ➔ **Read and write permissions**).
|
||||
|
||||
Reference in New Issue
Block a user