Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[script]update the version check error output to include information … #4628

Conversation

hellohuanlin
Copy link
Contributor

@hellohuanlin hellohuanlin commented Dec 20, 2021

…about how to trigger PR description upload

I had this issue when I was trying to land #4608. I got this error:

No version change found, but the change to this package could not be verified to be exempt from version changes according to repository policy. If this is a false positive, please add a line starting with
No version change:
to your PR description with an explanation of why it is exempt.

So I updated the PR description and re-run the check, but still not working.

I suspected that it's because the PR description is not uploaded after edited for some reason. In order to verify this assumption, I rehashed the commit, which will most likely trigger the whole pipeline, and the error is gone.

For now, I figured that it may be helpful to include this as temp workaround in the error output.

List which issues are fixed by this PR. You must list at least one issue.
flutter/flutter#95594

No version change:
This is only CI script.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences] *
    (I used [script] since it's not a plugin specific change)
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

This should include test changes.

@@ -577,7 +577,9 @@ ${indentation}The first version listed in CHANGELOG.md is $fromChangeLog.
'repository policy. If this is a false positive, please '
'add a line starting with\n'
'$_missingVersionChangeJustificationMarker\n'
'to your PR description with an explanation of why it is exempt.');
'to your PR description with an explanation of why it is exempt.'
'If editing PR description does not work, try rehashing your '
Copy link
Contributor

Choose a reason for hiding this comment

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

What does "rehashing" mean? I can maybe guess, but it's not a standard git term that I've ever encountered, so it's not clear that this would clarify for most readers.

I don't think we wast to say "if editing does not work", since that could also happen if, say, someone typos the marker; we should more clearly state that triggerring a re-run won't work.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should also add this to the !hasChangelogChange message.

@godofredoc godofredoc changed the base branch from master to main January 6, 2022 22:41
@stuartmorgan-g
Copy link
Contributor

@hellohuanlin Are you still planning on finishing this PR?

@hellohuanlin
Copy link
Contributor Author

@stuartmorgan Yes. I plan to do it after camera work is done, as I may need to look into how to run this script.

@stuartmorgan-g stuartmorgan-g marked this pull request as draft March 10, 2022 21:33
@hellohuanlin hellohuanlin reopened this May 17, 2022
@hellohuanlin
Copy link
Contributor Author

Close it for now. Will get back to it when I get a chance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants