Skip to content

[Bug]: CICDPullRequestBranches break PullRequestHandler.yaml #2012

@navdotnetreqs

Description

@navdotnetreqs

AL-Go version

8.0

Describe the issue

I added these to my .github/AL-Go-settings.json

"CICDPushBranches": [],
"CICDPullRequestBranches": [],

Then I ran Update-AL-Go System files.

For CI/CD.yaml

on:
  workflow_dispatch:
  push:
    paths-ignore:
      - '**.md'
      - '.github/workflows/*.yaml'
      - '!.github/workflows/CICD.yaml'
    branches: [ 'main', 'release/*', 'feature/*' ]

became

on:
  workflow_dispatch:

But for PullRequestHandler.yaml

on:
  pull_request_target:
    branches: [ 'main' ]

became:

on:
  pull_request_target:
    branches: [ '' ]

and that breaks the yaml.

Expected behavior

Should remove the target branches properly.

Steps to reproduce

As above.

Additional context (logs, screenshots, etc.)

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions