Skip to content

refactor(2026-06): gitattributes/editorconfig + triage module + package.json + changelog guard + action alignment#23

Merged
thinkyou0714 merged 5 commits into
mainfrom
refactor/2026-06-quality-2
Jun 13, 2026
Merged

refactor(2026-06): gitattributes/editorconfig + triage module + package.json + changelog guard + action alignment#23
thinkyou0714 merged 5 commits into
mainfrom
refactor/2026-06-quality-2

Conversation

@thinkyou0714

Copy link
Copy Markdown
Owner

refactor-2026-06 — github-flow-kit

id change
G071 add .gitattributes (eol=lf) + .editorconfig (hygiene template)
G072 extract issue-triage scoring into scripts/triage_scoring.py (was triplicated; weekly-triage workflow + tests now import it)
G073 package.json: private:true + test script (zenn-cli kept — verified functional, not an artifact)
G074 add CHANGELOG sync guard test (Unreleased + version heading present)
G075 align governance action majors to codex-toolkit (dependency-review v5, gitleaks v3)

Verification: 16 unittest pass; yaml + compileall OK. PUBLIC → admin-merge on CI green.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 561a3a0837

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +9 to +10
PACKAGE_JSON = REPO / "package.json"
CHANGELOG = REPO / "CHANGELOG.md"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add package/changelog paths to the guard workflow

This guard reads package.json and CHANGELOG.md, but I checked .github/workflows/skill-validate.yml and its PR/push paths filter only includes SKILL/reference/test/secret/workflow files, not either of these inputs. A PR that only bumps the package version or edits the changelog will therefore skip the unittest job, so the new sync test will not protect the drift it is meant to catch; add these files to the validation trigger or remove the path filter.

Useful? React with 👍 / 👎.

Comment thread scripts/triage_scoring.py
impact_value = impact(issue.get("labels", []))
effort_value = effort(issue.get("body", ""))
age = (now - _parse_created_at(issue["createdAt"])).days
comments = int(issue.get("comments", 0) or 0)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle gh comment arrays before scoring

When the weekly workflow fetches any issue with at least one comment, gh issue list --json comments supplies comments as a list of comment objects, so int([...]) raises TypeError before rendering the summary. The previous inline code only compared this value after the age check; this cast makes even a freshly-created commented issue abort the run, so use len(comments) or totalCount instead of int-casting the raw field.

Useful? React with 👍 / 👎.

@thinkyou0714 thinkyou0714 merged commit c588cb4 into main Jun 13, 2026
4 checks passed
@thinkyou0714 thinkyou0714 deleted the refactor/2026-06-quality-2 branch June 13, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant