Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/workflow/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ pub struct GenericEvent {
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "kebab-case")]
pub struct PullRequest {
#[serde(default)]
#[serde(default, deserialize_with = "crate::common::scalar_or_vector")]
pub types: Vec<String>,

#[serde(flatten)]
Expand Down
31 changes: 31 additions & 0 deletions tests/sample-workflows/zizmor-issue-650.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# See https://github.com/woodruffw/zizmor/issues/650

# Copyright © Michal Čihař <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0

# This file is maintained in https://github.com/WeblateOrg/meta/

name: Pull request automation

on:
pull_request_target:
types: opened

permissions:
contents: read

jobs:
weblate_automerge:
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-24.04
name: Weblate automerge
if: github.actor == 'weblate'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Enable Pull Request Automerge
run: gh pr merge --rebase --auto "${{ github.event.pull_request.number }}"
env:
GH_TOKEN: ${{ secrets.WEBLATE_CI_TOKEN }}
Loading