Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added README #141

Merged
merged 19 commits into from
Jan 13, 2025
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# devplatform-template-go-service work as expected
piontec marked this conversation as resolved.
Show resolved Hide resolved

This project is a template project to bootstrap golang repositories using the Giant IDP.
Please read the notes below to understand how this repository works and is kept up to date.

## Updating the template

If you want to update any files that are templated when a new project is created, you should
create a new topic branch and then a new PR from that branch against the `main` branch.
For each PR, a separate github action is run to create a preview PR with the changes applied (a sub-PR).
That sub-PR runs the templating logic against your topic branch and then compares the rendered result with
the current status of the `rendered-project` branch. For the sub-PR, all tests are invoked and their status is reported in the sub-PR. The original PR will have a link to the sub-PR, so you can check its status.
Once you're happy with the change in the sub-PR, you should merge it (the changes will go to `rendered-project`
branch). Once that's done, you can merge the original PR as well.

### Renovate

Renovate correctly detects dependencies and creates PR against the `main` branch.

### Example

1. A topic branch and a PR created by renovate to update a github action in the `project-template`` directory
<https://github.com/giantswarm/devplatform-template-go-service/pull/118/files>

2. A comment in the PR to the templated sub-PR and its check result
https://github.com/giantswarm/devplatform-template-go-service/pull/118#issuecomment-2580213836

```
Comment on #118 chore(deps): update sigstore/cosign-installer action to v3.7.0
Pull request #136 was created to preview the result of this PR.
Make sure you review and accept the created PR before you merge this one here.
<https://github.com/giantswarm/devplatform-template-go-service|giantswarm/devplatform-template-go-service>giantswarm/devplatform-template-go-service | Today at 2:45 PM | Added by GitHub
```

3. The templated sub-PR itself
https://github.com/giantswarm/devplatform-template-go-service/pull/136
Loading