Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
640 changes: 640 additions & 0 deletions .cursor/renovate-guidelines.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

* @lotyp @jevgenijsblaus
* @lotyp
2 changes: 1 addition & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.34.0/schema/markdownlint-config-schema.json",
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.38.0/schema/markdownlint-config-schema.json",
"line-length": false,
"no-inline-html": false,
"first-line-h1": false
Expand Down
18 changes: 13 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,29 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: fix-encoding-pragma
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: check-case-conflict
- id: mixed-line-ending

- repo: https://github.com/commitizen-tools/commitizen
rev: v4.7.1
rev: v4.8.3
hooks:
- id: commitizen
stages:
- commit-msg

- repo: https://github.com/mpalmer/action-validator
rev: v0.6.0
rev: v0.7.1
hooks:
- id: action-validator
stages:
- commit-msg

- repo: https://github.com/adrienverge/yamllint
rev: v1.37.1
hooks:
- id: yamllint
args: [-c=.yamllint.yaml]

- repo: local
hooks:
Expand Down
2 changes: 0 additions & 2 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
extends: default

ignore: |
node_modules/
assets/
pnpm-lock.yaml

rules:
braces:
Expand Down
25 changes: 24 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ MARKDOWN_LINT_RUNNER ?= $(DOCKER) run --rm $$(tty -s && echo "-it" || echo) \
--workdir /app \
davidanson/markdownlint-cli2-rules:latest

RENOVATE_RUNNER ?= $(DOCKER) run --rm $$(tty -s && echo "-it" || echo) \
-v $(shell pwd):/usr/src/app \
--workdir /usr/src/app \
renovate/renovate:latest

#
# Self documenting Makefile code
# ------------------------------------------------------------------------------------
Expand Down Expand Up @@ -78,7 +83,7 @@ hooks: ## Install git hooks from pre-commit-config
pre-commit autoupdate
.PHONY: hooks

lint: lint-yaml lint-actions lint-md ## Lint all files
lint: lint-yaml lint-actions lint-md lint-renovate ## Lint all files
.PHONY: lint

lint-yaml: ## Lint all yaml files
Expand All @@ -97,6 +102,24 @@ lint-md-dry: ## Lint all markdown files using markdownlint-cli2 in dry-run mode
@$(MARKDOWN_LINT_RUNNER) "**/*.md" "#CHANGELOG.md" | tee -a $(MAKE_LOGFILE)
.PHONY: lint-md-dry

lint-renovate: ## Validate renovate configuration
@echo "${GREEN}🤖 Validating renovate.json5 configuration...${RST}"
@$(RENOVATE_RUNNER) renovate-config-validator renovate.json5 | tee -a $(MAKE_LOGFILE)
.PHONY: lint-renovate

renovate-dry-run: ## Run renovate in dry-run mode (requires GITHUB_TOKEN)
@echo "${GREEN}🤖 Running renovate in dry-run mode...${RST}"
@if [ -z "$(GITHUB_TOKEN)" ]; then \
echo "${RED}❌ Error: GITHUB_TOKEN environment variable is required${RST}"; \
echo "${YELLOW}💡 Set it with: export GITHUB_TOKEN=your_token_here${RST}"; \
exit 1; \
fi
@$(RENOVATE_RUNNER) \
-e GITHUB_TOKEN="$(GITHUB_TOKEN)" \
-e LOG_LEVEL=info \
renovate --dry-run --print-config | tee -a $(MAKE_LOGFILE)
.PHONY: renovate-dry-run

#
# Release
# ------------------------------------------------------------------------------------
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
<br>
<br>
</div>

<div align="center">
<a href="https://github.com/wayofdev/gh-actions/actions" target="_blank"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fwayofdev%2Fgh-actions%2Fbadge&style=flat-square&label=github%20actions"/></a>
<a href="https://github.com/wayofdev/gh-actions/actions" target="_blank"><img alt="Build Status" src="https://img.shields.io/github/actions/workflow/status/wayofdev/gh-actions/release.yml?branch=master&style=flat-square&label=github%20actions"/></a>
<a href="https://github.com/wayofdev/gh-actions" target="_blank"><img alt="Commits since latest release" src="https://img.shields.io/github/commits-since/wayofdev/gh-actions/latest?style=flat-square"></a>
<a href="https://discord.gg/CE3TcCC5vr" target="_blank"><img alt="Codecov" src="https://img.shields.io/discord/1228506758562058391?style=flat-square&logo=discord&labelColor=7289d9&logoColor=white&color=39456d"></a>
<a href="https://x.com/intent/follow?screen_name=wayofdev" target="_blank"><img alt="Follow on Twitter (X)" src="https://img.shields.io/badge/-Follow-black?style=flat-square&logo=X"></a>
Expand Down Expand Up @@ -395,7 +394,7 @@ Thank you for considering contributing to the wayofdev community! We are open to
- 🤔 [Suggest a feature](https://github.com/wayofdev/gh-actions/issues/new?assignees=&labels=type%3A+enhancement&projects=&template=2-feature-request.yml&title=%5BFeature%5D%3A+)
- 🐛 [Report an issue](https://github.com/wayofdev/gh-actions/issues/new?assignees=&labels=type%3A+documentation%2Ctype%3A+maintenance&projects=&template=1-bug-report.yml&title=%5BBug%5D%3A+)
- 📖 [Improve documentation](https://github.com/wayofdev/gh-actions/issues/new?assignees=&labels=type%3A+documentation%2Ctype%3A+maintenance&projects=&template=4-docs-bug-report.yml&title=%5BDocs%5D%3A+)
- 👨‍💻 Contribute to the code
- 👨‍💻 [Contribute to the code](.github/CONTRIBUTING.md)

You are more than welcome. Before contributing, kindly check our [contribution guidelines](.github/CONTRIBUTING.md).

Expand Down
2 changes: 1 addition & 1 deletion actions/composer/get-cache-directory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>

<div align="center">
<a href="https://github.com/wayofdev/gh-actions/actions" target="_blank"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fwayofdev%2Fgh-actions%2Fbadge&style=flat-square&label=github%20actions"/></a>
<a href="https://github.com/wayofdev/gh-actions/actions" target="_blank"><img alt="Build Status" src="https://img.shields.io/github/actions/workflow/status/wayofdev/gh-actions/release.yml?branch=master&style=flat-square&label=github%20actions"/></a>
<a href="https://github.com/wayofdev/gh-actions" target="_blank"><img alt="Commits since latest release" src="https://img.shields.io/github/commits-since/wayofdev/gh-actions/latest?style=flat-square"></a>
<a href="https://discord.gg/CE3TcCC5vr" target="_blank"><img alt="Codecov" src="https://img.shields.io/discord/1228506758562058391?style=flat-square&logo=discord&labelColor=7289d9&logoColor=white&color=39456d"></a>
<a href="https://x.com/intent/follow?screen_name=wayofdev" target="_blank"><img alt="Follow on Twitter (X)" src="https://img.shields.io/badge/-Follow-black?style=flat-square&logo=X"></a>
Expand Down
2 changes: 1 addition & 1 deletion actions/composer/get-root-version/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>

<div align="center">
<a href="https://github.com/wayofdev/gh-actions/actions" target="_blank"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fwayofdev%2Fgh-actions%2Fbadge&style=flat-square&label=github%20actions"/></a>
<a href="https://github.com/wayofdev/gh-actions/actions" target="_blank"><img alt="Build Status" src="https://img.shields.io/github/actions/workflow/status/wayofdev/gh-actions/release.yml?branch=master&style=flat-square&label=github%20actions"/></a>
<a href="https://github.com/wayofdev/gh-actions" target="_blank"><img alt="Commits since latest release" src="https://img.shields.io/github/commits-since/wayofdev/gh-actions/latest?style=flat-square"></a>
<a href="https://discord.gg/CE3TcCC5vr" target="_blank"><img alt="Codecov" src="https://img.shields.io/discord/1228506758562058391?style=flat-square&logo=discord&labelColor=7289d9&logoColor=white&color=39456d"></a>
<a href="https://x.com/intent/follow?screen_name=wayofdev" target="_blank"><img alt="Follow on Twitter (X)" src="https://img.shields.io/badge/-Follow-black?style=flat-square&logo=X"></a>
Expand Down
2 changes: 1 addition & 1 deletion actions/composer/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>

<div align="center">
<a href="https://github.com/wayofdev/gh-actions/actions" target="_blank"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fwayofdev%2Fgh-actions%2Fbadge&style=flat-square&label=github%20actions"/></a>
<a href="https://github.com/wayofdev/gh-actions/actions" target="_blank"><img alt="Build Status" src="https://img.shields.io/github/actions/workflow/status/wayofdev/gh-actions/release.yml?branch=master&style=flat-square&label=github%20actions"/></a>
<a href="https://github.com/wayofdev/gh-actions" target="_blank"><img alt="Commits since latest release" src="https://img.shields.io/github/commits-since/wayofdev/gh-actions/latest?style=flat-square"></a>
<a href="https://discord.gg/CE3TcCC5vr" target="_blank"><img alt="Codecov" src="https://img.shields.io/discord/1228506758562058391?style=flat-square&logo=discord&labelColor=7289d9&logoColor=white&color=39456d"></a>
<a href="https://x.com/intent/follow?screen_name=wayofdev" target="_blank"><img alt="Follow on Twitter (X)" src="https://img.shields.io/badge/-Follow-black?style=flat-square&logo=X"></a>
Expand Down
7 changes: 0 additions & 7 deletions renovate.json

This file was deleted.

84 changes: 84 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"group:monorepos",
"group:recommended",
"workarounds:all"
],
"prHourlyLimit": 0,
"automerge": true,
"platformAutomerge": true,
"dependencyDashboard": true,
"dependencyDashboardTitle": "🤖 Dependency Dashboard",
"commitMessagePrefix": "chore(deps):",
"commitMessageAction": "update",
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "to {{newVersion}}",
"labels": ["dependencies"],
"assignees": ["lotyp"],
"timezone": "Europe/Warsaw",
"schedule": ["before 6am on Monday"],
"lockFileMaintenance": {
"enabled": true,
"automerge": true,
"schedule": ["before 6am on Monday"]
},
"packageRules": [
{
"description": "Group GitHub Actions updates",
"matchManagers": ["github-actions"],
"groupName": "GitHub Actions",
"automerge": true,
"addLabels": ["github-actions"],
"commitMessageTopic": "GitHub Actions"
},
{
"description": "Group pre-commit hook updates",
"matchManagers": ["pre-commit"],
"groupName": "pre-commit hooks",
"automerge": true,
"addLabels": ["pre-commit"],
"commitMessageTopic": "pre-commit hooks"
},
{
"description": "Separate major updates",
"matchUpdateTypes": ["major"],
"groupName": "major dependencies",
"automerge": false,
"addLabels": ["major-update"],
"dependencyDashboardApproval": true
},
{
"description": "Auto-merge minor and patch updates",
"matchUpdateTypes": ["minor", "patch"],
"automerge": true,
"addLabels": ["auto-merge"]
},
{
"description": "Pin GitHub Action digests",
"matchManagers": ["github-actions"],
"pinDigests": true
},
{
"description": "Group wayofdev/gh-actions self-references",
"matchPackageNames": ["wayofdev/gh-actions"],
"groupName": "wayofdev/gh-actions self-updates",
"automerge": false,
"addLabels": ["self-update"],
"commitMessageTopic": "self-reference"
}
],
"customManagers": [
{
"description": "Update schema versions in JSON files",
"customType": "regex",
"managerFilePatterns": ["/\\.json$/", "/\\.jsonc$/"],
"matchStrings": [
"\"\\$schema\":\\s*\"(?<depName>https://[^\"]+)/(?<currentValue>v[0-9]+\\.[0-9]+\\.[0-9]+)/[^\"]*\""
],
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v(?<version>.*)$"
}
]
}