Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 35caf28

Browse files
committed
chore: updated workflow
1 parent 8529792 commit 35caf28

13 files changed

+646
-494
lines changed

.github/FUNDING.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
github: prisis
1+
github: "prisis"
2+
open_collective: "_prisis_"

.github/renovate.json5

+49-58
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,62 @@
11
{
2-
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3-
extends: ["config:base", ":semanticCommits", ":preserveSemverRanges", ":ignoreModulesAndTests", "group:allNonMajor"],
4-
labels: ["dependency", "Changed"],
5-
lockFileMaintenance: {
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:base"],
4+
"labels": ["dependency", "Changed"],
5+
"semanticCommits": true,
6+
"composer": {
67
"enabled": true
78
},
8-
semanticCommitType: "chore",
9-
semanticCommitScope: "deps",
10-
rebaseWhen: "behind-base-branch",
11-
timezone: "Europe/Berlin",
12-
dependencyDashboard: true,
13-
packageRules: [
9+
"vulnerabilityAlerts": {
10+
"enabled": true,
11+
"labels": [
12+
"arg0"
13+
]
14+
},
15+
"major": {
16+
"semanticCommitType": "deps",
17+
"semanticCommitScope": "arg0"
18+
},
19+
"packageRules": [
20+
{
21+
"groupName": "renovate-meta",
22+
"automerge": true,
23+
"updateTypes": ["lockFileMaintenance", "pin"],
24+
"labels": ["dependency", "Changed"],
25+
"semanticCommitType": "chore",
26+
"semanticCommitScope": "deps",
27+
"datasources": ["npm"]
28+
},
1429
{
15-
groupName: "dependencies (major)",
16-
automerge: false,
17-
depTypeList: ["dependencies"],
18-
updateTypes: ["major"],
19-
labels: ["dependency", "Changed"],
20-
semanticCommitType: "chore",
21-
semanticCommitScope: "deps",
22-
rangeStrategy: "replace",
23-
vulnerabilityAlerts: {
24-
labels: ["Security"],
25-
assignees: ["@prisis"]
26-
}
30+
"groupName": "dependencies (major)",
31+
"automerge": false,
32+
"depTypeList": ["require"],
33+
"updateTypes": ["major"],
34+
"semanticCommitType": "deps"
2735
},
2836
{
29-
groupName: "dependencies (non-major)",
30-
automerge: true,
31-
depTypeList: ["dependencies"],
32-
updateTypes: ["minor", "patch", "digest"],
33-
labels: ["dependency", "Changed"],
34-
semanticCommitType: "chore",
35-
semanticCommitScope: "deps",
36-
rangeStrategy: "replace",
37-
vulnerabilityAlerts: {
38-
labels: ["Security"],
39-
assignees: ["@prisis"]
40-
}
37+
"groupName": "dependencies (non-major)",
38+
"automerge": true,
39+
"depTypeList": ["dependencies", "require"],
40+
"updateTypes": ["patch", "minor"],
41+
"semanticCommitType": "deps"
4142
},
4243
{
43-
groupName: "devDependencies (major)",
44-
automerge: false,
45-
depTypeList: ["devDependencies"],
46-
updateTypes: ["major"],
47-
labels: ["dependency", "Changed"],
48-
semanticCommitType: "chore",
49-
semanticCommitScope: "deps",
50-
rangeStrategy: "replace",
51-
vulnerabilityAlerts: {
52-
labels: ["Security"],
53-
assignees: ["@prisis"]
54-
}
44+
"groupName": "devDependencies (major)",
45+
"automerge": true,
46+
"depTypeList": ["devDependencies", "require-dev"],
47+
"updateTypes": ["major"],
48+
"labels": ["dependency", "Changed"],
49+
"semanticCommitType": "chore",
50+
"semanticCommitScope": "deps"
5551
},
5652
{
57-
groupName: "devDependencies (non-major)",
58-
automerge: true,
59-
depTypeList: ["devDependencies"],
60-
updateTypes: ["minor", "patch", "digest"],
61-
labels: ["dependency", "Changed"],
62-
semanticCommitType: "chore",
63-
semanticCommitScope: "deps",
64-
rangeStrategy: "replace",
65-
vulnerabilityAlerts: {
66-
labels: ["Security"],
67-
assignees: ["@prisis"]
68-
}
53+
"groupName": "devDependencies (non-major)",
54+
"automerge": true,
55+
"depTypeList": ["devDependencies", "require-dev"],
56+
"updateTypes": ["patch", "minor"],
57+
"labels": ["dependency", "Changed"],
58+
"semanticCommitType": "chore",
59+
"semanticCommitScope": "deps"
6960
}
7061
]
7162
}

.github/settings.yml

+100-77
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,128 @@
11
# https://github.com/probot/settings
22

33
branches:
4-
- name: main
5-
protection:
6-
enforce_admins: false
7-
required_pull_request_reviews:
8-
dismiss_stale_reviews: true
9-
require_code_owner_reviews: true
10-
required_approving_review_count: 1
11-
restrictions:
4+
- name: "main"
125

13-
# https://developer.github.com/v3/repos/branches/#parameters-1
6+
# https://docs.github.com/en/rest/reference/repos#delete-branch-protection
7+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
148

15-
# Note: User, app, and team restrictions are only available for organization-owned repositories.
16-
# Set to null to disable when using this configuration for a repository on a personal account.
9+
protection:
10+
enforce_admins: false
1711

18-
apps:
19-
- "dependabot-preview"
20-
teams: []
12+
required_pull_request_reviews:
13+
dismiss_stale_reviews: true
14+
require_code_owner_reviews: true
15+
required_approving_review_count: 1
16+
17+
required_status_checks:
18+
contexts: []
19+
20+
strict: false
21+
22+
restrictions:
23+
# https://developer.github.com/v3/repos/branches/#parameters-1
24+
25+
# Note: User, app, and team restrictions are only available for organization-owned repositories.
26+
# Set to null to disable when using this configuration for a repository on a personal account.
27+
28+
apps:
29+
- "semantic-release-bot"
30+
- "renovate"
31+
teams: []
32+
# users: []
33+
34+
# https://docs.github.com/en/rest/reference/issues#create-a-label
35+
# https://docs.github.com/en/rest/reference/issues#update-a-label
2136

2237
labels:
23-
- name: Added
24-
description: "Changelog Added"
25-
color: 90db3f
38+
- name: "Added"
39+
description: "Changelog Added"
40+
color: "90db3f"
41+
42+
- name: "Changed"
43+
description: "Changelog Changed"
44+
color: "fbca04"
45+
46+
- name: "Dependency update"
47+
description: "Pull requests that update a dependency file"
48+
color: "e1f788"
49+
50+
- name: "Deprecated"
51+
description: "Changelog Deprecated"
52+
color: "1d76db"
2653

27-
- name: Changed
28-
description: "Changelog Changed"
29-
color: fbca04
54+
- name: "Duplicate"
55+
color: "000000"
3056

31-
- name: dependency
32-
description: "Pull requests that update a dependency file"
33-
color: e1f788
57+
- name: "Enhancement"
58+
color: "d7e102"
3459

35-
- name: Deprecated
36-
description: "Changelog Deprecated"
37-
color: 1d76db
60+
- name: "Stale"
61+
color: "000000"
3862

39-
- name: Duplicate
40-
color: 000000
63+
- name: "Fixed"
64+
description: "Changelog Fixed"
65+
color: "9ef42e"
4166

42-
- name: Enhancement
43-
color: d7e102
67+
- name: "Removed"
68+
description: "Changelog Removed"
69+
color: "e99695"
4470

45-
- name: Fixed
46-
description: "Changelog Fixed"
47-
color: 9ef42e
71+
- name: "Security"
72+
description: "Changelog Security"
73+
color: "ed3e3b"
4874

49-
- name: Removed
50-
description: "Changelog Removed"
51-
color: e99695
75+
- name: "Status: Good first issue"
76+
color: "d7e102"
5277

53-
- name: Security
54-
description: "Changelog Security"
55-
color: ed3e3b
78+
- name: "Status: Help wanted"
79+
color: "85d84e"
5680

57-
- name: "Status: Good first issue"
58-
color: d7e102
81+
- name: "Status: Needs Work"
82+
color: "fad8c7"
5983

60-
- name: "Status: Help wanted"
61-
color: 85d84e
84+
- name: "Status: Waiting for feedback"
85+
color: "fef2c0"
6286

63-
- name: "Status: Needs Work"
64-
color: fad8c7
87+
- name: "Type: BC Break"
88+
color: "b60205"
6589

66-
- name: "Status: Waiting for feedback"
67-
color: fef2c0
90+
- name: "Type: Bug"
91+
color: "b60205"
6892

69-
- name: "Type: BC Break"
70-
color: b60205
93+
- name: "Type: Critical"
94+
color: "ff8c00"
7195

72-
- name: "Type: Bug"
73-
color: b60205
96+
- name: "Type: RFC"
97+
color: "fbca04"
7498

75-
- name: "Type: Critical"
76-
color: ff8c00
99+
- name: "Type: Unconfirmed"
100+
color: "444444"
77101

78-
- name: "Type: RFC"
79-
color: fbca04
102+
- name: "Type: Wontfix"
103+
color: "000000"
80104

81-
- name: "Type: Unconfirmed"
82-
color: 444444
105+
- name: "semantic-release"
106+
color: "ff0000"
83107

84-
- name: "Type: Wontfix"
85-
color: 000000
108+
# https://docs.github.com/en/rest/reference/repos#update-a-repository
86109

87110
repository:
88-
allow_merge_commit: true
89-
allow_rebase_merge: false
90-
allow_squash_merge: false
91-
archived: false
92-
default_branch: main
93-
delete_branch_on_merge: true
94-
description: ":page_with_curl: Narrowspark Coding Standard."
95-
has_downloads: true
96-
has_issues: true
97-
has_pages: false
98-
has_projects: false
99-
has_wiki: false
100-
name: "coding-standard"
101-
private: false
102-
103-
# https://developer.github.com/v3/repos/branches/#remove-branch-protection
104-
105-
topics: "php, library, coding-standard, php-cs-fixer, phpstan, psalm, changelog, narrowspark, rector"
111+
allow_merge_commit: true
112+
allow_rebase_merge: false
113+
allow_squash_merge: false
114+
archived: false
115+
default_branch: "main"
116+
delete_branch_on_merge: true
117+
description: ":page_with_curl: Narrowspark Coding Standard."
118+
has_downloads: true
119+
has_issues: true
120+
has_pages: false
121+
has_projects: false
122+
has_wiki: false
123+
name: "coding-standard"
124+
private: false
125+
126+
# https://developer.github.com/v3/repos/branches/#remove-branch-protection
127+
128+
topics: "php, library, coding-standard, php-cs-fixer, phpstan, psalm, changelog, narrowspark, rector"

.github/workflows/composer-normalize.yml

+28-28
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22

33
name: "normalize composer.json"
44

5-
on:
6-
push:
7-
paths:
8-
- "composer.json"
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
paths:
8+
- "composer.json"
99

1010
jobs:
11-
normalize:
12-
timeout-minutes: 1
13-
14-
runs-on: "ubuntu-latest"
15-
16-
steps:
17-
- name: "Git checkout"
18-
uses: actions/checkout@v2
19-
env:
20-
GIT_COMMITTER_NAME: "GitHub Actions Shell"
21-
GIT_AUTHOR_NAME: "GitHub Actions Shell"
22-
EMAIL: "github-actions[bot]@users.noreply.github.com"
23-
24-
- name: "Validate Composer configuration"
25-
run: composer validate --strict
26-
27-
- name: "Normalize composer.json"
28-
run: |
29-
composer global require ergebnis/composer-normalize
30-
composer normalize --indent-style=space --indent-size=4 --no-check-lock --no-update-lock --no-interaction --ansi
31-
32-
- uses: stefanzweifel/[email protected]
33-
with:
34-
commit_message: "chore: normalize composer.json"
11+
normalize:
12+
timeout-minutes: 1
13+
14+
runs-on: "ubuntu-latest"
15+
16+
steps:
17+
- name: "Git checkout"
18+
uses: "actions/checkout@v2"
19+
env:
20+
GIT_COMMITTER_NAME: "GitHub Actions Shell"
21+
GIT_AUTHOR_NAME: "GitHub Actions Shell"
22+
EMAIL: "github-actions[bot]@users.noreply.github.com"
23+
24+
- name: "Validate Composer configuration"
25+
run: "composer validate --strict"
26+
27+
- name: "Normalize composer.json"
28+
run: |
29+
composer global require ergebnis/composer-normalize
30+
composer normalize --indent-style=space --indent-size=4 --no-check-lock --no-update-lock --no-interaction --ansi
31+
32+
- uses: "stefanzweifel/[email protected]"
33+
with:
34+
commit_message: "chore: normalize composer.json"

0 commit comments

Comments
 (0)