# PR comment not triggering due to manual pending optional CI step

**URL:** <https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594>\
**Category:** Support\
**Tags:** circleci, github\
**Created:** [October 11, 2019, 7:05am UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594 "2019-10-11T07:05:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![amaidah](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@amaidah](https://community.codecov.com/u/amaidah)\
**Post date:** [October 11, 2019, 7:05am UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/1 "2019-10-11T07:05:15Z")

</div>

### Description

Our CI build workflow for every PR has the optional manual step of pushing that build to a “showcase” deployment:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/1X/21397c433e56132d1cc2edefff3ec20fa05d979a.png)

However due to this manual approval step Codecov will never post PR comments even though all the tests have passed. Is there a way to exclude codecov from waiting for optional steps?

```auto
workflows:
  version: 2
  build_and_test:
    jobs:
      - browser-tests
      - jest-tests
      - approve-showcase:
          requires:
            - jest-tests
          type: approval
          filters:
            branches:
              ignore:
                - master
      - deploy-showcase:
          requires:
            - approve-showcase
      - deploy-staging:
          requires:
            - jest-tests
          filters:
            branches:
              only:
                - master
      - manual-approval:
          type: approval
          requires:
            - deploy-staging
      - deploy-production:
          requires:
            - manual-approval

```

[![Imgur](https://i.imgur.com/vThDSXc.png "imgur.com") ](https://imgur.com/vThDSXc)  
[![Imgur](https://i.imgur.com/Q1YQ6Rq.png "imgur.com") ](https://imgur.com/Q1YQ6Rq)

### Repository

Private repo

### Versions

```auto
version: 2.1
orbs:
  codecov: codecov/codecov@1.0.5

```

Would really appreciate any help in getting the PR comments to enable for our usecase as this is an awesome tool!

---

<div class="post-metadata">

**Author:** ![drazisil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drazisil/32/496_2.png) [@drazisil](https://community.codecov.com/u/drazisil)\
**Post date:** [October 11, 2019, 4:18pm UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/2 "2019-10-11T16:18:12Z")

</div>

Hi @amaidah

I thinbk the only way around this would be to disable waiting on all checks with the following code in you `codecov.yml`

```auto
codecov:
  require_ci_to_pass: no

```

Let me know if that works for you.

---

<div class="post-metadata">

**Author:** ![amaidah](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@amaidah](https://community.codecov.com/u/amaidah)\
**Post date:** [October 11, 2019, 5:22pm UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/3 "2019-10-11T17:22:36Z")

</div>

Hi @drazisil, thanks for the quick response.

Unfortunately I have that setting already enabled:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/1X/12a9950d87f743d316c5e7a30d6e1f7dfdf75ad5.png)

Is there no other way?

I am looking at this: [Merging Reports](https://docs.codecov.io/docs/merging-reports#section-why-did-i-not-receive-a-notification-yet-)

```auto
If the CI status is "pending", please wait until the CI is complete.

```

and it looks like codecov is going to wait until the CI status is completely finished.

---

<div class="post-metadata">

**Author:** ![drazisil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drazisil/32/496_2.png) [@drazisil](https://community.codecov.com/u/drazisil)\
**Post date:** [October 11, 2019, 5:34pm UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/4 "2019-10-11T17:34:57Z")

</div>

Yes. Codecov doesn’t have a way to know if a status is CI or not, so it treats all non-Codecov statues as CI.

Even if that were not the case, the status that’s gated behind the approval step would still be a CI status, and we do not have a means to indicate to only ignore certain ones.

---

<div class="post-metadata">

**Author:** ![amaidah](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@amaidah](https://community.codecov.com/u/amaidah)\
**Post date:** [October 11, 2019, 6:44pm UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/5 "2019-10-11T18:44:15Z")

</div>

> Even if that were not the case, the status that’s gated behind the approval step would still be a CI status, and we do not have a means to indicate to only ignore certain ones.

I see, thanks for the response. Our setup isn’t uncommon though. I’m wondering if support for this feature is on the roadmap for near term release?

---

<div class="post-metadata">

**Author:** ![drazisil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drazisil/32/496_2.png) [@drazisil](https://community.codecov.com/u/drazisil)\
**Post date:** [October 14, 2019, 3:19pm UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/8 "2019-10-14T15:19:59Z")

</div>

I’m not sure about the roadmap for this feature. I have surfaced it to our product team for them to review. Thanks for suggesting it!

---

<div class="post-metadata">

**Author:** ![flipace](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/flipace/32/987_2.png) [@flipace](https://community.codecov.com/u/flipace)\
**Post date:** [July 29, 2020, 5:45pm UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/9 "2020-07-29T17:45:18Z")

</div>

I just stumbled upon this. We have exactly the same problem. A few workflow steps with manual approval which keep the job status on “pending”.

If there’s no way in codecov to work around this (i was looking for an option in the config as well as a flag which i could pass to codecov-bash to indicate that it shouldnt wait on completion or the ci jobs) it would render codecov not a viable option for us ☹

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 29, 2020, 5:48pm UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/10 "2020-07-29T17:48:11Z")

</div>

Hi @flipace, you can try setting [this](https://docs.codecov.io/docs/codecovyml-reference#codecovrequire_ci_to_pass) to false in your `codecov.yml`

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 29, 2020, 5:48pm UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/11 "2020-07-29T17:48:48Z")

</div>

For notifications, you can also use [this](https://docs.codecov.io/docs/codecovyml-reference#codecovnotifywait_for_ci).

---

<div class="post-metadata">

**Author:** ![flipace](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/flipace/32/987_2.png) [@flipace](https://community.codecov.com/u/flipace)\
**Post date:** [July 29, 2020, 6:21pm UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/12 "2020-07-29T18:21:02Z")

</div>

@tom thanks a lot for the fast response! Setting `notify.wait_for_ci` to false did the trick.

This may be worth mentioning in the documentation somewhere so that others don’t have to search through the community for this (“When using CircleCI workflows with a manual approval step, you have to set this to false to trigger PR comments”…)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 29, 2020, 7:00pm UTC](https://community.codecov.com/t/pr-comment-not-triggering-due-to-manual-pending-optional-ci-step/594/13 "2020-07-29T19:00:29Z")

</div>

Thanks @flipace, I have added it as an item [here](https://docs.codecov.io/docs/common-recipe-list#send-coverage-notifications-even-if-all-ci-statuses-have-not-completed)
