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

DEV: Move title check to own workflow #2384

Merged
merged 4 commits into from
Dec 31, 2023
Merged

DEV: Move title check to own workflow #2384

merged 4 commits into from
Dec 31, 2023

Conversation

MasterOdin
Copy link
Member

@MasterOdin MasterOdin commented Dec 31, 2023

PR moves the title check script introduced in #2378 into its own workflow where it's triggered by [opened, reopened, edited, synchronize], where the difference is in the addition of edited type. This allows the workflow to be triggered on editing any part of the PR, most importantly the title attribute to fix it not following conventions. Otherwise, it would require the user to either push a new commit or open/close the PR which is not as intuitive to fix.

To verify, see https://github.com/py-pdf/pypdf/actions, where there are 4+ "PR title check" workflow runs, triggered by me editing this PR, vs the comment below that shows that after I edited the title, I was still failing the original check, and would have required again closing/reopening or pushing a new commit to fix the title check action.

https://frontside.com/blog/2020-05-26-github-actions-pull_request/ provides a good overview on how the different pull request types are triggered, though its missing a number of newer ones that have been added, though that are irrelevant to our needs I think.

Copy link

codecov bot commented Dec 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5eefbaf) 94.35% compared to head (170396e) 94.35%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2384   +/-   ##
=======================================
  Coverage   94.35%   94.35%           
=======================================
  Files          43       43           
  Lines        7584     7584           
  Branches     1519     1519           
=======================================
  Hits         7156     7156           
  Misses        265      265           
  Partials      163      163           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MasterOdin MasterOdin changed the title Move title check to own job DEV: Move title check to own job Dec 31, 2023
@MasterOdin
Copy link
Member Author

MasterOdin commented Dec 31, 2023

After editing the title, the PR is still marked as failing the title check, and that only a new commit on the branch will fix that...

Untitled

@MasterOdin MasterOdin changed the title DEV: Move title check to own job DEV: Move title check to own workflow Dec 31, 2023
@MasterOdin MasterOdin marked this pull request as ready for review December 31, 2023 05:10
@stefan6419846
Copy link
Collaborator

Thanks for the PR to further improve this. While it generally seems to LGTM, I would probably prefer to rename the workflow file and workflow title to be more generic for the case that we want to check further aspects of a PR itself, for example pr-check.yml.

@MartinThoma MartinThoma self-requested a review December 31, 2023 15:03
@MartinThoma MartinThoma merged commit b8a877c into main Dec 31, 2023
15 checks passed
@MartinThoma MartinThoma deleted the MasterOdin-patch-1 branch December 31, 2023 15:04
@MartinThoma
Copy link
Member

Very nice work 👏 Thank you 🤗

MartinThoma added a commit that referenced this pull request Jan 19, 2024
## What's new

pypdf==4.0.0 is a big milestone forward:

* We finally have a layout-mode text extraction.
  This enables users who want to detect / extract tables
  with heuristics to give it a try.
* We deprecated a lot of the old PyPDF2 API that was either
  not following PEP8 naming styles or was not using a
  property. Users comming from PyPDF2 might want to switch
  first to pypdf<4.0.0 to get helpful error messages
  that show the new API in their speicific cases.

A big 'Thank you!' the the whole pypdf community for your
work. Thanks to you, pypdf is better than ever.

Kudos to @shartzog who added the layout-mode with his first
contribution!

### Deprecations (DEP)
-  Drop Python 3.6 support (#2369) by @MartinThoma
-  Remove deprecated code (#2367) by @MartinThoma
-  Remove deprecated XMP properties (#2386) by @stefan6419846

### New Features (ENH)
-  Add "layout" mode for text extraction (#2388) by @shartzog
-  Add Jupyter Notebook integration for PdfReader (#2375) by @MartinThoma
-  Improve/rewrite PDF permission retrieval (#2400) by @stefan6419846

### Bug Fixes (BUG)
-  PdfWriter.add_uri was setting the wrong type (#2406) by @pmiller66
-  Add support for GBK2K cmaps (#2385) by @stefan6419846

### Documentation (DOC)
-  Add pmiller66 for #2406 as a contributor by @MartinThoma
-  Add missing expand parameter (#2393) by @Atomnp
-  Resolve build warnings (#2380) by @stefan6419846
-  Fix testing prerequisites (#2381) by @stefan6419846
-  Improve formatting of contributors page (#2383) by @stefan6419846
-  Add Tobeabellwether as a contributor for #2341 by @MartinThoma

### Developer Experience (DEV)
-  Make dependabot aware of our PR prefixes (#2415) by @stefan6419846
-  Fail on Sphinx issues (#2405) by @stefan6419846
-  Move title check to own workflow (#2384) by @MasterOdin
-  Write to temporary files instead of the working directory (#2379) by @stefan6419846
-  Ensure that the PR titles have the correct format (#2378) by @stefan6419846

### Maintenance (MAINT)
-  Complete FileSpecificationDictionaryEntries constants (#2416) by @MartinThoma
-  Return None instead of -1 when page is not attached (#2376) by @MartinThoma
-  Replace warning with logging.error (#2377) by @MartinThoma

### Testing (TST)
-  Add missing pytest.mark.samples annotations (#2412) by @kitterma
-  Correctly close temporary files (#2396) by @stefan6419846
-  Fix  side effect #2379 (#2395) by @pubpub-zz
-  Add test for layout extraction mode (#2390) by @MartinThoma

### Code Style (STY)
-  Use the UserAccessPermissions enum (#2398) by @MartinThoma
-  Run black (#2370) by @MartinThoma

[Full Changelog](3.17.4...4.0.0)
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.

3 participants