Skip to content
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
16 changes: 12 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,24 @@ This repo is a small Expo + React Native app (using Expo Router and NativeWind/T

When you (or another AI agent) are asked to implement a change, prefer working through the existing route/components structure and the centralized SQLite data layer in `lib/dataStorage.ts`.

## Before creating a PR
## Git Workflow (every change, no exceptions)

Always bump the version before opening a pull request. Choose the bump type based on the nature of the changes:
Every change — no matter how small — must follow this exact sequence:

1. **Create a new branch** off `master` (never commit directly to `master`)
2. **Make your changes** and commit them to the branch
3. **Bump the version** (`npm run bump:patch/minor/major`) and commit the version files
4. **Push** the branch to remote
5. **Open a pull request** targeting `master`

Direct pushes to `master` are blocked by branch protection. CI enforces the version bump — a PR with the same version as `master` will fail.

Choose the bump type based on the nature of the changes:

- **patch** (`npm run bump:patch`) — bug fixes, small tweaks, copy changes
- **minor** (`npm run bump:minor`) — new user-visible features, non-breaking additions
- **major** (`npm run bump:major`) — breaking changes, major UX overhauls

Run the bump command, then include the resulting `app.json` and `package.json` changes in the same commit or PR. Never open a PR without a version bump — the CI check enforces this.

## When implementing a feature (agent playbook)

1. **Locate the route** to change/add under `app/`.
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ android {
applicationId 'com.pgarr.simplenotepad'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 20
versionName "1.4.3"
versionCode 21
versionName "1.4.4"

buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\""
}
Expand Down
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"expo": {
"name": "simple-notepad",
"slug": "simple-notepad",
"version": "1.4.3",
"version": "1.4.4",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "simple-notepad",
Expand All @@ -24,7 +24,7 @@
"backgroundColor": "#ffffff"
},
"package": "com.pgarr.simplenotepad",
"versionCode": 20
"versionCode": 21
},
"web": {
"bundler": "metro",
Expand All @@ -43,7 +43,7 @@
"projectId": "9e3820b7-558b-4bd2-a1b2-e49561e741e6"
}
},
"runtimeVersion": "1.4.3",
"runtimeVersion": "1.4.4",
"updates": {
"url": "https://u.expo.dev/9e3820b7-558b-4bd2-a1b2-e49561e741e6"
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "simple-notepad",
"main": "expo-router/entry",
"version": "1.4.3",
"version": "1.4.4",
"scripts": {
"prebuild": "expo prebuild",
"dev": "expo start",
Expand Down
Loading