feat: add enforcement actions - #3
Merged
Merged
Conversation
Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
There was a problem hiding this comment.
Pull request overview
This PR introduces repository automation/enforcement tooling by adding Renovate configuration and multiple GitHub Actions workflows to enforce commit/PR conventions, ensure actions are SHA-pinned, and automatically mark/close stale items.
Changes:
- Add
renovate.jsonto configure dependency update behavior (grouping CI updates, release-age rules, labels). - Add PR title semantic validation (
pull_request_target) and commit message linting workflows. - Add automation workflows for stale PR/issue handling and ensuring GitHub Actions are SHA-pinned.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| renovate.json | Adds RenovateBot configuration for dependency update automation and grouping rules. |
| .github/workflows/stale.yaml | Adds scheduled stale issue/PR labeling/closing automation. |
| .github/workflows/check-pr.yaml | Adds semantic PR title validation workflow. |
| .github/workflows/check-commit.yaml | Adds commit message linting workflow. |
| .github/workflows/check-actions.yaml | Adds workflow to enforce SHA-pinned GitHub Actions usage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "commitMessageLowerCase": "auto", | ||
| "semanticCommits": "enabled", | ||
| "semanticCommitType": "feat", | ||
| "ignorePaths": ["docs"], |
Comment on lines
+20
to
+25
| stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.' | ||
| stale-pr-message: 'This pull request has been marked as stale because it has been inactive for more than 30 days. Please update this pull request or it will be automatically closed in 30 days.' | ||
| days-before-issue-stale: 90 | ||
| days-before-pr-stale: 90 | ||
| days-before-issue-close: 90 | ||
| days-before-pr-close: 90 |
Comment on lines
+11
to
+15
| permissions: | ||
| actions: write | ||
| contents: write # only for delete-branch option | ||
| issues: write | ||
| pull-requests: write |
Comment on lines
+10
to
+12
| permissions: | ||
| pull-requests: write | ||
|
|
Comment on lines
+4
to
+10
| on: | ||
| push: | ||
| branches: | ||
| - "*" | ||
| pull_request: | ||
| branches: | ||
| - "*" |
Comment on lines
+20
to
+23
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1 No newline at end of file |
Comment on lines
+4
to
+7
| on: | ||
| pull_request: | ||
| branches: | ||
| - "*" |
Comment on lines
+1
to
+2
| name: Check Commit | ||
| permissions: {} |
Comment on lines
+1
to
+2
| name: Check actions | ||
| permissions: {} |
Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.