Skip to content

Conversation

asbjornu
Copy link
Member

@asbjornu asbjornu commented Mar 3, 2022

This PR should disable Mergify's merge action in forks of GitVersion.

Description

As it's impossible to disable Dependabot in a fork (see dependabot/dependabot-core#2804), this PR disables Mergify's merge action when repository-full-name is different from GitTools/GitVersion. Forks will still receive Dependabot pull requests, but at least they won't be automatically merged (see asbjornu#94 as an example), forcing the fork to reset and force-push:

git checkout main
git fetch upstream
git reset --hard upstream/main
git push --force

How Has This Been Tested?

I haven't tested using repository-full-name anywhere before, so I'm just hoping this is going to work. I guess we'll have to wait and see until the next Dependabot PR is received.

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@asbjornu asbjornu requested a review from arturcic March 3, 2022 13:52
@asbjornu asbjornu added this to the 5.x milestone Mar 3, 2022
@arturcic arturcic merged commit 3297736 into GitTools:main Mar 3, 2022
@mergify
Copy link
Contributor

mergify bot commented Mar 3, 2022

Thank you @asbjornu for your contribution!

@asbjornu asbjornu deleted the feature/disable-mergify-on-forks branch March 3, 2022 15:14
@arturcic arturcic modified the milestones: 5.x, 5.8.3 Mar 5, 2022
@arturcic arturcic added the build label Mar 5, 2022
@github-actions
Copy link

github-actions bot commented Mar 5, 2022

🎉 This issue has been resolved in version 5.8.3 🎉
The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants