Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH Issue to provide feedback on this row, make the link provide an issue template #5

Open
pacharanero opened this issue Feb 23, 2018 · 1 comment
Assignees
Labels

Comments

@pacharanero
Copy link
Contributor

GH Issue to provide feedback on this row, make the link provide an issue template

You can easily create standard Issue Templates which give you a standard preformatted issue layout, with whatever content you want. But this is hard-coded and not dynamic. We want dynamic, ideally - an issue template with the right lines of code selected. (In the interim I've set up a basic Issue Template)

How to create a dynamic issue with the right lines of code selected:

  • start with the base URL to create an issue:
    https://github.com/{{orgname}]/{{reponame}}/issues/new?permalink=

  • + permalink (needs to be URLencoded); our example looks like this:
    https%3A%2F%2Fgithub.com%2Fopenhealthcare%2Fopal-modelli-ng-tool%2Fblob%2F6785c3e5b00aa62bb5f1edcc703b4a890f916a49%2Fapp%2Fschema%2Fexamination-of-tooth.json

  • + %23 (= # when URLencoded)
    %23

  • + the line number selection:
    L11-L13

The whole thing:
https://github.com/openhealthcare/opal-modelli-ng-tool/issues/new?permalink=https%3A%2F%2Fgithub.com%2Fopenhealthcare%2Fopal-modelli-ng-tool%2Fblob%2F6785c3e5b00aa62bb5f1edcc703b4a890f916a49%2Fapp%2Fschema%2Fexamination-of-tooth.json%23L11-L13

The resulting issue template:

image

@pacharanero
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants