How to use PR title in config.yml?

ios
circle.yml

#1

My job has this step:

  - run: 
      name: Build, run tests, submit to TestFlight
      command: fastlane beta whatsnew:"Comment goes here"

“Comment goes here” is a great candidate to be replaced by pull request title I’m merging to the current branch. How to get PR title and probably set it as env variable? Or may be there’s another better way to achieve what I need?


#2

Open up a build you’ve already run, open up the “Spin up Environment”, and you’ll see 20 or so env vars that are set for you to use. Perhaps your PR title is supplied in here?

If not, perhaps you can use the Git hash in CIRCLE_SHA1 to retrieve it from your repo?


#3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.