Wrong data in Webhook payload for Workflows

notifications
workflow
cci-20

#1

Webhook payload in circle.yml notify: webhooks: url reports some wrong data, when using with CircleCI 2.0 Workflows.

At the moment the following was found:

  1. "has_artifacts": true for the workflow sub-task which doesn’t have any artifacts uploaded. (hint: another sub-task in the workflow had artifacts uploaded). Ex build: https://circleci.com/gh/StackStorm/st2/5198 had:
{
  "body": {
    "payload": {
      "compare": "https://github.com/StackStorm/st2/compare/8ccc33476e96...0889212d1da7",
      "vcs_url": "https://github.com/StackStorm/st2",
      "build_url": "https://circleci.com/gh/StackStorm/st2/5198",
      "has_artifacts": true, <!-- should be 'false' --->
  1. For the master branch commit like Merge pull request #3625 ... triggers the build which posts webhook with pull_requests data, which shouldn’t be there (since the build is not part of PR, otherwise how to know what is PR and what’s not). More than that, it points to some unknown PR URL. Example:
{
  "body": {
    "payload": {
      "compare": "https://github.com/StackStorm/st2/compare/8ccc33476e96...0889212d1da7",
      "vcs_url": "https://github.com/StackStorm/st2",
      "build_url": "https://circleci.com/gh/StackStorm/st2/5198",
      "pull_requests": [ <!-- should be empty list --->
        {
          "url": "https://github.com/StackStorm/st2/pull/3383",
          "head_sha": "0889212d1da7cf1f5dc3a932d650fb67843d9dd9"
        }
      ],
  ...

#2

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