# How to read github PR template during build?

**URL:** <https://discuss.circleci.com/t/how-to-read-github-pr-template-during-build/49826>\
**Category:** Build Environment\
**Tags:** github\
**Created:** [November 10, 2023, 10:00am UTC](https://discuss.circleci.com/t/how-to-read-github-pr-template-during-build/49826 "2023-11-10T10:00:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![wyardley](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/wyardley/32/19231_2.png) [@wyardley](https://discuss.circleci.com/u/wyardley)\
**Post date:** [November 16, 2023, 1:03am UTC](https://discuss.circleci.com/t/how-to-read-github-pr-template-during-build/49826/2 "2023-11-16T01:03:48Z")

</div>

I don’t have a perfect answer for you, but one thought is that this may be somewhat hard to accomplish in a perfect / clean way with CircleCI, because I don’t believe it’s possible to have it sync every time the PR description (or comments) are added / edited the way you might be able to with GHA.

If the goal is to skip that test based on the state of the PR description when the PR is first opened, and the project has “only build pull requests” set, you _might_ be able to write a shell script to

- get the PR description for the current PR
- run the test if the description matches a specific regex or
- if not, exit 0

but in that case, the step would show up as passed vs skipped.

You could possibly use setup workflows and [advanced logic](https://discuss.circleci.com/t/advanced-logic-in-config/36011/3) to set a parameter in an initial step, then pass that to run a downstream workflow conditionally. I think you’d have the same limitation where the workflow would only trigger again if the branch were pushed to, or the workflow explicitly triggered.

A hackier way that might or might not work for your use case would be to key on branch name (i.e., skip a workflow if the branch name matches a particular pattern).

---

_[View the full topic](https://discuss.circleci.com/t/how-to-read-github-pr-template-during-build/49826)._
