Skip to content

ci: automatically add Reviewed-by trailer when Accepted label is set#8083

Closed
pbrezina wants to merge 1 commit intoSSSD:masterfrom
pbrezina:reviewedby
Closed

ci: automatically add Reviewed-by trailer when Accepted label is set#8083
pbrezina wants to merge 1 commit intoSSSD:masterfrom
pbrezina:reviewedby

Conversation

@pbrezina
Copy link
Member

@pbrezina pbrezina commented Aug 22, 2025

This introduce new workflow that is run when Accepted label is set.
It appends Reviewed-by trailers to all commits in the pull request for
all reviewers that ack-ed it.

  • It is skipped if Accepted label is missing/removed
  • It is no-op success if PR was synchronized after label was set (this
    is required to make it green as it is automatically re-run when the
    job finishes as a side effect to pushing to this repository)
  • It adds the trailers when Accepted label is added

It uses secrets.BOT_TOKEN and SSSD_AUTHORS variable that contains
mapping from github account to name and email.

Since PR CI is restarted when commits with Reviewed-by are pushed, the
job also submits comment with current PR CI status, so it is not lost
and we do not have to necessarily wait for new PR CI run to finish.


PR comment example: pbrezina#86 (comment)

SSSD_AUTHORS variable can be edited here: https://github.com/SSSD/sssd/settings/variables/actions/SSSD_AUTHORS

@gemini-code-assist
Copy link

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@pbrezina
Copy link
Member Author

This PR should be merged together with #8078, then we can stop using the push script.

This introduce new workflow that is run when Accepted label is set.
It appends Reviewed-by trailers to all commits in the pull request for
all reviewers that ack-ed it.

* It is skipped if Accepted label is missing/removed
* It is no-op success if PR was synchronized after label was set (this
  is required to make it green as it is automatically re-run when the
  job finishes as a side effect to pushing to this repository)
* It adds the trailers when Accepted label is added

It uses secrets.BOT_TOKEN and SSSD_AUTHORS variable that contains
mapping from github account to name and email.

Since PR CI is restarted when commits with Reviewed-by are pushed, the
job also submits comment with current PR CI status, so it is not lost
and we do not have to necessarily wait for new PR CI run to finish.
@alexey-tikhonov
Copy link
Member

Let's try this :)

Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

LGTM!

@pbrezina
Copy link
Member Author

pbrezina commented Nov 4, 2025

Pushed PR: #8083

  • master
    • 85c1e4f - ci: automatically add Reviewed-by trailer when Accepted label is set
  • sssd-2-10
    • f4e7c54 - ci: automatically add Reviewed-by trailer when Accepted label is set
  • sssd-2-11
    • e2e34d9 - ci: automatically add Reviewed-by trailer when Accepted label is set
  • sssd-2-8
    • 6f90b05 - ci: automatically add Reviewed-by trailer when Accepted label is set
  • sssd-2-9-4
    • 25aab5b - ci: automatically add Reviewed-by trailer when Accepted label is set

@pbrezina pbrezina added Pushed and removed Accepted labels Nov 4, 2025
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