Skip to content

CIDI Update #9

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

Merged
merged 2 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/branch-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "BRANCH NAME CONVENTION CHECK"
on: [push]
jobs:
check-branch-name:
runs-on: ubuntu-latest
steps:
- name: Check branch name
run: |
if [[ ! "$GITHUB_REF" =~ refs/heads/(feature|hotfix|bugfix)/.+ ]]; then
echo "Branch name does not follow the 'feature/*', 'hotfix/*', 'bugfix/*' naming convention."
exit 1
fi
10 changes: 9 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ name: Linter Check
on:
pull_request:
branches:
- main
- feature/**
- bugfix/**
- hotfix/**
push:
branches:
- main
- feature/**
- bugfix/**
- hotfix/**


permissions:
contents: read
Expand All @@ -26,4 +34,4 @@ jobs:
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # golangci-lint-action v4.0.0
with:
version: latest
config: .golangci.yml
args: --config .golangci.yml
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Our project adheres to the GitFlow workflow to enhance development and release m
- **feature/***: For maining new features or enhancements, e.g., `feature/add-login`.
- **release/***: Manages pre-release activities and final testing, adhering to [Semantic Versioning (semver)](https://semver.org/ "Semantic Versioning 2.0.0").
- **hotfix/***: Addresses critical issues in production, e.g., `hotfix/login-issue`.

- **bugfix/***: Addresses minor issues in production like typo, non-critical errors etc.
### Workflow Overview

#### Setting Up for Development
Expand Down