Skip to content

Commit a0f2bea

Browse files
chore: initial commit
1 parent f0f6dbd commit a0f2bea

13 files changed

+1321
-1
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 🛡️ Validate Commit Messages
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
check-commits:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: ⬇️ Checkout code
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
17+
- name: ⬢ Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
22+
- name: 📦 Install Commitlint
23+
run: |
24+
npm install --save-dev @commitlint/{config-conventional,cli}
25+
26+
- name: 🔍 Validate commit messages
27+
run: |
28+
npx commitlint --from=HEAD~10 --to=HEAD --verbose

.gitignore

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,18 @@ app.*.symbols
116116
!**/ios/**/default.pbxuser
117117
!**/ios/**/default.perspectivev3
118118
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
119-
!/dev/ci/**/Gemfile.lock
119+
!/dev/ci/**/Gemfile.lock
120+
121+
# Node.js
122+
node_modules/
123+
124+
# Husky
125+
.husky/_/
126+
127+
# IDEs
128+
.idea/
129+
.vscode/
130+
*.iml
131+
132+
# Archivos de sistema
133+
.DS_Store

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm test

.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "a14f74ff3a1cbd521163c5f03d68113d50af93d3"
8+
channel: "stable"
9+
10+
project_type: package

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.0.1
2+
3+
* TODO: Describe initial release.

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"],
3+
};

lib/flutter_policy_engine.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
library flutter_policy_engine;
2+
3+
/// A Calculator.
4+
class Calculator {
5+
/// Returns [value] plus 1.
6+
int addOne(int value) => value + 1;
7+
}

0 commit comments

Comments
 (0)