Skip to content

edit-pr-comment does not work when using comment-on-pr-number #1382

Description

@tiffyuen

What happened?

When specifying comment-on-pr-number for a github workflow triggered by a pull request comment, pulumi bot will not run, only github-actions bot will run.

github-actions bot will not edit the comments made previously on the same pr number for the same stack, it will create a new comment instead.

Example

Github workflow code triggered by comment in pull requests:

      - name: Pulumi Preview
        uses: pulumi/actions@v6
        env:
          PULUMI_ACCESS_TOKEN: <some token>
        with:
          command: preview
          stack-name:staging
          work-dir: pulumi/staging
          plan: staging_plan.json
          message: |
            Please review this plan before proceeding.
          refresh: false
          pulumi-version: "v3.156.0"
          suppress-progress: true # suppress display of periodic progress dots to limit logs length
          always-include-summary: true # trim long pr comments from the front instead of the back
          comment-on-pr-number: "1234"
          edit-pr-comment: true

Output:
Image

Output of pulumi about

Only using pulumi/actions@v6 in github workflow. Version specified in the pulumi preview workflow step is v3.156.0.

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-feedbackBlocked on input from the authorkind/bugSome behavior is incorrect or out of spec

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions