Skip to content

Commit 5010e17

Browse files
[tool] chore(tooling): improve and sync renovate & gh actions
1 parent d176cad commit 5010e17

5 files changed

Lines changed: 65 additions & 53 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "[OAEV Shared] Auto Label"
2+
on:
3+
pull_request:
4+
branches: [main, release/current]
5+
types: [opened, reopened]
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
jobs:
10+
auto-label:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "Auto Label"
14+
uses: FiligranHQ/filigran-ci-tools/actions/auto-label@v1
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "[OAEV Shared] Check Signed Commits in PR"
2+
on:
3+
pull_request_target:
4+
branches: [main, release/current]
5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
jobs:
9+
check-signed-commits:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check signed commits in PR
13+
uses: FiligranHQ/filigran-ci-tools/actions/check-signed-commit@v1
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "[OAEV Shared] Validate PR title Worker"
2+
on:
3+
pull_request:
4+
branches: [main, release/current]
5+
types: [opened, edited, reopened, ready_for_review, synchronize]
6+
jobs:
7+
validate-pr-title:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: "Generate a token"
11+
id: generate-token
12+
if: github.event.pull_request.head.repo.full_name == github.repository
13+
uses: actions/create-github-app-token@v2
14+
with:
15+
app-id: ${{ secrets.OPENAEV_PR_CHECKS_APP_ID }}
16+
private-key: ${{ secrets.OPENAEV_PR_CHECKS_PRIVATE_KEY }}
17+
- name: "Validate PR title and create check"
18+
uses: FiligranHQ/filigran-ci-tools/actions/pr-title-check@v1
19+
with:
20+
token: ${{ steps.generate-token.outputs.token }}

.github/workflows/validate-pr-title.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

renovate.json

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,31 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"config:recommended"
4+
"config:recommended",
5+
"docker:enableMajor"
56
],
67
"labels": [
78
"dependencies",
89
"filigran team"
910
],
10-
"prConcurrentLimit": 2,
11-
"baseBranches": ["release/current", "main"],
11+
"minimumReleaseAge": "3 days",
12+
"prHourlyLimit": 2,
13+
"prConcurrentLimit": 20,
14+
"timezone": "Europe/Paris",
15+
"schedule": [
16+
"* 0-4,22-23 * * 1-5",
17+
"* * * * 0,6"
18+
],
19+
"updateNotScheduled": false,
20+
"rebaseWhen": "conflicted",
21+
"commitMessageAction": "update",
22+
"commitMessagePrefix": "[tool] chore(deps):",
1223
"packageRules": [
1324
{
14-
"matchUpdateTypes": [
15-
"minor"
25+
"matchPaths": [
26+
"*/**"
1627
],
17-
"prPriority": 5
18-
},
19-
{
20-
"matchBaseBranches": ["release/current"],
21-
"commitMessageSuffix": null
22-
},
23-
{
24-
"matchJsonata": ["$exists(isVulnerabilityAlert)"],
25-
"matchBaseBranches": ["release/current"],
26-
"enabled": false
27-
},
28-
{
29-
"matchJsonata": ["$not($exists(isVulnerabilityAlert))"],
30-
"matchBaseBranches": ["main"],
31-
"enabled": false
28+
"commitMessagePrefix": "[injectors] chore(deps):"
3229
}
3330
]
34-
}
31+
}

0 commit comments

Comments
 (0)