Skip to content

The process of dependency updates using dependabot is hindered #571

@XiShanYongYe-Chang

Description

@XiShanYongYe-Chang

Hello, maintainers~

We recently improved in our repo by using dependabot to automatically upgrade dependencies. However, we encountered an issue: some of the dependencies in this repository are for the node.js environment, and their package prefixes include the '@' symbol. When dependabot submits a PR, it includes the package name in the commit message and the PR title, like this:

build(deps-dev): bump @changesets/cli from 2.27.6 to 2.29.8 in /u

You can also check it in karmada-io/dashboard#326

In addition, the repo also uses prow for label management. However, the invalidcommitmsg plugin does not allow commit messages to contain the '@' symbol, nor does it allow the title of a Pull Request to contain the '@' symbol. This creates a conflict: we need to manually remove the '@' symbol from the PR title and modify the commit message accordingly.

invalidCommitMsgCommentBody = `[Keywords](https://help.github.com/articles/closing-issues-using-keywords) which can automatically close issues and at(@) or hashtag(#) mentions are not allowed in commit messages.

invalidTitleCommentBody = `[Keywords](https://help.github.com/articles/closing-issues-using-keywords) which can automatically close issues and at(@) mentions are not allowed in the title of a Pull Request.

I checked the relevant commit information and found that this was done to prevent a large amount of spam emails.

I conducted a test in my public repository by including the "@" symbol in the commit message or PR title, followed by specifying a real GitHub account. The owner of this account did not receive any email, even though they had set up email notifications and their notification settings for the repository were set to "Participating and @mentions." In addition, I checked the relevant information provided by GitHub Configuring notifications, which does not seem to indicate that including the "@" symbol in commit messages or PR titles would trigger the platform to send emails to the specified GitHub account.

If my testing method was incorrect, please help me correct it. Thank you!

Based on the above background, I would like to consult whether the check rule for the "@" symbol in the invalidcommitmsg plugin is still necessary. Could there be a configurable option to allow users to choose to skip the check for the "@" symbol?

Looking forward to your reply, thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions