0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-19 04:16:53 -05:00
forgejo/web_src/js
Litchi Pi f66a6b12cd templates: release: Add JS to set default release title to tag name (#6645)
Closes #6485

Adds a bit of javascript in the template responsible for the "create release" page

When typing a name in the "tag name" field, the content will be automatically set in the "Title" field as a placeholder.

This way, you can type a version number (ex: `v5.0.2`), and the title will default to it (`v5.0.2` in this case)

## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org).

### Tests

- I added test coverage for Go changes...
  - [ ] in their respective `*_test.go` for unit tests.
  - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [x] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### 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] I do not want this change to show in the release notes.
- [ ] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6645
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Litchi Pi <litchi.pi@proton.me>
Co-committed-by: Litchi Pi <litchi.pi@proton.me>
2025-02-02 12:00:52 +00:00
..
components fix: Remove autofocus on the dashboard repository search box (#6734) 2025-01-31 10:09:31 +00:00
features templates: release: Add JS to set default release title to tag name (#6645) 2025-02-02 12:00:52 +00:00
markup chore: Update katex import path 2024-12-18 01:17:23 +01:00
modules Fix issue/comment menus 2024-12-30 16:06:18 +01:00
render
standalone [CHORE] Proper chunking for swagger 2024-08-22 15:48:05 +02:00
utils chore: add new lint rules 2024-10-23 08:10:18 +02:00
vendor
webcomponents fix(tests): prevent frontend test dependency on system locale (#6649) 2025-01-22 03:56:36 +00:00
bootstrap.js
bootstrap.test.js
htmx.js
index.js [FEAT]Allow changing git notes (#4753) 2024-11-18 22:56:17 +00:00
jquery.js
svg.js Fix incomplete Actions status aggregations (#32859) 2024-12-22 08:46:38 +01:00
svg.test.js
utils.js chore: add new lint rules 2024-10-23 08:10:18 +02:00
utils.test.js Update dependency happy-dom to v16 (forgejo) (#6454) 2025-01-07 11:38:58 +00:00
vitest.setup.js