Skip to content

Add support for latest in Run-URL #27911

Closed
@JOKUE2002

Description

@JOKUE2002

Description

Whilst trying to access the latest run of my action, I noticed, that the URL https://my-gitea.tld/user/repo/actions/runs/latest would always point to the run with the ID 0 (like https://my-gitea.tld/user/repo/actions/runs/0). This would also work with any other word (e.g. 'hello', 'world', 'anything', ...) instead of latest.

Would love to see "latest" to point to the newest run (run w/ highest ID) and any other word to point nowhere.

Couldn't reproduce on try.gitea.io because I have no action-runner I can access or repurpose available

Gitea Version

1.20.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.42.0

Operating System

Ubuntu 16.04.7 LTS

How are you running Gitea?

Downloaded binary with a systemctl service

Database

SQLite

Metadata

Metadata

Assignees

Labels

topic/gitea-actionsrelated to the actions of Giteatype/proposalThe new feature has not been accepted yet but needs to be discussed first.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions