{
 "merge_request": {
  "id": 236,
  "iid": 30,
  "project_id": 402,
  "title": "gitlab-ci: fix merge request pipelines",
  "description": "```\nBy default merge requests are not added to pipelines:\n\n  https://docs.gitlab.com/ee/ci/pipelines/merge_request_pipelines.html\n  -> \"Merge request pipelines: **Do not run by default.**\n\nAdding a \"rules\" attribute to a job does add it to a merge request\npipeline:\n\n  https://docs.gitlab.com/ee/ci/pipelines/merge_request_pipelines.html#use-rules-to-add-jobs\n  -> \"Use the rules keyword to configure jobs to run in merge request pipelines.\"\n\nHowever this does **not** automatically also add any dependency jobs\nlisted in \"needs\" to the merge request pipeline...\n\nOne way to fix this would be to add a \"rules\" attribute to all jobs.\nAnother option is to redefine the \"workflow\".\n\nLet's use the example specified here:\n\n  https://docs.gitlab.com/ee/ci/yaml/workflow.html#switch-between-branch-pipelines-and-merge-request-pipelines\n\nWhich is supposed to have less duplicate pipeline executions, compared\nto always running pipelines (if I understand correctly).\n\nSigned-off-by: Linus L\u00fcssing <linus.luessing@c0d3.blue>\n```",
  "state": "merged",
  "created_at": "2023-12-07T08:25:55.618Z",
  "updated_at": "2023-12-09T00:15:13.959Z",
  "merged_by": {
   "id": 4,
   "username": "tux",
   "public_email": "",
   "name": "Linus L\u00fcssing",
   "state": "active",
   "locked": false,
   "avatar_url": "https://secure.gravatar.com/avatar/136494b2c221809b086123f59384d25e22cd3d2131230a809b06551e12ba7bbb?s=80&d=identicon",
   "web_url": "https://git.chaotikum.org/tux"
  },
  "merge_user": {
   "id": 4,
   "username": "tux",
   "public_email": "",
   "name": "Linus L\u00fcssing",
   "state": "active",
   "locked": false,
   "avatar_url": "https://secure.gravatar.com/avatar/136494b2c221809b086123f59384d25e22cd3d2131230a809b06551e12ba7bbb?s=80&d=identicon",
   "web_url": "https://git.chaotikum.org/tux"
  },
  "merged_at": "2023-12-09T00:15:13.656Z",
  "closed_by": null,
  "closed_at": null,
  "target_branch": "master",
  "source_branch": "pr-fix-merge-pipeline",
  "user_notes_count": 0,
  "upvotes": 0,
  "downvotes": 0,
  "author": {
   "id": 4,
   "username": "tux",
   "public_email": "",
   "name": "Linus L\u00fcssing",
   "state": "active",
   "locked": false,
   "avatar_url": "https://secure.gravatar.com/avatar/136494b2c221809b086123f59384d25e22cd3d2131230a809b06551e12ba7bbb?s=80&d=identicon",
   "web_url": "https://git.chaotikum.org/tux"
  },
  "assignees": [],
  "assignee": null,
  "reviewers": [],
  "source_project_id": 552,
  "target_project_id": 402,
  "labels": [],
  "draft": false,
  "imported": false,
  "imported_from": "none",
  "work_in_progress": false,
  "milestone": null,
  "merge_when_pipeline_succeeds": false,
  "merge_status": "can_be_merged",
  "detailed_merge_status": "not_open",
  "merge_after": null,
  "sha": "52b62e20b3a645b1495bd7ac956b4cd40841ff12",
  "merge_commit_sha": null,
  "squash_commit_sha": null,
  "discussion_locked": null,
  "should_remove_source_branch": true,
  "force_remove_source_branch": true,
  "prepared_at": "2023-12-07T08:25:57.577Z",
  "allow_collaboration": true,
  "allow_maintainer_to_push": true,
  "reference": "!30",
  "references": {
   "short": "!30",
   "relative": "!30",
   "full": "freifunk-luebeck/site-ffhl!30"
  },
  "web_url": "https://git.chaotikum.org/freifunk-luebeck/site-ffhl/-/merge_requests/30",
  "time_stats": {
   "time_estimate": 0,
   "total_time_spent": 0,
   "human_time_estimate": null,
   "human_total_time_spent": null
  },
  "squash": false,
  "squash_on_merge": false,
  "task_completion_status": {
   "count": 0,
   "completed_count": 0
  },
  "has_conflicts": false,
  "blocking_discussions_resolved": true
 },
 "discussions": [
  {
   "id": "166d000c80e0a16972c147e7442f886ee5bb56a3",
   "reply_id": "166d000c80e0a16972c147e7442f886ee5bb56a3",
   "project_id": 402,
   "commit_id": null,
   "confidential": false,
   "diff_discussion": false,
   "expanded": true,
   "for_commit": false,
   "individual_note": true,
   "resolvable": false,
   "discussion_path": null,
   "resolved": false,
   "resolved_by_push": false,
   "resolved_by": null,
   "resolved_at": null,
   "resolve_path": "/freifunk-luebeck/site-ffhl/-/merge_requests/30/discussions/166d000c80e0a16972c147e7442f886ee5bb56a3/resolve",
   "resolve_with_issue_path": "/freifunk-luebeck/site-ffhl/-/issues/new?discussion_to_resolve=166d000c80e0a16972c147e7442f886ee5bb56a3&merge_request_id=236&merge_request_to_resolve_discussions_of=30",
   "notes": [
    {
     "id": "2582",
     "type": null,
     "author": {
      "id": 4,
      "username": "tux",
      "public_email": "",
      "name": "Linus L\u00fcssing",
      "state": "active",
      "locked": false,
      "avatar_url": "https://secure.gravatar.com/avatar/136494b2c221809b086123f59384d25e22cd3d2131230a809b06551e12ba7bbb?s=80&d=identicon",
      "status_tooltip_html": null,
      "show_status": false,
      "availability": null,
      "path": "/tux",
      "bot": false,
      "user_type": "human"
     },
     "created_at": "2023-12-07T08:26:30.978Z",
     "updated_at": "2023-12-07T08:26:30.981Z",
     "system": true,
     "noteable_id": 236,
     "noteable_type": "MergeRequest",
     "project_id": 402,
     "resolvable": false,
     "confidential": false,
     "internal": false,
     "imported": false,
     "imported_from": "none",
     "noteable_iid": 30,
     "commands_changes": {},
     "external_author": null,
     "note": "changed the description",
     "note_html": "<p data-sourcepos=\"1:1-1:23\" dir=\"auto\">changed the description</p>",
     "body_first_line_html": "<p>changed the description</p>",
     "current_user": {
      "can_edit": false,
      "can_award_emoji": false,
      "can_resolve": false,
      "can_resolve_discussion": false
     },
     "suggestions": [],
     "resolved": false,
     "resolved_by": null,
     "resolved_by_push": false,
     "system_note_icon_name": "pencil",
     "is_noteable_author": true,
     "discussion_id": "166d000c80e0a16972c147e7442f886ee5bb56a3",
     "emoji_awardable": false,
     "report_abuse_path": "/-/abuse_reports/add_category",
     "noteable_note_url": "https://git.chaotikum.org/freifunk-luebeck/site-ffhl/-/merge_requests/30#note_2582",
     "cached_markdown_version": 2162688,
     "human_access": "Owner",
     "is_contributor": false,
     "project_name": "site-ffhl",
     "path": "/freifunk-luebeck/site-ffhl/notes/2582"
    }
   ]
  },
  {
   "id": "fe4453879bb0abbad1a9114bd175ed5a6e5aab64",
   "reply_id": "fe4453879bb0abbad1a9114bd175ed5a6e5aab64",
   "project_id": 402,
   "commit_id": null,
   "confidential": false,
   "diff_discussion": false,
   "expanded": true,
   "for_commit": false,
   "individual_note": true,
   "resolvable": false,
   "discussion_path": null,
   "resolved": false,
   "resolved_by_push": false,
   "resolved_by": null,
   "resolved_at": null,
   "resolve_path": "/freifunk-luebeck/site-ffhl/-/merge_requests/30/discussions/fe4453879bb0abbad1a9114bd175ed5a6e5aab64/resolve",
   "resolve_with_issue_path": "/freifunk-luebeck/site-ffhl/-/issues/new?discussion_to_resolve=fe4453879bb0abbad1a9114bd175ed5a6e5aab64&merge_request_id=236&merge_request_to_resolve_discussions_of=30",
   "notes": [
    {
     "id": "2583",
     "type": null,
     "author": {
      "id": 4,
      "username": "tux",
      "public_email": "",
      "name": "Linus L\u00fcssing",
      "state": "active",
      "locked": false,
      "avatar_url": "https://secure.gravatar.com/avatar/136494b2c221809b086123f59384d25e22cd3d2131230a809b06551e12ba7bbb?s=80&d=identicon",
      "status_tooltip_html": null,
      "show_status": false,
      "availability": null,
      "path": "/tux",
      "bot": false,
      "user_type": "human"
     },
     "created_at": "2023-12-07T08:43:48.378Z",
     "updated_at": "2023-12-07T08:43:48.382Z",
     "system": true,
     "noteable_id": 236,
     "noteable_type": "MergeRequest",
     "project_id": 402,
     "resolvable": false,
     "confidential": false,
     "internal": false,
     "imported": false,
     "imported_from": "none",
     "noteable_iid": 30,
     "commands_changes": {},
     "external_author": null,
     "note": "added 1 commit\n\n<ul><li>52b62e20 - gitlab-ci: fix merge request pipelines</li></ul>\n\n[Compare with previous version](/freifunk-luebeck/site-ffhl/-/merge_requests/30/diffs?diff_id=983&start_sha=4923a4ef75ba5f48e6d3d032e9a50709982d03de)",
     "note_html": "<p data-sourcepos=\"1:1-1:14\" dir=\"auto\">added 1 commit</p>\n<ul dir=\"auto\"><li>\n<a href=\"/freifunk-luebeck/site-ffhl/-/merge_requests/30/diffs?commit_id=52b62e20b3a645b1495bd7ac956b4cd40841ff12\" data-reference-type=\"commit\" data-original=\"52b62e20\" data-link=\"false\" data-link-reference=\"false\" data-project=\"402\" data-commit=\"52b62e20b3a645b1495bd7ac956b4cd40841ff12\" data-container=\"body\" data-placement=\"top\" title=\"gitlab-ci: fix merge request pipelines\" class=\"gfm gfm-commit has-tooltip\">52b62e20</a> - gitlab-ci: fix merge request pipelines</li></ul>\n<p data-sourcepos=\"5:1-5:149\" dir=\"auto\"><a data-sourcepos=\"5:1-5:149\" href=\"/freifunk-luebeck/site-ffhl/-/merge_requests/30/diffs?diff_id=983&amp;start_sha=4923a4ef75ba5f48e6d3d032e9a50709982d03de\">Compare with previous version</a></p>",
     "body_first_line_html": "<p>added 1 commit...</p>",
     "current_user": {
      "can_edit": false,
      "can_award_emoji": false,
      "can_resolve": false,
      "can_resolve_discussion": false
     },
     "suggestions": [],
     "resolved": false,
     "resolved_by": null,
     "resolved_by_push": false,
     "system_note_icon_name": "commit",
     "is_noteable_author": true,
     "discussion_id": "fe4453879bb0abbad1a9114bd175ed5a6e5aab64",
     "emoji_awardable": false,
     "report_abuse_path": "/-/abuse_reports/add_category",
     "noteable_note_url": "https://git.chaotikum.org/freifunk-luebeck/site-ffhl/-/merge_requests/30#note_2583",
     "cached_markdown_version": 2162688,
     "human_access": "Owner",
     "is_contributor": false,
     "project_name": "site-ffhl",
     "path": "/freifunk-luebeck/site-ffhl/notes/2583"
    }
   ]
  },
  {
   "id": "d784feb6edb3b6c3eb4ed78e7b789139188c3bdb",
   "reply_id": "d784feb6edb3b6c3eb4ed78e7b789139188c3bdb",
   "project_id": 402,
   "commit_id": null,
   "confidential": false,
   "diff_discussion": false,
   "expanded": true,
   "for_commit": false,
   "individual_note": true,
   "resolvable": false,
   "discussion_path": null,
   "resolved": false,
   "resolved_by_push": false,
   "resolved_by": null,
   "resolved_at": null,
   "resolve_path": "/freifunk-luebeck/site-ffhl/-/merge_requests/30/discussions/d784feb6edb3b6c3eb4ed78e7b789139188c3bdb/resolve",
   "resolve_with_issue_path": "/freifunk-luebeck/site-ffhl/-/issues/new?discussion_to_resolve=d784feb6edb3b6c3eb4ed78e7b789139188c3bdb&merge_request_id=236&merge_request_to_resolve_discussions_of=30",
   "notes": [
    {
     "id": "d784feb6edb3b6c3eb4ed78e7b789139188c3bdb",
     "type": "StateNote",
     "author": {
      "id": 4,
      "username": "tux",
      "public_email": "",
      "name": "Linus L\u00fcssing",
      "state": "active",
      "locked": false,
      "avatar_url": "https://secure.gravatar.com/avatar/136494b2c221809b086123f59384d25e22cd3d2131230a809b06551e12ba7bbb?s=80&d=identicon",
      "status_tooltip_html": null,
      "show_status": false,
      "availability": null,
      "path": "/tux",
      "bot": false,
      "user_type": "human"
     },
     "created_at": "2023-12-09T00:15:13.697Z",
     "updated_at": "2023-12-09T00:15:13.697Z",
     "system": true,
     "noteable_id": 236,
     "noteable_type": "MergeRequest",
     "project_id": 402,
     "resolvable": false,
     "confidential": false,
     "internal": false,
     "imported": false,
     "imported_from": "none",
     "noteable_iid": 30,
     "commands_changes": {},
     "external_author": null,
     "note": "merged",
     "note_html": "<p data-sourcepos=\"1:1-1:6\" dir=\"auto\">merged</p>",
     "body_first_line_html": "<p>merged</p>",
     "current_user": {
      "can_edit": false,
      "can_award_emoji": false,
      "can_resolve": false,
      "can_resolve_discussion": false
     },
     "suggestions": [],
     "resolved": false,
     "resolved_by": null,
     "resolved_by_push": false,
     "system_note_icon_name": "merge",
     "is_noteable_author": true,
     "discussion_id": "d784feb6edb3b6c3eb4ed78e7b789139188c3bdb",
     "emoji_awardable": false,
     "report_abuse_path": "/-/abuse_reports/add_category",
     "noteable_note_url": null,
     "cached_markdown_version": 2162688,
     "human_access": "Owner",
     "is_contributor": false,
     "project_name": "site-ffhl"
    }
   ]
  }
 ]
}