Skip to content

Commit 32be2cd

Browse files
ZviBaratzclaude
andcommitted
ci: add release-please, PR title linting, and community files
Set up release automation (release-please with simple type, version synced to plugin.json), PR title validation (conventional commits with skill scopes), CODE_OF_CONDUCT.md (Contributor Covenant v2.1), and CHANGELOG v0.1.0 release section. Includes field test docs updates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3744aae commit 32be2cd

File tree

11 files changed

+873
-16
lines changed

11 files changed

+873
-16
lines changed

.github/workflows/lint-pr.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Lint PR Title
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- reopened
8+
- edited
9+
- synchronize
10+
11+
permissions:
12+
pull-requests: read
13+
14+
jobs:
15+
lint-pr-title:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: amannn/action-semantic-pull-request@v6
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
types: |
23+
feat
24+
fix
25+
docs
26+
test
27+
refactor
28+
perf
29+
ci
30+
chore
31+
build
32+
scopes: |
33+
ego-lint
34+
ego-review
35+
ego-scaffold
36+
ego-simulate
37+
ego-submit
38+
requireScope: false
39+
subjectPattern: ^[a-z].+$
40+
subjectPatternError: |
41+
The subject "{subject}" must start with a lowercase letter.
42+
Example: "feat(ego-lint): add check for unscoped CSS classes"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
config-file: release-please-config.json
19+
manifest-file: .release-please-manifest.json

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0"
3+
}

CHANGELOG.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Changelog
22

3-
## Unreleased
3+
## v0.1.0 — 2026-03-03
4+
5+
### Features
6+
7+
- **ego-simulate**: Added ESLint errors as rejection reason #23 (weight 5) to the taxonomy — crash-at-runtime bugs from undefined references now score appropriately (#2, PR #5)
8+
- **ego-simulate**: ego-lint FAIL results now integrate into taxonomy scoring — each unmapped FAIL adds weight 5, WARNs route to Advisory Notes (#3, PR #6)
9+
10+
### Bug Fixes
11+
12+
- **ego-review**: Added "NOT a signal" exception to ai-slop checklist item #4`_destroyed` + `_initializing` (re-entrancy guard) is not the over-engineered state machine anti-pattern (#1, PR #4)
413

514
### Changed
615

@@ -15,17 +24,6 @@
1524
- Strengthened community ownership messaging in README
1625
- Updated stale assertion/fixture counts in docs
1726

18-
### Bug Fixes
19-
20-
- **ego-review**: Added "NOT a signal" exception to ai-slop checklist item #4`_destroyed` + `_initializing` (re-entrancy guard) is not the over-engineered state machine anti-pattern (#1, PR #4)
21-
22-
### Features
23-
24-
- **ego-simulate**: Added ESLint errors as rejection reason #23 (weight 5) to the taxonomy — crash-at-runtime bugs from undefined references now score appropriately (#2, PR #5)
25-
- **ego-simulate**: ego-lint FAIL results now integrate into taxonomy scoring — each unmapped FAIL adds weight 5, WARNs route to Advisory Notes (#3, PR #6)
26-
27-
## v0.1.0
28-
2927
### What's Included
3028

3129
- **124 pattern rules** in `rules/patterns.yaml` covering web APIs, deprecated APIs, security, import segregation, AI slop detection, GNOME 44–50 migration, and more

CLAUDE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ test(ego-lint): add fixture for deprecated ByteArray usage
138138
- **Obfuscation regex pitfalls**: `[a-z]\d+` catches unicode escapes (`\u2013`); `re.IGNORECASE` on guard patterns catches `console.debug` when matching `DEBUG`
139139
- **Git history rewritten 2026-02-27**: `git filter-repo` removed internal files. All SHAs before that date are invalid
140140

141+
## Releasing
142+
143+
release-please automates versioning, CHANGELOG updates, git tags, and GitHub Releases:
144+
145+
- Conventional commit messages on `main` drive version bumps (`feat:` = patch pre-1.0, `feat!:` = minor pre-1.0)
146+
- PR titles are validated in CI — must follow conventional commit format (e.g., `feat(ego-lint): add check`)
147+
- To cut a release: merge the release-please PR that appears on GitHub after `feat:`/`fix:` commits land on `main`
148+
- `release-please-config.json` defines changelog sections and syncs version to `.claude-plugin/plugin.json`
149+
- `.release-please-manifest.json` tracks the current version
150+
141151
## Requirements
142152

143153
- **Required**: bash, python3

CODE_OF_CONDUCT.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
2+
# Contributor Covenant Code of Conduct
3+
4+
## Our Pledge
5+
6+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
7+
8+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
9+
10+
## Our Standards
11+
12+
Examples of behavior that contributes to a positive environment for our community include:
13+
14+
* Demonstrating empathy and kindness toward other people
15+
* Being respectful of differing opinions, viewpoints, and experiences
16+
* Giving and gracefully accepting constructive feedback
17+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
18+
* Focusing on what is best not just for us as individuals, but for the overall community
19+
20+
Examples of unacceptable behavior include:
21+
22+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
23+
* Trolling, insulting or derogatory comments, and personal or political attacks
24+
* Public or private harassment
25+
* Publishing others' private information, such as a physical or email address, without their explicit permission
26+
* Other conduct which could reasonably be considered inappropriate in a professional setting
27+
28+
## Enforcement Responsibilities
29+
30+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
31+
32+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
33+
34+
## Scope
35+
36+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
37+
38+
## Enforcement
39+
40+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at https://github.com/ZviBaratz/gnome-extension-reviewer/issues. All complaints will be reviewed and investigated promptly and fairly.
41+
42+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
43+
44+
## Enforcement Guidelines
45+
46+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
47+
48+
### 1. Correction
49+
50+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
51+
52+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
53+
54+
### 2. Warning
55+
56+
**Community Impact**: A violation through a single incident or series of actions.
57+
58+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
59+
60+
### 3. Temporary Ban
61+
62+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
63+
64+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
65+
66+
### 4. Permanent Ban
67+
68+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
69+
70+
**Consequence**: A permanent ban from any sort of public interaction within the community.
71+
72+
## Attribution
73+
74+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
75+
76+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
77+
78+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
79+
80+
[homepage]: https://www.contributor-covenant.org
81+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
82+
[Mozilla CoC]: https://github.com/mozilla/diversity
83+
[FAQ]: https://www.contributor-covenant.org/faq
84+
[translations]: https://www.contributor-covenant.org/translations
85+

docs/internal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Tested repeatedly across development sessions. Findings accumulate in a living d
1212

1313
| Extension | Document | Current Status | Findings |
1414
|-----------|----------|---------------|----------|
15-
| [hara-hachi-bu](field-test-hara-hachi-bu.md) | Living document | 201 PASS, 0 FAIL, 8 WARN | 21 findings (F-001 through F-021) |
15+
| [hara-hachi-bu](field-test-hara-hachi-bu.md) | Living document | 205 PASS, 0 FAIL, 8 WARN | 29 findings (F-001 through F-029) |
1616

1717
### One-Shot Field Tests
1818

0 commit comments

Comments
 (0)