Skip to content

[Merged by Bors] - feat: trigger automated Zulip emojis via bors x command#19371

Closed
adomani wants to merge 10 commits intomasterfrom
adomani/emoji_on_bors
Closed

[Merged by Bors] - feat: trigger automated Zulip emojis via bors x command#19371
adomani wants to merge 10 commits intomasterfrom
adomani/emoji_on_bors

Conversation

@adomani
Copy link
Copy Markdown
Contributor

@adomani adomani commented Nov 22, 2024

Changes the way in which emoji reactions to delegated, ready-to-merge and merged are applied in Zulip: instead of running periodically a script to add the reactions, the reactions are now applied at the same time that the label is applied, or when PRs are merged into master.


The test PR is #19367: I was using #19367 as PR to test, but the mechanism to apply/remove the labels was simply using push, since triggering the action with a comment could only be done if the script was already on master.

Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 22, 2024

PR summary 31616311bf

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions bot added the CI Modifies the continuous integration setup or other automation label Nov 22, 2024
@adomani adomani mentioned this pull request Nov 22, 2024
Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Instead of the current "narrow" in the zulip search, I think we should search for messages that include the PR_NUMBER. That will be a much more efficient zulip search.

@jcommelin jcommelin added the awaiting-author A reviewer has asked the author a question or requested changes. label Nov 23, 2024
@adomani adomani removed the awaiting-author A reviewer has asked the author a question or requested changes. label Nov 23, 2024
@adomani
Copy link
Copy Markdown
Contributor Author

adomani commented Nov 23, 2024

I removed the narrow restriction, but I could not find a way to filter directly with the Zulip python API all the messages that contain a given PR number. Do you know if it is possible/how to do it? EDIT: I believe that I now filtered all messages that contain the appropriate link.

Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 25, 2024

✌️ adomani can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Nov 25, 2024
@adomani
Copy link
Copy Markdown
Contributor Author

adomani commented Nov 25, 2024

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Nov 25, 2024
mathlib-bors bot pushed a commit that referenced this pull request Nov 25, 2024
Changes the way in which emoji reactions to `delegated`, `ready-to-merge` and `merged` are applied in Zulip: instead of running periodically a script to add the reactions, the reactions are now applied at the same time that the label is applied, or when PRs are merged into master.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 25, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: trigger automated Zulip emojis via bors x command [Merged by Bors] - feat: trigger automated Zulip emojis via bors x command Nov 25, 2024
@mathlib-bors mathlib-bors bot closed this Nov 25, 2024
@mathlib-bors mathlib-bors bot deleted the adomani/emoji_on_bors branch November 25, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Modifies the continuous integration setup or other automation delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants