Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CI): check for badly formatted titles or missing/contradictory labels #16303

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

grunweg
Copy link
Collaborator

@grunweg grunweg commented Aug 30, 2024


The zulip workflow is entirely cargo-culted from #16296; please review carefully.

Open in Gitpod

@grunweg grunweg added WIP Work in progress CI Modifies the continuous integration / deployment setup labels Aug 30, 2024
Copy link

github-actions bot commented Aug 30, 2024

PR summary f18acca564

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ checkTitleLabels
+ checkTitleLabelsCLI
+ hasContradictoryLabels
+ main
+ splitAtPos
+ validateTitle

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.

grunweg added a commit that referenced this pull request Aug 30, 2024
@grunweg
Copy link
Collaborator Author

grunweg commented Aug 30, 2024

Thanks again!

scripts/check-title-labels.lean Outdated Show resolved Hide resolved
scripts/check-title-labels.lean Show resolved Hide resolved
scripts/check-title-labels.lean Outdated Show resolved Hide resolved
scripts/check-title-labels.lean Outdated Show resolved Hide resolved
scripts/check-title-labels.lean Outdated Show resolved Hide resolved
scripts/check-title-labels.lean Outdated Show resolved Hide resolved
scripts/check-title-labels.lean Outdated Show resolved Hide resolved
.github/workflows/build.yml.in Outdated Show resolved Hide resolved
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 3, 2024
@grunweg grunweg changed the title feat(CI): check for badly formatting titles or missing/contradictory labels feat(CI): check for badly formatted titles or missing/contradictory labels Oct 8, 2024
@grunweg grunweg removed WIP Work in progress merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Oct 8, 2024
Copy link
Collaborator Author

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

Thanks for your careful review! I just revamped the logic, which should be much more robust now.

scripts/check-title-labels.lean Show resolved Hide resolved
scripts/check-title-labels.lean Outdated Show resolved Hide resolved
scripts/check-title-labels.lean Outdated Show resolved Hide resolved
.github/build.in.yml Outdated Show resolved Hide resolved
@bryangingechen bryangingechen self-assigned this Oct 9, 2024
@bryangingechen bryangingechen added awaiting-author A reviewer has asked the author a question or requested changes awaiting-CI labels Oct 9, 2024
grunweg and others added 6 commits October 11, 2024 17:24
The script checks most items from the commit convention,
ensures that a feature PR has a topic/area label,
and errors if any two labels are contradictory.

Add detailed tests for the title validation.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@grunweg
Copy link
Collaborator Author

grunweg commented Oct 11, 2024

CI looks green now: I don't mind if this is reviewed together with #17649 or separately.

@grunweg grunweg removed the awaiting-author A reviewer has asked the author a question or requested changes label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Modifies the continuous integration / deployment setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants