Skip to content
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

fix: remove automated contribution message #4131

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

thomaseizinger
Copy link
Contributor

Description

Unfortunately, the automated contribution message does not work properly. To evaluate this correctly, we need to first filter out all merge commits. To do this, we need to check the length of the parents property. I did not find a way to do this with jinja2 filters. Which would allow us to do something like rejectattr.

In the code snippet removed in this PR, I attempted to create a property to filter the merge commits on. This also doesn't work because the underlying object exposed by mergify is not a dictionary but a class and thus does not have the update function.

Mergify is shipping an additional property next month: Mergifyio/mergify#4636 (reply in thread). Thus, I am replacing this automated mechanism with a manual section that we can add to the PR until mergify ships the additional property that we can utilize to implement this in a clean way.

Related: #4130.
Related: #4104.

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

@thomaseizinger thomaseizinger added the trivial Marks PRs which are considered trivial and don't need approval from another maintainer. label Jun 27, 2023
@thomaseizinger
Copy link
Contributor Author

cc @mxinden

@thomaseizinger thomaseizinger merged commit 514e2e9 into master Jun 27, 2023
@thomaseizinger thomaseizinger deleted the fix/remove-automated-contribution branch June 27, 2023 21:22
Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Thanks for looking so deep into this!

{% endfor %}
{# GitHub requires that the `Co-authored-by` lines are AT THE VERY END of a commit, hence nothing must come after this. #}

{{ body | get_section("## Attributions", "") }}
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is only temporary so I am not too fussed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
trivial Marks PRs which are considered trivial and don't need approval from another maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants