Greasy Fork is available in English.

Gogs: copy commit reference

Adds a "Copy commit reference" button to every commit page on Gogs websites.

Versión del día 6/10/2023. Echa un vistazo a la versión más reciente.

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
andrybak
Calificaciones
0 0 0
Versión
1
Creado
6/10/2023
Actualizado
6/10/2023
Tamaño
4,45 KB
Licencia
AGPL-3.0-only
Funciona en

Adds a "Copy commit reference" button to every commit page. An example of a
commit reference is:

> The reference format in git.git repository has been implemented in commit [1f0fc1d](https://github.com/git/git/commit/1f0fc1db8599f87520494ca4f0e3c1b6fabdf997) (pretty: implement 'reference' format, 2019-11-20).

Such references are a good way of providing context in commit messages.

### 📋 Features

The userscript puts both plain text and HTML content to the clipboard. The HTML
version of the commit reference includes clickable links to the website. This
is useful in rich text editors, e.g. in Slack and visual mode of Jira.

If you use IntelliJ-based IDEs (IDEA, PyCharm, CLion, Goland, etc), you might
also find plugin [Copy Commit Reference](https://plugins.jetbrains.com/plugin/22138-copy-commit-reference)
useful.

### 🛠️ Custom domain instructions

The userscript is set up with `@match` rules for public hostings. You might have
to manually add your URL as a "User match" in the settings of the userscript.


Tampermonkey instructions
  1. Go to Dashboard in the extension menu
  2. Click "Edit" button in the line of the userscript that you've just installed
  3. Copy the value from @match field of the metadata
  4. Go to the tab "Settings"
  5. Click "Add..." under "User matches"
  6. Paste the copied value
  7. Replace the original domain with the domain of website that you use
  8. Click "OK"


### See also

Same userscripts for other Git hosting providers are available in set
[Git: copy commit reference](https://greasyfork.org/en/scripts?set=588773).

### 🤝 Contributing

Feel free to leave feedback on Greasy Fork,
[GitHub](https://github.com/rybak/copy-commit-reference-userscript/issues),
or [GitLab](https://gitlab.com/andrybak/copy-commit-reference-userscript/-/issues).

Source code of the userscript is available on
[GitHub](https://github.com/rybak/copy-commit-reference-userscript),
[GitLab](https://gitlab.com/andrybak/copy-commit-reference-userscript),
[Bitbucket.org](https://bitbucket.org/andreyrybak/copy-commit-reference-userscript),
and [Gogs.io](https://try.gogs.io/andrybak/copy-commit-reference-userscript).
Pull requests are welcome, see details in
[CONTRIBUTING.md](https://github.com/rybak/copy-commit-reference-userscript/blob/main/CONTRIBUTING.md).