Skip to content

Conversation

@Joe-Downs
Copy link
Owner

This adds comments onto the pull request containing what caused the commit
checks to fail, if any, and suggests fixes to the user. If no errors are raised,
no comment is made.

Because we need the PR object twice, check_github_pr_description() was also
changed to have the PR object passed into it; the PR object is gotten with a new
function, get_github_pr().

@github-actions
Copy link

github-actions bot commented Aug 1, 2022

Hello! The Git Commit Checker CI bot found a few problems with this PR:

47342fa: wip

  • check_signed_off: does not contain a valid Signed-off-by line
    a04b4c8: git-commit-checks: comment on PR with error(s)
  • check_signed_off: does not contain a valid Signed-off-by line
    Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@github-actions
Copy link

github-actions bot commented Aug 1, 2022

Hello! The Git Commit Checker CI bot found a few problems with this PR:

46626ff: wip

  • check_signed_off: does not contain a valid Signed-off-by line

47342fa: wip

  • check_signed_off: does not contain a valid Signed-off-by line

a04b4c8: git-commit-checks: comment on PR with error(s)

  • check_signed_off: does not contain a valid Signed-off-by line

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@github-actions
Copy link

github-actions bot commented Aug 2, 2022

Hello! The Git Commit Checker CI bot found a few problems with this PR:

46626ff: wip

  • check_signed_off: does not contain a valid Signed-off-by line

47342fa: wip

  • check_signed_off: does not contain a valid Signed-off-by line

a04b4c8: git-commit-checks: comment on PR with error(s)

  • check_signed_off: does not contain a valid Signed-off-by line

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

Hello! The Git Commit Checker CI bot found a few problems with this PR:

a12e36e: wip

  • check_signed_off: does not contain a valid Signed-off-by line

118a419: wip

  • check_signed_off: does not contain a valid Signed-off-by line

46626ff: wip

  • check_signed_off: does not contain a valid Signed-off-by line

47342fa: wip

  • check_signed_off: does not contain a valid Signed-off-by line

a04b4c8: git-commit-checks: comment on PR with error(s)

  • *check_signed_off: does not contain a valid Signed-off-by line

Additional errors could not be shown...
Please click here for a full list of errors.

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

Hello! The Git Commit Checker CI bot found a few problems with this PR:

4344306: wip

  • *chec

[Additional errors could not be shown...]
Please click here for a full list of errors.

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

Hello! The Git Commit Checker CI bot found a few problems with this PR:

0a56b0d: wip

  • check_signed_off: does not contain a valid Signed-off-by line

4344306: wip

  • check_signed_off: does not contain a valid Signed-off-by line

a12e36e: wip

  • check_signed_off: does not contain a valid Signed-off-by line

118a419: wip

  • check_signed_off: does not contain a valid Signed-off-by line

46626ff: wip

  • check_signed_off: does not contain a valid Signed-off-by line

47342fa: wip

  • check_signed_off: does not contain a valid Signed-off-by line

a04b4c8: git-commit-checks: comment on PR with error(s)

  • check_signed_off: does not contain a valid Signed-off-by line

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

Hello! The Git Commit Checker CI bot found a few problems with this PR:

3090f24: wip

  • check_signed_off: does not contain a valid Signed-off-by line

0a56b0d: wip

  • check_signed_off: does not contain a valid Signed-off-by line

4344306: wip

  • check_signed_off: does not contain a valid Signed-off-by line

a12e36e: wip

  • check_signed_off: does not contain a valid Signed-off-by line

118a419: wip

  • *check_signed_off: does not contain a valid Signed-off-b

Additional errors could not be shown...
Please click here for a full list of errors.

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

Hello! The Git Commit Checker CI bot found a few problems with this PR:

c90c631: wip

  • check_signed_off: does not contain a valid Signed-off-by line

3090f24: wip

  • *check_signed_off: does not contain a val

Additional errors could not be shown...
Please click here for a full list of errors.

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

Hello! The Git Commit Checker CI bot found a few problems with this PR:

5b0a78b: wip

  • check_signed_off: does not contain a valid Signed-off-by line

c90c631: wip

  • *check_signed_off: does not contain a val

Additional errors could not be shown...
Please click here for a full list of errors.

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

Hello! The Git Commit Checker CI bot found a few problems with this PR:

d6adefc: wip

  • check_signed_off: does not contain a valid Signed-off-by line

5b0a78b: wip

  • check_signed_off: does not contain a valid Signed-off-by line

c90c631: wip

  • check_signed_off: does not contain a valid Signed-off-by line

3090f24: wip

  • check_signed_off: does not contain a valid Signed-off-by line

0a56b0d: wip

  • check_signed_off: does not contain a valid Signed-off-by line

4344306: wip

  • check_signed_off: does not contain a valid Signed-off-by line

a12e36e: wip

  • check_signed_off: does not contain a valid Signed-off-by line

118a419: wip

  • check_signed_off: does not contain a valid Signed-off-by line

46626ff: wip

  • check_signed_off: does not contain a valid Signed-off-by line

47342fa: wip

  • check_signed_off: does not contain a valid Signed-off-by line

a04b4c8: git-commit-checks: comment on PR with error(s)

  • check_signed_off: does not contain a valid Signed-off-by line

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@Joe-Downs Joe-Downs force-pushed the pr/commit-checker-messages branch 2 times, most recently from f2208e9 to 08d0430 Compare August 3, 2022 03:32
Copy link
Collaborator

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

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

Looks great! Let's PR this to the main OMPI repo.

This adds comments onto the pull request containing what caused the commit
checks to fail, if any, and suggests fixes to the user. If no errors are raised,
no comment is made.

GitHub says there's a limit of 65536 characters on comments. If the bot's
comment is over that limit, it will truncate the comment to fit, and add a
message explaining where the remaining errors can be found. Unfortunately, the
GitHub API doesn't seem to provide a job's unique ID for linking to a job
run (this is different than an action run: ".../runs/..." vs
".../actions/runs/...", respectively), so we can't directly link to the error
messages printed to the console. Additionally, to create this link, two new
environment variables are used: GITHUB_RUN_ID and GITHUB_SERVER_URL.

Because we need the PR object twice, check_github_pr_description() was also
changed to have the PR object passed into it; the PR object is gotten with a new
function, get_github_pr().

The GitHub action configuration was changed to run on pull_request_target,
instead of pull_request. This allows the action to be run in the context of the
base of the PR, rather than in the context of the merge commit. Therefore, the
action is run even if the PR has merge conflicts.

Signed-off-by: Joe Downs <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants