Skip to content

Check if this Pull Request can be conflict after other Pull Requests merged

License

Notifications You must be signed in to change notification settings

cynkra/potential-conflicts-checker-action

 
 

Repository files navigation

potential-conflicts-checker-action

When pull requests are created or updated, this action compare all other pull requests and then leaves comments on the pull requests if same files are changed, and there is any possibility to be conflicted when other pull requests merged first.

conflicts comment

Usage

You can create a .github/workflows/pr-conflicts.yml file:

name: check potential conflicts
on: pull_request

jobs:
  build:
    name: potential-conflicts-checker
    runs-on: ubuntu-latest
    steps:
      - uses: cynkra/[email protected]
        with:
          ghToken: ${{ secrets.GITHUB_TOKEN }}

This will trigger the action when a pull request is opened or updated. You'll need to include the ghToken environment variable!

License

Licensed under the MIT license.

About

Check if this Pull Request can be conflict after other Pull Requests merged

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.5%
  • Dockerfile 2.5%