Github Pull Request After Octopus Deployment

(Adam Wieckert) #1

Hey there,

I am looking for resources on how to have Octopus create a Github pull request (PR) after deployment.

It would nice to have Octopus trigger a PR for the branch it just deployed into our master branch.

There may be multiple ways to do this, i.e. have Octopus run a script after deployment or trigger a github action potentially.

Wondering if someone can point me in the right direction for accomplishing this task.

Thanks,
Adam

(Ziaul Islam) #3

Hi Adam.

Welcome to Octopus!

There are a few things that come to mind when doing this task.

the simplest by far would be to look at the community library steps - which have loads of great content from you to look at which will make life easier for you.

To view step templates, you will need to go to:

I can see:

https://library.octopus.com/step-templates/5c08170d-e919-4afe-9da3-7616c797d42b

You may need to tweak the script slightly to suit your needs, but the bulk of the work is done for you.

https://git-scm.com/docs/git-request-pull#_examples

I hope this answers your question.

Kind regards,
Ziaul