question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search and automatically create issue by label

See original GitHub issue

Utterances is a greate comment plugin, and I really want to migrate from gitalk to this. But gitment and gitalk create an issue with a customized label name, so it makes me harder to do the migration.

      <script>
       const gitalk = new Gitalk({
         clientID: 'xxx',
         clientSecret: 'xxx',
         repo: 'blog-comments',
         owner: 'Draveness',
         admin: ['Draveness'],
         id: "{{ page.permalink }}", // gitment would find the issue with label name equals id here.
         distractionFreeMode: false,
         perPage: 100
       });

It would be great if we have this in Utterances.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dravenesscommented, Feb 16, 2020

To quickly see this in action, go to one of your pages, for example: https://draveness.me/2017-summary

Then press F12 to open the browser’s developer tools. Paste the following code into the console window and press enter.

I wrote a ruby script to append the pathname to the issue title and I’m not using the pathname.

0reactions
jdanyowcommented, Feb 16, 2020

Initially Utterances was a classic OAuth App. I switched to a GitHub App to alleviate security concerns.

It doesn’t look like we’ll be able to support the label strategy.

The draveness/blog-comments issues have the page’s pathname in the issue title. You should be able to use the standard setup:

<script src="https://utteranc.es/client.js"
        repo="draveness/blog-comments"
        issue-term="pathname"
        theme="github-light"
        crossorigin="anonymous"
        async>
</script>

To quickly see this in action, go to one of your pages, for example: https://draveness.me/2017-summary

Then press F12 to open the browser’s developer tools. Paste the following code into the console window and press enter.

var script = document.createElement('script');
script.src = 'https://utteranc.es/client.js';
script.setAttribute('repo', 'draveness/blog-comments');
script.setAttribute('issue-term', 'pathname');
script.setAttribute('theme', 'github-light');
script.setAttribute('crossorigin', 'anonymous');
document.body.appendChild(script);

You will see utterances load with all your existing blog comments.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to automatically add a label to an issue ...
I would like to have filed Labels to be filled up automatically when I just open Create Issue screen. 1.png. Trying to solve...
Read more >
Search issues by label using logical OR | GitHub Changelog
You can now search issues by label using logical OR. Simply use a comma to separate the labels. For example label:"good first issue",bug ......
Read more >
Managing labels
You can classify issues, pull requests, and discussions by creating, editing, applying, and deleting labels. ... Search results for: create label.
Read more >
Labels - GitLab Docs
Search lists of issues, merge requests, and epics, as well as issue boards. ... If you assign any of these labels to an...
Read more >
Jira Add and Remove Label | Jira Tutorial for Beginner
Labeling allows you to categorize an issue (s) in a more informal way than assigning it to a version or component. You can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found