Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get contents of commit/pull request changes

Deleted user April 1, 2019

Hi there,

I am trying to create hook/webhook/script(maybe) to check the commit and pull, not only files that was changed, but the whole repo files containing code. 

So, the main purpose of whatever I need here, to get all contents of commit and/or pull request, and check for, let's say ip addresses, probably using regex. All the ip addresses should be in one properties file, each main branch(dev, release, master) has own properties file.

1 - check if any ip-address is present in code, let's say .py files.

2 - if commit is being pushed or pull requested is being merged to certain branch, let's say to release branch, contents release.properties file in workspace should be exactly the same as the one being pushed/merged to release server.

 

Options I have found:

1 - hook/webhook,

2 - bash script on ci/cd server.

3 - server where changes will be sent and checked.

 

The question is, which option would be the best one? 

 

Maybe anyone already implemented this, would be happy to read about your experience.

 

Thank you.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events