1

I have created a github repo and deployed a simple HTML, CSS and JS website on it.

I want to create a github bot to automatically filter the pull request on the following basis:

If only the JS file is changed then the pull request is valid else it is invalid

Is it really possible to do that? Thanks a lot for your help

1 Answers1

0

You could use a GitHub Action for that.

For instance, banyan/auto-label applies label based on file type.

In your case, fork that repository, and make your own GitHub Action in order to reject the PR if you detect a file whose extension is not the one set in your action.

A rejection ("mergeability of PR") can involve status check policy.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250