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

Use diff for checking PR body #1000

Merged
merged 3 commits into from Nov 18, 2021

Conversation

CasperWA
Copy link
Member

Fixes #995

This tries to use diff instead to check whether the first 8 lines of the latest PR body text is equal to the first 8 lines of .github/utils/single_dependency_pr_body.txt.
This test is the basis for whether the dependabot_updates branch should be reset to master (when it has been utilized to update dependencies) or master should just be merged into dependabot_updates (when any other PR is merged into master).

I've added a single commit here that will be reverted, but it implements a temporary CI test to check the new method.
It retrieves the PR body for the latest PR that should initiate resetting dependabot_updates, and it also retrieves a PR body for another random PR that should initiate the merge.
Then it uses the diff approach for both and finally uses it within an if-sentence as is intended.

@CasperWA
Copy link
Member Author

Success! The temporary job (see here) shows that the diff approach will indeed work.

@CasperWA CasperWA marked this pull request as ready for review November 17, 2021 16:03
@CasperWA
Copy link
Member Author

Note, I have manually force-pushed and reset dependabot_updates to master after the CI workflow failed.

@codecov
Copy link

codecov bot commented Nov 17, 2021

Codecov Report

Merging #1000 (7619d0c) into master (68de947) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1000   +/-   ##
=======================================
  Coverage   92.91%   92.91%           
=======================================
  Files          67       67           
  Lines        3780     3780           
=======================================
  Hits         3512     3512           
  Misses        268      268           
Flag Coverage Δ
project 92.91% <ø> (ø)
validator 92.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad605f3...7619d0c. Read the comment docs.

@CasperWA
Copy link
Member Author

CasperWA commented Nov 17, 2021

Ooohhhh.... issue/pull number 1000 🤩

@ml-evs
Copy link
Member

ml-evs commented Nov 17, 2021

Ooohhhh.... issue/pull number 1000 🤩

And what a way to do it... Who would've guessed it would be on fixing automated procedures ;)

Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

Happy to keep merging until we get something that works! 😜

@CasperWA CasperWA merged commit 3801561 into master Nov 18, 2021
@CasperWA CasperWA deleted the cwa/fix-995-use-diff-for-checking-pr-body branch November 18, 2021 07:58
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.

Updating permanent dependabot branch not working after updating dependencies
2 participants