forgejo/web_src/js/features
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
..
admin feat: add synchronization for SSH keys with OpenID Connect 2024-12-09 18:59:11 +03:00
comp Leave list/quote expanison with double enter 2025-01-18 19:00:41 +01:00
autofocus-end.js
captcha.js
citation.js
clipboard.js
code-frequency.js
codeeditor.js
colorpicker.js
common-global.js Make new table modal work when editing a issue 2024-12-31 17:24:54 +01:00
common-issue-list.js
common-issue-list.test.js
common-organization.js
contextpopup.js
contributors.js Add "n commits" link to contributors in contributors graph page (#32799) 2024-12-15 13:21:02 +01:00
copycontent.js
dropzone.js
emoji.js
eventsource.sharedworker.js chore: add new lint rules 2024-10-23 08:10:18 +02:00
file-fold.js
heatmap.js
imagediff.js
install.js
notification.js
org-team.js
pull-view-file.js
recent-commits.js
repo-branch.js
repo-code.js
repo-code.test.js
repo-commit.js ui: improve git notes 2024-11-19 10:27:57 +05:00
repo-common.js
repo-diff-commit.js
repo-diff-commitselect.js
repo-diff-filetree.js Remove DiffFileList component 2025-01-19 18:56:18 +01:00
repo-diff.js Remove DiffFileList component 2025-01-19 18:56:18 +01:00
repo-editor.js fix: Preview picture not visible on Markdown file (#5781) 2024-11-23 15:00:18 +00:00
repo-findfile.js
repo-findfile.test.js
repo-graph.js
repo-home.js Add null check for responseData.invalidTopics (#32212) 2024-10-13 08:06:49 +03:00
repo-issue-content.js
repo-issue-list.js
repo-issue-pr-form.js
repo-issue-pr-status.js
repo-issue.js [PORT] Fix a number of typescript issues (gitea#32308) 2024-11-04 09:15:06 +01:00
repo-issue.test.js feat(ui): add more emoji and code block rendering in issues 2024-09-24 14:20:33 +02:00
repo-legacy.js fix(ui): reset content of text field for comments when cancelling (#6595) 2025-01-17 20:14:28 +00:00
repo-migrate.js
repo-migration.js
repo-milestone.js feat: use combo markdown editor for milestone description 2024-10-22 19:58:44 +02:00
repo-projects.js
repo-release.js templates: release: Add JS to set default release title to tag name (#6645) 2025-02-02 12:00:52 +00:00
repo-search.js
repo-settings.js
repo-template.js
repo-unicode-escape.js
repo-wiki.js
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js
user-auth.js
user-settings.js Rework user profile settings 2024-12-30 16:42:58 +01:00