Skip to content

Commit

Permalink
chore: fix pending checks (zitadel#202)
Browse files Browse the repository at this point in the history
* chore: fix pending checks

* Update .github/workflows/test.yml

Co-authored-by: Florian H. Kleber <kleber@snek.at>

---------

Co-authored-by: Florian H. Kleber <kleber@snek.at>
  • Loading branch information
eliobischof and kleberbaum committed May 8, 2024
0 parents commit 4cf471b
Show file tree
Hide file tree
Showing 77 changed files with 4,303 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Bug Report
description: "Create a bug report to help us improve ZITADEL."
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: checkboxes
id: preflight
attributes:
label: Preflight Checklist
options:
- label:
I could not find a solution in the documentation, the existing issues or discussions
required: true
- label:
I have joined the [ZITADEL chat](https://zitadel.com/chat)
- type: input
id: version
attributes:
label: Version
description: Which version of the Chart are you using.
- type: input
id: appversion
attributes:
label: App version
description: Which version of ZITADEL are you using.
- type: textarea
id: impact
attributes:
label: Describe the problem caused by this bug
description: A clear and concise description of the problem you have and what the bug is.
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: To reproduce
description: Steps to reproduce the behaviour
placeholder: |
Steps to reproduce the behavior:
1. ...
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: If applicable, add relevant logs that could help identifying the cause of your problem. Make sure to redact any sensitive information.
- type: textarea
id: expected
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
- type: textarea
id: config
attributes:
label: Relevant Configuration
description: Add any relevant configurations that could help as. Make sure to redact any sensitive information.
- type: textarea
id: additional
attributes:
label: Additional Context
description: Please add any other infos that could be useful.
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
blank_issues_enabled: true
contact_links:
- name: 💬 ZITADEL Community Chat
url: https://zitadel.com/chat
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 📄 Documentation
description: Create an issue for missing or wrong documentation.
labels: ["docs"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this issue.
- type: checkboxes
id: preflight
attributes:
label: Preflight Checklist
options:
- label:
I could not find a solution in the existing issues, docs, nor discussions
required: true
- label:
I have joined the [ZITADEL chat](https://zitadel.com/chat)
- type: textarea
id: docs
attributes:
label: Describe the docs your are missing or that are wrong
placeholder: As a [type of user], I want [some goal] so that [some reason].
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional Context
description: Please add any other infos that could be useful.
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/improvement.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 🛠️ Improvement
description: "Create an new issue for an improvment in ZITADEL"
labels: ["improvement"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this improvement request
- type: checkboxes
id: preflight
attributes:
label: Preflight Checklist
options:
- label:
I could not find a solution in the existing issues, docs, nor discussions
required: true
- label:
I have joined the [ZITADEL chat](https://zitadel.com/chat)
- type: textarea
id: problem
attributes:
label: Describe your problem
description: Please describe your problem this improvement is supposed to solve.
placeholder: Describe the problem you have
validations:
required: true
- type: textarea
id: solution
attributes:
label: Describe your ideal solution
description: Which solution do you propose?
placeholder: As a [type of user], I want [some goal] so that [some reason].
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: Which version of the Chart are you using.
- type: input
id: appversion
attributes:
label: App version
description: Which version of ZITADEL are you using.
- type: textarea
id: additional
attributes:
label: Additional Context
description: Please add any other infos that could be useful.
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/proposal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 💡 Proposal / Feature request
description: "Create an issue for a feature request/proposal."
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this proposal / feature reqeust
- type: checkboxes
id: preflight
attributes:
label: Preflight Checklist
options:
- label:
I could not find a solution in the existing issues, docs, nor discussions
required: true
- label:
I have joined the [ZITADEL chat](https://zitadel.com/chat)
- type: textarea
id: problem
attributes:
label: Describe your problem
description: Please describe your problem this proposal / feature is supposed to solve.
placeholder: Describe the problem you have.
validations:
required: true
- type: textarea
id: solution
attributes:
label: Describe your ideal solution
description: Which solution do you propose?
placeholder: As a [type of user], I want [some goal] so that [some reason].
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: Which version of the Chart are you using.
- type: input
id: appversion
attributes:
label: App version
description: Which version of ZITADEL are you using.
- type: textarea
id: additional
attributes:
label: Additional Context
description: Please add any other infos that could be useful.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
commit-message:
prefix: "test"
schedule:
interval: "weekly"
groups:
testsuite:
patterns:
- "*"
reviewers:
- stebenz
- eliobischof
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Definition of Ready

- [ ] I am happy with the code
- [ ] Short description of the feature/issue is added in the pr description
- [ ] PR is linked to the corresponding user story
- [ ] Acceptance criteria are met
- [ ] All open todos and follow ups are defined in a new ticket and justified
- [ ] Deviations from the acceptance criteria and design are agreed with the PO and documented.
- [ ] No debug or dead code
- [ ] My code has no repetitions
- [ ] Documentation/examples are up-to-date
- [ ] All non-functional requirements are met
- [ ] If possible, [the test configuration](https://github.com/zitadel/zitadel-charts/blob/main/charts/zitadel/test/installation/config_test.go) is adjusted so acceptance tests cover my changes
113 changes: 113 additions & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Bump Version

on:
repository_dispatch:
types:
- zitadel-released

permissions:
contents: write
pull-requests: write

jobs:
bump:
runs-on: ubuntu-20.04
permissions:
contents: write
pull-requests: write
steps:
- id: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Read Current Chart Version
id: current-chart-version
uses: jbutcher5/read-yaml@1.6
with:
file: './charts/zitadel/Chart.yaml'
key-path: '["version"]'

- name: Read Current ZITADEL Version
id: current-zitadel-version
uses: jbutcher5/read-yaml@1.6
with:
file: './charts/zitadel/Chart.yaml'
key-path: '["appVersion"]'

- name: Print Current Versions
run: |
echo "Chart Version: ${{ steps.current-chart-version.outputs.data }}"
echo "ZITADEL Version: ${{ steps.current-zitadel-version.outputs.data }}"
- name: Parse Last ZITADEL Version
id: parsed-last-zitadel-version
uses: booxmedialtd/ws-action-parse-semver@v1
with:
input_string: ${{ steps.current-zitadel-version.outputs.data }}

- name: Set Version Type
id: set-version-type
run: |
[ ${{ github.event.client_payload.semanticoutputs.new_release_patch_version }} -gt ${{ steps.parsed-last-zitadel-version.outputs.patch }} ] && echo '::set-output name=type::PATCH' || true
[ ${{ github.event.client_payload.semanticoutputs.new_release_minor_version }} -gt ${{ steps.parsed-last-zitadel-version.outputs.minor }} ] && echo '::set-output name=type::MINOR' || true
[ ${{ github.event.client_payload.semanticoutputs.new_release_major_version }} -gt ${{ steps.parsed-last-zitadel-version.outputs.major }} ] && echo '::set-output name=type::MAJOR' || true
- name: Bump Chart Version
uses: jessicalostinspace/bump-semantic-version-action@v1.0.1
id: bumped-chart-version
with:
semantic-version: ${{ steps.current-chart-version.outputs.data }}
version-type: ${{ steps.set-version-type.outputs.type }}

- name: Update ZITADEL Version
uses: fjogeleit/yaml-update-action@main
with:
valueFile: 'charts/zitadel/Chart.yaml'
propertyPath: 'appVersion'
value: ${{ github.event.client_payload.semanticoutputs.new_release_version }}
updateFile: true
commitChange: false
createPR: false

- name: Update Chart Version
uses: fjogeleit/yaml-update-action@main
with:
valueFile: 'charts/zitadel/Chart.yaml'
propertyPath: 'version'
value: ${{ steps.bumped-chart-version.outputs.bumped-semantic-version }}
updateFile: true
commitChange: false
createPR: false

- name: Print Chart.yaml
run: cat charts/zitadel/Chart.yaml

- name: Create Pull Request
id: pull-request
uses: peter-evans/create-pull-request@v4
with:
title: Bump ZITADEL Version
branch: create-pull-request/bump
delete-branch: true

- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Enable Pull Request Automerge
if: steps.pull-request.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ steps.generate-token.outputs.token }}
pull-request-number: ${{ steps.pull-request.outputs.pull-request-number }}
merge-method: squash

- name: Auto approve
if: steps.pull-request.outputs.pull-request-operation == 'created'
uses: juliangruber/approve-pull-request-action@v1
with:
github-token: ${{ steps.generate-token.outputs.token }}
number: ${{ steps.pull-request.outputs.pull-request-number }}
43 changes: 43 additions & 0 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Add new issues to product management project

on:
issues:
types:
- opened
pull_request_target:
types:
- opened

jobs:
add-to-project:
name: Add issue and community pr to project
runs-on: ubuntu-latest
steps:
- name: add issue
uses: actions/add-to-project@v0.5.0
if: ${{ github.event_name == 'issues' }}
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/zitadel/projects/2
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
- uses: tspascoal/get-user-teams-membership@v3
id: checkUserMember
if: github.actor != 'dependabot[bot]'
with:
username: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }}
- name: add pr
uses: actions/add-to-project@v0.5.0
if: ${{ github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]' && !contains(steps.checkUserMember.outputs.teams, 'engineers')}}
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/zitadel/projects/2
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
- uses: actions-ecosystem/action-add-labels@v1.1.0
if: ${{ github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]' && !contains(steps.checkUserMember.outputs.teams, 'staff')}}
with:
github_token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labels: |
os-contribution
Loading

0 comments on commit 4cf471b

Please sign in to comment.