-
Notifications
You must be signed in to change notification settings - Fork 132
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
Make check-whitespace
failures more helpful
#1444
Conversation
/preview |
Preview email sent as pull.1444.git.1670978180450.gitgitgadget@gmail.com |
@dscho Would you like any changes to the wording before I submit this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for working on this @webstech!
I just left a couple comments, hopefully they are helpful.
There are issues in commit 97300b4: |
Have I missed finding a config option to always sign off commits in a repo? |
00ff845
to
cdc2b1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be so nice for contributors who run into white-space problems!
/submit |
Submitted as pull.1444.git.1671179520.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
Make the errors more visible by adding them to the job summary and display the git commands that will usually fix the problem. Signed-off-by: Chris. Webster <chris@webstech.net>
A message in the step log will refer to the Summary output. The job summary output is using markdown to improve readability. The git commands and commits with errors are now in ordered lists. Commits and files in error are links to the user's repository. Signed-off-by: Chris. Webster <chris@webstech.net>
Get rid of deprecation warnings in the CI runs. Also gets the latest security patches. Signed-off-by: Chris. Webster <chris@webstech.net>
Sadly, no. There is indeed no config option for that yet. |
@dscho fyi, there are missing reply emails to the Jobs in run #164801
Jobs in run #164803
|
But I may have made that impossible with the push I did yesterday. Sorry about that. |
{
"resource":"PullRequestReviewComment",
"code":"custom",
"field":"pull_request_review_thread.line",
"message":"pull_request_review_thread.line must be part of the diff"
}, {
"resource":"PullRequestReviewComment",
"code":"missing_field",
"field":"pull_request_review_thread.diff_hunk"
} Hmm. It would appear that the Having said that, it looks as if we already specify the |
So, I just experimented a bit with the REST API calls and it would appear that the API got a lot stricter. Not only does the commit have to be part of the PR, the To prove that that works, I hard-coded a few values and created a2b5f3e#discussion_r1052695200 (which is bogus, of course, as the comments target a different commit, one that is no longer part of the PR's commit range). @webstech honestly, I do not really know yet how to proceed from here. |
It worked when I changed My initial thought is to grab the line number from the /submit email in |
/submit |
Submitted as pull.1444.v2.git.1671496548.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
From job 165116, git/git notes do not have the commit?
|
This branch is now known as |
This patch series was integrated into seen via git@b82d87b. |
@webstech the
Makes sense, but what if an email comes in that comments on a commit that has hence been force-pushed out of the PR range? My current thinking is that we should fall back to This sounds slightly involved, and I will sadly not have time to implement any of it.
The reason why this was not attached to a commit is that the reply was to a single-patch contribution whose Message-Id starts with |
For future reference, there was some discussion on the git mailing list. |
On the Git mailing list, Đoàn Trần Công Danh On 2022-12-20 22:08:58-0800, Chris Webster <chris@webstech.net> wrote:
> On Tue, Dec 20, 2022 at 5:53 PM Đoàn Trần Công Danh
> <congdanhqx@gmail.com> wrote:
> > Yes, I think, a patch to move the whole block into a script, maybe in
> > ci/ folder.
>
> Maybe before the next patch or someone could create a check-whitespace
> workflow action. Can this patch move forward? A script would involve
> validating parameters or env variables that are just workflow context
> expressions now (ie more complexity).
I would say, we can just check an environment variables specific to
GitHub Action, and print a warning if it's missing. Other than that,
just process as normal.
> > > I am not sure what you mean.
> >
> > I mean we can write:
> >
> > echo 'Run `git rebase ...` to correct the problem'
> >
> > With single quote, we need less escape.
>
> What about ${lastcommit}? Yes, there is more than one way to do it.
Ah, I misread that part. Sorry.
--
Danh |
User |
@dscho What do you think about moving this to a git-for-windows owned workflow action? Moves the code out of the git repo. Would that be acceptable or is it too unmanaged for the git owners? |
This patch series was integrated into seen via git@9e7fbaf. |
There was a status update in the "New Topics" section about the branch CI updates. Will merge to 'next'? source: <pull.1444.v2.git.1671496548.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@4dab7fb. |
This patch series was integrated into seen via git@11d56af. |
This patch series was integrated into seen via git@3eaccb1. |
@webstech If they concretely asked to move it out, sure, let's do it. If they haven't been clear about that request, they might not accept the patch to move it out, and then we will have wasted a whole lot of our precious time. So it really depends on whether you get a clear answer to that question whether it would be acceptable or whether it would be too unmanaged. |
This patch series was integrated into seen via git@ea98484. |
There was a status update in the "Cooking" section about the branch CI updates. We probably want a clean-up to move the long shell script embedded in yaml file into a separate file, but that can come later. Will merge to 'next'. source: <pull.1444.v2.git.1671496548.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@37f8928. |
This patch series was integrated into next via git@d3dc35f. |
Thanks for the input. The feeling so far appears to be to move it to a separate script. I asked because some other workflows in the git repo are using non-local scripts. |
There was a status update in the "Cooking" section about the branch CI updates. We probably want a clean-up to move the long shell script embedded in yaml file into a separate file, but that can come later. Will merge to 'master'. source: <pull.1444.v2.git.1671496548.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@7ec4ccc. |
This patch series was integrated into master via git@7ec4ccc. |
This patch series was integrated into next via git@7ec4ccc. |
Closed via 7ec4ccc. |
Add the errors to the job summary along with suggested commands to fix the problem. The commits and filenames are links.
This is for issue #1395. Sample job output:
cc: Đoàn Trần Công Danh
congdanhqx@gmail.com