Skip to content

Commit 1a04589

Browse files
Merge branch 'main' into create-pr
# Conflicts: # .github/workflows/_cut-release-branches.yaml # .github/workflows/_push-main.yml # .github/workflows/reconcile-issue-comment.yaml # .github/workflows/reconcile-issue.yaml # pkg/config/config.yaml
2 parents 39a2c9b + f99971b commit 1a04589

File tree

9 files changed

+102
-20
lines changed

9 files changed

+102
-20
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
commit-message:
8+
prefix: ":seedling: "

.github/workflows/_cut-release-branches.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
- name: Get Token
3131
id: get_workflow_token
32-
uses: peter-murray/workflow-application-token-action@v3
32+
uses: peter-murray/workflow-application-token-action@v4
3333
with:
3434
application_id: ${{ vars.TRUSTIFICATION_BOT_ID }}
3535
application_private_key: ${{ secrets.TRUSTIFICATION_BOT_KEY }}

.github/workflows/_push-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- uses: Swatinem/rust-cache@v2
4747
- name: Get Token
4848
id: get_workflow_token
49-
uses: peter-murray/workflow-application-token-action@v3
49+
uses: peter-murray/workflow-application-token-action@v4
5050
with:
5151
application_id: ${{ vars.TRUSTIFICATION_BOT_ID }}
5252
application_private_key: ${{ secrets.TRUSTIFICATION_BOT_KEY }}
@@ -69,7 +69,7 @@ jobs:
6969
- uses: Swatinem/rust-cache@v2
7070
- name: Get Token
7171
id: get_workflow_token
72-
uses: peter-murray/workflow-application-token-action@v3
72+
uses: peter-murray/workflow-application-token-action@v4
7373
with:
7474
application_id: ${{ vars.TRUSTIFICATION_BOT_ID }}
7575
application_private_key: ${{ secrets.TRUSTIFICATION_BOT_KEY }}

.github/workflows/cherry-pick.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Get Token
4747
id: get_workflow_token
48-
uses: peter-murray/workflow-application-token-action@v3
48+
uses: peter-murray/workflow-application-token-action@v4
4949
with:
5050
application_id: ${{ vars.TRUSTIFICATION_BOT_ID }}
5151
application_private_key: ${{ secrets.TRUSTIFICATION_BOT_KEY }}

.github/workflows/reconcile-issue-comment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
- name: Get Token
2626
id: get_workflow_token
27-
uses: peter-murray/workflow-application-token-action@v3
27+
uses: peter-murray/workflow-application-token-action@v4
2828
with:
2929
application_id: ${{ vars.TRUSTIFICATION_BOT_ID }}
3030
application_private_key: ${{ secrets.TRUSTIFICATION_BOT_KEY }}

.github/workflows/reconcile-issue.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: Get Token
2222
id: get_workflow_token
23-
uses: peter-murray/workflow-application-token-action@v3
23+
uses: peter-murray/workflow-application-token-action@v4
2424
with:
2525
application_id: ${{ vars.TRUSTIFICATION_BOT_ID }}
2626
application_private_key: ${{ secrets.TRUSTIFICATION_BOT_KEY }}
@@ -44,7 +44,7 @@ jobs:
4444
const comment = comments.find(
4545
(comment) =>
4646
comment.user &&
47-
comment.user.login == "trustificationdemo-ci-bot[bot]" &&
47+
comment.user.login == "trustification-ci-bot[bot]" &&
4848
comment.body &&
4949
comment.body.includes(body)
5050
);
@@ -161,13 +161,13 @@ jobs:
161161
steps:
162162
- name: Get Token
163163
id: get_workflow_token
164-
uses: peter-murray/workflow-application-token-action@v3
164+
uses: peter-murray/workflow-application-token-action@v4
165165
with:
166166
application_id: ${{ vars.TRUSTIFICATION_BOT_ID }}
167167
application_private_key: ${{ secrets.TRUSTIFICATION_BOT_KEY }}
168168

169169
- name: Add to planning project
170-
uses: actions/add-to-project@v0.5.0
170+
uses: actions/add-to-project@v1.0.2
171171
with:
172172
github-token: ${{ steps.get_workflow_token.outputs.token }}
173-
project-url: https://github.com/orgs/trustificationdemo/projects/1
173+
project-url: https://github.com/orgs/trustification/projects/7

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
# Release Tools
22

33
This project contains, or should contain, all of the configuration and automation to maintain, build, and release Trustification projects.
4+
5+
Check out the [config.yaml](./pkg/config/config.yaml) to see:
6+
7+
1. The repositories we are managing
8+
1. The Labels we are configuring in repositories
9+
1. The milestones we are configuring in repositories
10+
11+
This allows us to have a single source of truth to make sure that, as we create
12+
enhancments, issues, and pull requests, they can be tracked properly.
13+
14+
You can find our reusable GitHub Workflows in [./.github/workflows](./.github/workflows).

VERSIONING.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Versioning and Branching in Trustification
2+
3+
This document outlines how we handle versioning in the Trustification
4+
organization.
5+
6+
Individual projects inside the Trustification organization may have more specific
7+
rules and/or guidelines.
8+
9+
# Overview
10+
11+
Trustification follows [Semantic Versioning](https://semver.org/). This means that
12+
a version is expressed in the format X.Y.Z, where:
13+
14+
- X is the major version, representing significant changes and new features
15+
- Y is the minor version, representing new features and improvements
16+
- Z is the patch version, representing bug fixes and minor improvements
17+
18+
_NOTE_: If the major release is 0, any minor release may contain breaking changes.
19+
20+
# Branching
21+
22+
In order to maintain our guarantees two types of branches will be maintained:
23+
`main` and `release-X.Y`.
24+
25+
- `main` branch is where all of the development happens. It is not guaranteed
26+
stable and may contain breaking changes.
27+
- `release-X.Y` where X.Y is the minor version for a release is considered
28+
stable. These branches will receive backport fixes for critical issues, but no
29+
new features will be added.
30+
31+
# Releases
32+
33+
All releases from the main branch will be marked as pre-release and be of the
34+
form `vX.Y.0-alpha.n`, where `X.Y` represents the next minor release and `n`
35+
follows Semantic Versioning precedence rules for pre-release. For example,
36+
if the next minor release is going to be 2.0, a pre-release from the main
37+
branch might be `v2.0.0-alpha.1` or `v2.0.0-alpha.2`, depending on the number of
38+
pre-releases that have been made so far. By marking releases from the main
39+
branch as pre-release, we aim to clearly indicate that the code may contain
40+
breaking changes and is not yet considered stable.
41+
42+
Releases from `release-X.Y` branches contain stable code and always start with
43+
`vX.Y.0`. For example, the first release on a `release-2.3` branch would be
44+
`v2.3.0` and after critical issues are fixed + backported, the next release on
45+
the same branch would be `v2.3.1`. Marking these as full releases, we aim to
46+
indicate that they are stable, tested, and usable in production settings.
47+
48+
_NOTE_ When we say release, we are referring to a
49+
[GitHub release](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository)
50+
and the associated git tag.
51+
52+
# Pull Request (PR) Process
53+
54+
Every PR should be annotated with an icon indicating whether it's
55+
a:
56+
57+
- Breaking change: :warning: (`:warning:`)
58+
- Non-breaking feature: :sparkles: (`:sparkles:`)
59+
- Patch fix: :bug: (`:bug:`)
60+
- Docs: :book: (`:book:`)
61+
- Infra/Tests/Other: :seedling: (`:seedling:`)
62+
- No release note: :ghost: (`:ghost:`)
63+
64+
Since GitHub supports emoji aliases (ie. `:ghost:`), there is no need to include
65+
the emoji directly in the PR title -- **please use the alias**. It used to be
66+
the case that projects using emojis for PR typing had to include the emoji
67+
directly because GitHub didn't render the alias. Given that `:warning:` is
68+
easy enough to read as text, easy to parse in release tooling, and rendered in
69+
GitHub well, we prefer to standardize on the alias.

pkg/config/config.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@
1010
# - org: the organization of the repo
1111
# repo: the repo
1212
repos:
13-
- org: trustificationdemo
13+
- org: trustification
1414
repo: trustification.github.io
15-
- org: trustificationdemo
15+
- org: trustification
1616
repo: release-tools
17-
- org: trustificationdemo
17+
- org: trustification
1818
repo: trustify-operator
19-
- org: trustificationdemo
20-
repo: trustify-helm-charts
21-
- org: trustificationdemo
22-
repo: trustify
23-
- org: trustificationdemo
19+
# - org: trustification
20+
# repo: trustify-helm-charts
21+
# - org: trustification
22+
# repo: trustify
23+
- org: trustification
2424
repo: trustify-ui
25-
- org: trustificationdemo
25+
- org: trustification
2626
repo: trustify-ui-tests
27-
- org: trustificationdemo
27+
- org: trustification
2828
repo: trustify-api-tests
2929

3030
# Labels

0 commit comments

Comments
 (0)