Skip to content

Approve without body#11

Merged
soehms merged 18 commits intosync_labels_fixes_part2from
approve_without_body
Oct 19, 2023
Merged

Approve without body#11
soehms merged 18 commits intosync_labels_fixes_part2from
approve_without_body

Conversation

@soehms
Copy link
Copy Markdown
Owner

@soehms soehms commented Sep 26, 2023

This PR implements the requested changes of sagemath#36292 (comment).

Furthermore a couple of issues are fixed wich occur while testing it (see item 5. ... 9. in the header of sagemath#36292).

📝 Checklist

  • The title is concise, informative, and self-explanatory.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation accordingly.

⌛ Dependencies

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Sep 26, 2023

@kwankyu
Copy link
Copy Markdown
Collaborator

kwankyu commented Sep 27, 2023

NFO:root:PR pull request #11 can be approved by kwankyu
Traceback (most recent call last):
  File "/home/runner/work/sage/sage/.github/sync_labels.py", line 913, in <module>
    gh.run(action, label=label, rev_state=rev_state)
  File "/home/runner/work/sage/sage/.github/sync_labels.py", line 785, in run
    self.on_label_add(label)
  File "/home/runner/work/sage/sage/.github/sync_labels.py", line 715, in on_label_add
    self.approve()
  File "/home/runner/work/sage/sage/.github/sync_labels.py", line 560, in approve
    self.review('--approve')
  File "/home/runner/work/sage/sage/.github/sync_labels.py", line 554, in review
    self.gh_cmd('review', arg)
TypeError: GhLabelSynchronizer.gh_cmd() missing 1 required positional argument: 'option'
Error: Process completed with exit code 1.

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

@kwankyu requested changes for this PR

Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

LGTM.

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Sep 27, 2023

NFO:root:PR pull request #11 can be approved by kwankyu
Traceback (most recent call last):
  File "/home/runner/work/sage/sage/.github/sync_labels.py", line 913, in <module>
    gh.run(action, label=label, rev_state=rev_state)
  File "/home/runner/work/sage/sage/.github/sync_labels.py", line 785, in run
    self.on_label_add(label)
  File "/home/runner/work/sage/sage/.github/sync_labels.py", line 715, in on_label_add
    self.approve()
  File "/home/runner/work/sage/sage/.github/sync_labels.py", line 560, in approve
    self.review('--approve')
  File "/home/runner/work/sage/sage/.github/sync_labels.py", line 554, in review
    self.gh_cmd('review', arg)
TypeError: GhLabelSynchronizer.gh_cmd() missing 1 required positional argument: 'option'
Error: Process completed with exit code 1.

I've fixed this. Can you try again?

github-actions[bot]
github-actions bot previously approved these changes Sep 27, 2023
Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

approving

Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

requesting changes again

github-actions[bot]
github-actions bot previously approved these changes Oct 17, 2023
Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

approving late

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

@kwankyu requested changes for this PR

Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

approving

Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

requesting changes again

@kwankyu
Copy link
Copy Markdown
Collaborator

kwankyu commented Oct 17, 2023

I am not sure if the message "dismissed the stale review because @kwankyu requested changes" is useful.

Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

approving

@kwankyu
Copy link
Copy Markdown
Collaborator

kwankyu commented Oct 17, 2023

The bot feels gentle now overall. I feel that the bot is supportive and not overly restrictive. I like it.

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

@kwankyu requested changes for this PR

github-actions[bot]
github-actions bot previously approved these changes Oct 17, 2023
@kwankyu
Copy link
Copy Markdown
Collaborator

kwankyu commented Oct 17, 2023

@kwankyu reverts decision --> @kwankyu reverted decision

Or perhaps all messages (after label changes) can be the same @kwankyu changed the review state.

@kwankyu
Copy link
Copy Markdown
Collaborator

kwankyu commented Oct 17, 2023

This is an old question: Which do you prefer "review state" or "review status"?

I was promoting "status label" because I thought that there is a hierarchy: "needs info -> needs work -> needs review -> positive review". Now I won't insist any more because I value consistency more. So whichever you prefer, I am willing to follow and want to update the developer guide with consistent terminology "state label" or "status label" depending on your decision.

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Oct 17, 2023

I am not sure if the message "dismissed the stale review because @kwankyu requested changes" is useful.

I agree. But unfortunately it is unavoidable when stale reviews are dismissed. The only thing I can change (but not omit) is the text in the box ("because @kwankyu requested changes").

The bot feels gentle now overall. I feel that the bot is supportive and not overly restrictive. I like it.

Thanks!

@kwankyu reverts decision --> @kwankyu reverted decision

Or perhaps all messages (after label changes) can be the same @kwankyu changed the review state.

I would prefer different messages because then it becomes clear where they are coming from.

This is an old question: Which do you prefer "review state" or "review status"?

I was promoting "status label" because I thought that there is a hierarchy: "needs info -> needs work -> needs review -> positive review". Now I won't insist any more because I value consistency more. So whichever you prefer, I am willing to follow and want to update the developer guide with consistent terminology "state label" or "status label" depending on your decision.

My observation is that GitHub consistently uses the term state (but consistency is not GitHub's strength). In Trac we were used to the term status (which sounds rather German to me). Therefore, one way to maintain consistency would be to use state for the GitHub review system and status for the labels inherited from Trac.

In my code I mostly used state for both cases, except in the log messages. All comments the bot posts use status. Personally, I would prefer a distinguished consistency as described above. If you don't like that, I would adopt the GitHub convention as Trac will disappear from our minds over time.

@kwankyu
Copy link
Copy Markdown
Collaborator

kwankyu commented Oct 17, 2023

I am not sure if the message "dismissed the stale review because @kwankyu requested changes" is useful.

I agree. But unfortunately it is unavoidable when stale reviews are dismissed. The only thing I can change (but not omit) is the text in the box ("because @kwankyu requested changes").

Then please make the message a complete sentence instead of starting with "because ...".

I would prefer different messages because then it becomes clear where they are coming from.

OK.

My observation is that GitHub consistently uses the term state (but consistency is not GitHub's strength). In Trac we were used to the term status (which sounds rather German to me).

Sounds Latin to me :-)

Therefore, one way to maintain consistency would be to use state for the GitHub review system and status for the labels inherited from Trac.

I like this too. This would be most comfortable to the most people.

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Oct 18, 2023

Then please make the message a complete sentence instead of starting with "because ...".

Done.

Therefore, one way to maintain consistency would be to use state for the GitHub review system and status for the labels inherited from Trac.

I like this too. This would be most comfortable to the most people.

Now, code and its output use the terms in this sense.

Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

requesting changes

Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

approving

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

@kwankyu requested changes for this PR

Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

approving again

Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

requesting changes.

github-actions[bot]
github-actions bot previously approved these changes Oct 19, 2023
Copy link
Copy Markdown
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

approving late

@kwankyu
Copy link
Copy Markdown
Collaborator

kwankyu commented Oct 19, 2023

Suggestion

Label Sync Hint: You don't need to remove status labels any more. You'd better just add the label which replaces it

--->

You don't need to remove status labels any more. You'd better just add the label which replaces it.

Note the period at the end.

@kwankyu
Copy link
Copy Markdown
Collaborator

kwankyu commented Oct 19, 2023

Otherwise I am happy with it.

@soehms
Copy link
Copy Markdown
Owner Author

soehms commented Oct 19, 2023

Suggestion

Label Sync Hint: You don't need to remove status labels any more. You'd better just add the label which replaces it

--->

You don't need to remove status labels any more. You'd better just add the label which replaces it.

Note the period at the end.

Done!

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