gitforge/tests/integration/fixtures/TestActionViewsView/action_run.yml
Antonin Delpeuch 19e1f58144 fix: adjust workflow link for pull_request_target workflow runs (#12734)
Fixes #12660, reported by @mahlzahn.

### Tests for Go changes

- I added test coverage for Go changes...
  - [ ] in their respective `*_test.go` for unit tests.
  - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I ran...
  - [ ] <s>`make pr-go` before pushing</s> because the OOM killer kills it before it does anything useful

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [x] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.
- [ ] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12734
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
2026-06-01 15:03:29 +02:00

53 lines
1.3 KiB
YAML

- id: 1000
title: "A scheduled workflow"
repo_id: 4
owner_id: 5
workflow_id: "scheduled.yaml"
index: 209
trigger_user_id: -2
ref: "refs/heads/master"
commit_sha: "64357baca84bfff631e7dfae5a3433b26d005646"
trigger_event: "schedule"
is_fork_pull_request: false
status: 5 # waiting
started: 0
created: 1683636108
updated: 0
need_approval: false
approved_by: 0
- id: 1001
title: "A triggered run"
repo_id: 4
owner_id: 5
workflow_id: "dispatch.yaml"
index: 210
trigger_user_id: 29
ref: "refs/heads/master"
commit_sha: "f4100ac14112a3740490afb22b07b69b0b5d4e8b"
trigger_event: "workflow_dispatch"
is_fork_pull_request: false
status: 5 # waiting
started: 0
created: 1683636108
updated: 0
need_approval: false
approved_by: 0
- id: 1002
title: "A pull_request_target run"
repo_id: 4
owner_id: 5
workflow_id: "pull_request_target.yaml"
index: 211
trigger_user_id: 29
ref: "refs/heads/master"
commit_sha: "f4100ac14112a3740490afb22b07b69b0b5d4e8b"
event: "pull_request"
trigger_event: "pull_request_target"
event_payload: "{\"pull_request\":{\"id\":1,\"base\":{\"sha\":\"deadbeef\"}}}"
is_fork_pull_request: false
status: 5 # waiting
started: 0
created: 1683636108
updated: 0
need_approval: false
approved_by: 0