This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gha): unify GHA - renovate, megalinter, markdown, and others
- Loading branch information
Showing
25 changed files
with
493 additions
and
2,235 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,6 @@ | ||
# Users referenced in this file will automatically be requested as reviewers for | ||
# PRs that modify the given paths | ||
# See https://help.github.com/articles/about-code-owners/, https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
|
||
# All code | ||
* @ruzickap |
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: Bug report | ||
about: Create a report to help us improve | ||
title: 'Bug: This is a sample issue title' | ||
labels: bug | ||
assignees: ruzickap | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behaviour. | ||
|
||
**Expected behaviour** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: GitHub Actions Community Forum | ||
url: https://github.com/orgs/community/discussions/ | ||
about: Please ask questions about GitHub Actions here. | ||
- name: GitHub Pages help | ||
url: https://help.github.com/en/github/working-with-github-pages | ||
about: GitHub Pages documentation here. |
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,21 @@ | ||
--- | ||
name: Proposal | ||
about: Suggest an idea for this project | ||
title: 'Proposal: This is a sample title' | ||
labels: proposal | ||
assignees: ruzickap | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe** | ||
A clear and concise description of what the problem is. Ex. I'm always | ||
frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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 |
---|---|---|
@@ -1,51 +1,56 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"branchPrefix": "renovate/", | ||
"labels": ["renovate", "renovate/{{replace '.*/' '' depName}}", "renovate/{{updateType}}"], | ||
"packageRules": [ | ||
{ | ||
"matchUpdateTypes": ["patch"], | ||
"automergeType": "branch", | ||
// Do not wait for tests - this will speed up the whole process - updating many branches + running many tests | ||
"ignoreTests": true, | ||
"automerge": true, | ||
}, | ||
$schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
extends: [ | ||
"config:recommended", | ||
"docker:pinDigests", | ||
"helpers:pinGitHubActionDigestsToSemver", | ||
"security:openssf-scorecard", | ||
":disableDependencyDashboard", | ||
":docker", | ||
":disableRateLimiting", | ||
":enableVulnerabilityAlertsWithLabel(security)", | ||
], | ||
"git-submodules": { | ||
enabled: true, | ||
}, | ||
labels: [ | ||
"renovate", | ||
"renovate/{{replace '.*/' '' depName}}", | ||
"renovate/{{updateType}}", | ||
], | ||
lockFileMaintenance: { | ||
enabled: true, | ||
schedule: ["before 6am on Sunday"], | ||
}, | ||
packageRules: [ | ||
{ | ||
"description": "Ignore frequent renovate updates", | ||
"matchPackageNames": ["renovatebot/github-action"], | ||
"matchUpdateTypes": ["patch"], | ||
"enabled": false | ||
matchUpdateTypes: ["major"], | ||
automerge: false, | ||
}, | ||
{ | ||
"matchPackageNames": ["renovatebot/github-action"], | ||
"matchUpdateTypes": ["minor"], | ||
"automergeType": "branch", | ||
"automerge": true, | ||
"ignoreTests": true, | ||
"schedule": ["* 0,2,4 1-7 * 0"], | ||
description: "Ignore frequent renovate updates", | ||
enabled: false, | ||
matchPackageNames: ["renovatebot/github-action"], | ||
matchUpdateTypes: ["patch"], | ||
}, | ||
{ | ||
"description": "Update all github-actions by default", | ||
"matchManagers": ["github-actions"], | ||
"automergeType": "branch", | ||
"automerge": true, | ||
description: "Update renovatebot/github-action minor updates on Sundays", | ||
matchPackageNames: ["renovatebot/github-action"], | ||
matchUpdateTypes: ["minor"], | ||
schedule: ["* * * * 0"], | ||
}, | ||
], | ||
"prBodyTemplate": "{{{table}}}{{{notes}}}{{{changelogs}}}", | ||
"concurrentRequestLimit": 20, | ||
"rebaseWhen": "behind-base-branch", | ||
"regexManagers": [ | ||
prBodyTemplate: "{{{table}}}{{{notes}}}{{{changelogs}}}", | ||
rebaseWhen: "behind-base-branch", | ||
regexManagers: [ | ||
{ | ||
"fileMatch": [ | ||
".*\\.ya?ml$", | ||
".*\\.md$", | ||
], | ||
"matchStrings": [ | ||
"# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)( versioning=(?<versioning>.+?))?( extractVersion=(?<extractVersion>.+?))?( registryUrl=(?<registryUrl>.+?))?\\s.*[=:]\\s*\"?(?<currentValue>.+?)\"?\\s", | ||
extractVersionTemplate: "{{#if extractVersion}}{{{extractVersion}}}{{else}}^v?(?<version>.+)${{/if}}", | ||
fileMatch: ["\\.ya?ml$", "\\.md$", "^Dockerfile$", "^entrypoint\\.sh$"], | ||
matchStrings: [ | ||
'# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)( versioning=(?<versioning>.+?))?( extractVersion=(?<extractVersion>.+?))?( registryUrl=(?<registryUrl>.+?))?\\s.*[=:]\\s*"?(?<currentValue>.+?)"?\\s', | ||
], | ||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}", | ||
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^v?(?<version>.+)${{/if}}", | ||
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}", | ||
}, | ||
], | ||
"separateMinorPatch": true, | ||
separateMinorPatch: true, | ||
} |
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
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,39 @@ | ||
--- | ||
name: links | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- .github/workflows/links.yml | ||
- lychee.toml | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0 | ||
|
||
- name: Restore lychee cache | ||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 | ||
with: | ||
path: .lycheecache | ||
key: cache-lychee-${{ github.sha }} | ||
restore-keys: cache-lychee- | ||
|
||
- name: Link Checker | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: lycheeverse/lychee-action@c053181aa0c3d17606addfe97a9075a32723548a # v1.9.3 | ||
with: | ||
args: ". --exclude-path CHANGELOG.md ${{ steps.pages.outputs.base_url }}" | ||
fail: true |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
--- | ||
name: release-please | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@cc61a07e2da466bebbc19b3a7dd01d6aecb20d1e # v4.0.2 | ||
with: | ||
release-type: simple |
Oops, something went wrong.