Skip to content

Commit b515907

Browse files
committed
chore(git-sync): auto-applied
This PR is auto-generated by https://github.com/M0NsTeRRR/.github. --------- Signed-off-by: Ludovic Ortega <[email protected]> Co-authored-by: Ludovic Ortega <[email protected]>
1 parent 42b2af7 commit b515907

12 files changed

+87
-159
lines changed

.editorconfig

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ root = true
77
charset = utf-8
88
trim_trailing_whitespace = true
99
end_of_line = lf
10+
indent_size = 2
1011
indent_style = space
1112
insert_final_newline = true
1213

.github/cliff.toml

+41-19
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,48 @@ body = """
1919
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
2020
{%- endmacro -%}
2121
22+
{% macro print_commit(commit) -%}
23+
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
24+
{% if commit.breaking %}[**breaking**] {% endif %}\
25+
{{ commit.message | upper_first }} - \
26+
([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
27+
{% endmacro -%}
28+
2229
{% if version %}\
23-
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
30+
{% if previous.version %}\
31+
## [{{ version | trim_start_matches(pat="v") }}]\
32+
({{ self::remote_url() }}/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
33+
{% else %}\
34+
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
35+
{% endif %}\
2436
{% else %}\
2537
## [unreleased]
2638
{% endif %}\
27-
{% if previous %}\
28-
{% if previous.version %}
29-
**Full Changelog**: {{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}
30-
{% endif %}
31-
{% endif %}\
39+
3240
{% for group, commits in commits | group_by(attribute="group") %}
33-
### {{ group | upper_first }}
41+
### {{ group | striptags | trim | upper_first }}
42+
{% for commit in commits
43+
| filter(attribute="scope")
44+
| sort(attribute="scope") %}
45+
{{ self::print_commit(commit=commit) }}
46+
{%- endfor %}
3447
{% for commit in commits %}
35-
- {% if commit.github.pr_number %}#{{ commit.github.pr_number }} {%- endif %}\
36-
{% if commit.breaking %}[**💥 breaking 💥**] {% endif %}\
37-
{{ commit.message | upper_first }}\
38-
{% if commit.github.username %} (thanks @{{ commit.github.username }}){%- endif %}\
39-
{% endfor %}
40-
{% endfor %}\n
48+
{%- if not commit.scope -%}
49+
{{ self::print_commit(commit=commit) }}
50+
{% endif -%}
51+
{% endfor -%}
52+
{% endfor -%}
53+
{%- if github -%}
54+
{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
55+
## New Contributors ❤️
56+
{% endif %}\
57+
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
58+
* @{{ contributor.username }} made their first contribution
59+
{%- if contributor.pr_number %} in \
60+
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
61+
{%- endif %}
62+
{%- endfor -%}
63+
{%- endif %}
4164
"""
4265
# template for the changelog footer
4366
footer = """
@@ -70,6 +93,7 @@ commit_parsers = [
7093
{ message = "^chore\\(deps.*\\)", skip = true },
7194
{ message = "^chore\\(pr\\)", skip = true },
7295
{ message = "^chore\\(pull\\)", skip = true },
96+
{ message = "^chore\\(git-sync\\)", skip = true },
7397
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
7498
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
7599
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
@@ -79,14 +103,12 @@ protect_breaking_commits = false
79103
# filter out the commits that are not matched by commit parsers
80104
filter_commits = false
81105
# regex for matching git tags
82-
# tag_pattern = "v[0-9].*"
106+
tag_pattern = "v[0-9].*"
83107
# regex for skipping tags
84-
# skip_tags = ""
108+
skip_tags = "beta|alpha"
85109
# regex for ignoring tags
86-
# ignore_tags = ""
110+
ignore_tags = "rc"
87111
# sort the tags topologically
88112
topo_order = false
89113
# sort the commits inside sections by oldest/newest order
90-
sort_commits = "oldest"
91-
# limit the number of commits included in the changelog.
92-
# limit_commits = 42
114+
sort_commits = "newest"

.github/renovatebot.json5 .github/renovate.json5

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
":dependencyDashboard",
1111
":semanticCommits",
1212
":timezone(Europe/Paris)",
13-
"github>//.github/renovate/labels.json5",
14-
"github>//.github/renovate/semantic_commits.json5",
13+
"github>M0NsTeRRR/octodns-infomaniak//.github/renovate/labels.json5",
14+
"github>M0NsTeRRR/octodns-infomaniak//.github/renovate/semantic_commits.json5",
15+
"github>M0NsTeRRR/octodns-infomaniak//.github/renovate/devcontainers.json5",
1516
],
1617
"lockFileMaintenance": {
1718
"enabled": true,

.github/renovatebot/devContainers.json5.j2 .github/renovate/devcontainers.json5

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{%- raw %}
1+
22
{
33
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
44
"customManagers": [
@@ -12,5 +12,4 @@
1212
"versioningTemplate": 'regex:^v?(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?-?(?<compatibility>\\S+)?$',
1313
},
1414
]
15-
}
16-
{%- endraw %}
15+
}

.github/renovatebot/labels.json5.j2 .github/renovate/labels.json5

-19
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,10 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"packageRules": [
4-
{%- if language == "python" %}
54
{
65
"matchDatasources": ["pypi"],
76
"addLabels": ["renovate/pip"]
87
},
9-
{%- elif language == "go" %}
10-
{
11-
"matchDatasources": ["go"],
12-
"addLabels": ["renovate/go"]
13-
},
14-
{%- endif %}
15-
{%- if docker %}
16-
{
17-
"matchDatasources": ["docker"],
18-
"addLabels": ["renovate/container"]
19-
},
20-
{%- endif %}
21-
{%- if helm %}
22-
{
23-
"matchDatasources": ["helm"],
24-
"addLabels": ["renovate/helm"]
25-
},
26-
{%- endif %}
278
{
289
"matchUpdateTypes": ["major"],
2910
"labels": ["type/major"]
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"packageRules": [
4+
{
5+
"matchDatasources": ["pypi"],
6+
"matchUpdateTypes": ["major"],
7+
"commitMessagePrefix": "feat(python)!: ",
8+
"commitMessageTopic": "",
9+
"commitMessageExtra": "( → )"
10+
},
11+
{
12+
"matchDatasources": ["pypi"],
13+
"matchUpdateTypes": ["minor"],
14+
"semanticCommitType": "feat",
15+
"semanticCommitScope": "python",
16+
"commitMessageTopic": "",
17+
"commitMessageExtra": "( → )"
18+
},
19+
{
20+
"matchDatasources": ["pypi"],
21+
"matchUpdateTypes": ["patch"],
22+
"semanticCommitType": "fix",
23+
"semanticCommitScope": "python",
24+
"commitMessageTopic": "",
25+
"commitMessageExtra": "( → )"
26+
},
27+
]
28+
}

.github/renovatebot/semantic_commits.json5.j2

-114
This file was deleted.

.github/workflows/automation-sync-pr.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
---
12
# THIS FILE IS GENERATED! DO NOT EDIT! Maintained by Pulumi
3+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
24
name: create pull request for automation-sync
35
on:
46
push:
@@ -16,6 +18,6 @@ jobs:
1618
- name: Checkout
1719
uses: actions/checkout@v4
1820
- name: Create Pull Request
19-
run: "gh pr view automation-sync && gh pr reopen automation-sync || gh pr create -B main -H automation-sync --title 'chore(pulumi): auto-applied' --body 'This PR is auto-generated by https://github.com/M0NsTeRRR/.github.'"
21+
run: "gh pr view automation-sync && gh pr reopen automation-sync || gh pr create -B main -H automation-sync --title 'chore(git-sync): auto-applied' --body 'This PR is auto-generated by https://github.com/M0NsTeRRR/.github.'"
2022
env:
2123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint-pr.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
---
12
# THIS FILE IS GENERATED! DO NOT EDIT! Maintained by Pulumi
3+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
24
name: validate PR title
35
on:
46
pull_request:

.github/workflows/lint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
---
12
# THIS FILE IS GENERATED! DO NOT EDIT! Maintained by Pulumi
3+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
24
name: python lint
35
on:
46
- pull_request

.github/workflows/release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
---
12
# THIS FILE IS GENERATED! DO NOT EDIT! Maintained by Pulumi
3+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
24
name: python release
35
on:
46
push:
@@ -34,7 +36,7 @@ jobs:
3436
- name: Checkout
3537
uses: actions/checkout@v4
3638
- name: Create release as draft
37-
run: gh release create ${{ github.ref_name }} -n "${{ needs.changelog.outputs.release_body }}" --draft
39+
run: gh release create ${{ github.ref_name }} -n "${{ needs.changelog.outputs.release_body }}" --draft
3840
env:
3941
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4042
package:

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
---
12
# THIS FILE IS GENERATED! DO NOT EDIT! Maintained by Pulumi
3+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
24
name: python test
35
on:
46
- pull_request

0 commit comments

Comments
 (0)