Skip to content

feat(CSI-308): add support for ReadWriteOncePod, ReadOnlyOncePod #2131

feat(CSI-308): add support for ReadWriteOncePod, ReadOnlyOncePod

feat(CSI-308): add support for ReadWriteOncePod, ReadOnlyOncePod #2131

Workflow file for this run

name: lint_pr
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- labeled
env:
PR_TITLE: ${{ toJson(github.event.pull_request.title) }}
PR_NUMBER: ${{ toJson(github.event.pull_request.number) }}
REPO: "github.com/weka/csi-wekafs"
jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
# feat(ui): Add `Button` component
# ^ ^ ^
# | | |__ Subject
# | |_______ Scope
# |____________ Type
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.BOTTY_GH_TOKEN }}
with:
# Configure which types are allowed (newline-delimited).
# Default: https://github.com/commitizen/conventional-commit-types
types: |
ci
chore
refactor
feat
fix
docs
style
breaking
test
# Configure which scopes are allowed (newline-delimited).
# These are regex patterns auto-wrapped in `^ $`.
scopes: |
deps
CSI-\d+
WEKAPP-\d+
# Configure that a scope must always be provided.
requireScope: true
# Configure which scopes are disallowed in PR titles (newline-delimited).
# For instance by setting the value below, `chore(release): ...` (lowercase)
# and `ci(e2e,release): ...` (unknown scope) will be rejected.
# These are regex patterns auto-wrapped in `^ $`.
disallowScopes: |
aloha
# Configure additional validation for the subject based on a regex.
# This example ensures the subject doesn't start with an uppercase character.
subjectPattern: ^(?![A-Z]).+$
# If `subjectPattern` is configured, you can use this property to override
# the default error message that is shown when the pattern doesn't match.
# The variables `subject` and `title` can be used within the message.
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
doesn't start with an uppercase character.
# If you use GitHub Enterprise, you can set this to the URL of your server
#githubBaseUrl: https://github.myorg.com/api/v3
# If the PR contains one of these newline-delimited labels, the
# validation is skipped. If you want to rerun the validation when
# labels change, you might want to use the `labeled` and `unlabeled`
# event triggers in your workflow.
ignoreLabels: |
ci
ignore-semantic-pull-request
# If you're using a format for the PR title that differs from the traditional Conventional
# Commits spec, you can use these options to customize the parsing of the type, scope and
# subject. The `headerPattern` should contain a regex where the capturing groups in parentheses
# correspond to the parts listed in `headerPatternCorrespondence`.
# See: https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser#headerpattern
#headerPattern: '^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$'
#headerPatternCorrespondence: type, scope, subject