Skip to content

feat: implement CRD generation/export functionality with new backend logic and a dedicated UI page for doc generation #494

feat: implement CRD generation/export functionality with new backend logic and a dedicated UI page for doc generation

feat: implement CRD generation/export functionality with new backend logic and a dedicated UI page for doc generation #494

Workflow file for this run

name: "Lint PR"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
permissions:
pull-requests: write
contents: read
jobs:
validate-pr-title:
name: Validate PR title
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: lint_pr_title
id: lint_pr_title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: marocchino/sticky-pull-request-comment@v2
if: always() && (steps.lint_pr_title.outputs.error_message != null)
with:
header: pr-title-lint-error
message: |
Hey there and thank you for opening this pull request! 👋🏼
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
Details:
```
${{ steps.lint_pr_title.outputs.error_message }}
```
# Delete a previous comment when the issue has been resolved
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-title-lint-error
delete: true
verify-commit-signatures:
name: Verify Commit Signatures
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Check for signed commits
uses: 1Password/check-signed-commits-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
comment: |
⚠️ This PR contains unsigned commits. To get your PR merged, please sign those commits (`git rebase --exec 'git commit -S --amend --no-edit -n' @{upstream}`) and force push them to this branch (`git push --force-with-lease`).
If you're new to commit signing, there are different ways to set it up:
<details>
<summary><b>Sign commits with <code>gpg</code></b></summary>
<p></p>
Follow the steps below to set up commit signing with `gpg`:
1. [Generate a GPG key](https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key)
2. [Add the GPG key to your GitHub account](https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-gpg-key-to-your-github-account)
3. [Configure `git` to use your GPG key for commit signing](https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key#telling-git-about-your-gpg-key)
</details>
<details>
<summary><b>Sign commits with <code>ssh-agent</code></b></summary>
<p></p>
Follow the steps below to set up commit signing with `ssh-agent`:
1. [Generate an SSH key and add it to `ssh-agent`](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)
2. [Add the SSH key to your GitHub account](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)
3. [Configure `git` to use your SSH key for commit signing](https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key#telling-git-about-your-ssh-key)
</details>