Skip to content

[CHORE] fixing 'template' labeling at all PR#71

Merged
bnbong merged 2 commits into
mainfrom
dev
May 12, 2026
Merged

[CHORE] fixing 'template' labeling at all PR#71
bnbong merged 2 commits into
mainfrom
dev

Conversation

@bnbong
Copy link
Copy Markdown
Owner

@bnbong bnbong commented May 12, 2026

Requesting Merging

Description

fixing PR labeler

Type of Change

  • BUG FIX
  • ADDING NEW TEMPLATE
  • FEATURE ADDED/UPDATED
  • HOTFIX
  • DELETING UNNECESSARY FEATURES
  • DOCUMENTATION & DEVOPS
  • Etc..

Test Environment

N/A

Major Changes

  • edit PR labeler pattern : fixing OR semantics

Screenshots (optional)

N/A

Etc

N/A

@bnbong bnbong self-assigned this May 12, 2026
@bnbong bnbong added bug Something isn't working chore Improvements or additions to non-code features labels May 12, 2026
@github-actions github-actions Bot added the template Add or editing a FastAPI template label May 12, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

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

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: 0a36df24c8

ℹ️ 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 thread .github/labeler.yml Outdated
Comment on lines +2 to +6
- changed-files:
- any-glob-to-any-file:
- 'src/**'
- all-globs-to-all-files:
- '!src/fastapi_fastkit/fastapi_project_template/**'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reintroduce all wrapper for enhancement matcher

In actions/labeler@v5, a match object without all defaults to any, and the glob-combination entries under changed-files are OR-ed. That means all-globs-to-all-files: '!src/fastapi_fastkit/fastapi_project_template/**' can match PRs that never touch src/ (for example docs-only changes), so enhancement will be applied far too broadly. Wrapping these changed-files conditions in all is required to enforce "must touch src and must not be template".

Useful? React with 👍 / 👎.

Comment thread .github/labeler.yml Outdated
Comment on lines 9 to 13
- changed-files:
- any-glob-to-any-file:
- 'src/fastapi_fastkit/fastapi_project_template/**'
- all-globs-to-all-files:
- '!src/fastapi_fastkit/fastapi_project_template/README.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.

P1 Badge Reintroduce all wrapper for template matcher

This rule has the same semantic problem: without a top-level all, the matcher defaults to any, so all-globs-to-all-files: '!src/fastapi_fastkit/fastapi_project_template/README.md' matches most PRs by itself (any PR where every changed file is not that exact README). As a result, the template label will still be attached to unrelated PRs instead of only template-path changes excluding the README case.

Useful? React with 👍 / 👎.

@bnbong bnbong removed the template Add or editing a FastAPI template label May 12, 2026
@github-actions github-actions Bot added the template Add or editing a FastAPI template label May 12, 2026
@bnbong bnbong removed the template Add or editing a FastAPI template label May 12, 2026
@bnbong bnbong merged commit 14bd18b into main May 12, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working chore Improvements or additions to non-code features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant