How to create custom labels for issues on GitHub? - github

I've noticed that some organizations on GitHub have different labels that they can apply to issues.
For example, one organization that I am a part of allows any of these labels to be applied:
However, on my personal account, I am limited to only these labels, and I can't find a way to create my own custom ones:
Any ideas on how I can go about creating my own?

It looks like you might be accessing GitHub on a mobile device, which likely exposes a somewhat different interface.
On the full web interface, simply navigate to https://github.com/:user/:repo/labels and click the green "New label" button at the top right. Existing labels can be edited or deleted on the same page.
You can also get to this page by clicking on "issues" and then "labels".

Here's a quick GIF to make the process as easy as it can be. (recorded at my GitHub profile)
⚡️ GIF —
Labels can be applied to issues and pull requests to signify priority, category, or any other information that you find useful.
▶ On GitHub, navigate to the main page of the repository.
Under your repository name, click Issues or Pull requests.
Issues Labels buttonNext to the search field, click Labels.
Click New Label to create a new label, or click Edit to edit an existing one.
In the text box, type your new label name.
Select a color for the label from the color bar. You can customize this color by editing the hexadecimal number above the color bar.
Click Create Label to save the new label.
I hope it helps. Upvote it if it does.

The ui makes it hard to find!
You should be able to go to https://github.com/your_username/your_repo/labels
There's a github blog post that explains this in detail.
https://help.github.com/articles/creating-and-editing-labels-for-issues-and-pull-requests/

If you find yourself doing this a lot, then you might want to try using my python script (or creating something similar) so that you can set up your own labels for each new repository...
https://github.com/martinpeck/gh-issue-label-generator

Related

Creating a TinyMCE plugin: How to make element selectable and editable

I'm trying to author my very first plugin for tinymce. Now, how do I make an element selectable? With the official image-plugin for example the user can click on a already inserted image, it visually gets focused and the image-plugin-button gets focused as well - see gif. Let's say I want to write a plugin that inserts a „Bootstrap Card“ which basically is just a div element. How do I make an already inserted Card selectable plus of course editable once the users clicks my new plugin button? Bonus question: ;-) Any suggestion for a comprehensive tutorial on tinymce plugin authoring?
To answer the bonus question first, there is an article on the TinyMCE blog that walks through creating your own TinyMCE plugin, with the example being an HTML to Markdown transformation
In the article, under the "Add the plugin to the editor" heading, Shahed Nasser writes the steps for adding the custom plugin button to the toolbar. Check under that heading for more information on getting the custom toolbar icon up and running.
For the Bootstrap Card item question – so it sounds like when your users select the Card, you need the following:
Focus on the existing cards in the document
Enable the ability to edit, adjust, or modify the cards in to get what they want written or expressed in the card done.
The first step would be to identify the card items. The TinyMCE.html.DOMparser API has a method that will filter for a specific node within the editor, and allow you to run a function on any nodes that match the filter. You can find the API docs here - https://www.tiny.cloud/docs/tinymce/6/apis/tinymce.html.domparser/#addNodeFilter
That's reaching the limits of my knowledge of what to do, hopefully the docs and article help give you the first steps to get your custom plugin going.

Disabling Old Area Paths

how can i disable old area path in Azure DevOps so that new or legacy work items can not be assigned to them as well as remove the area paths that were disabled from the area path drop down in a work item? I still want to be able to query off of these legacy old area paths so I do not want to delete them.
You'll probably want to use the security of the Area path to Deny permission to edit work items in that area.
remove the area paths that were disabled from the area path drop down
in a work item?
For this demand , I am afraid this is not feasible in azure devops. There is currently no method to make a specific area disappear from the drop-down list of creating work items.
If you want to remove the area from the drop down list, you can only choose to delete it.
So the workaround given by Matt is a good choice.Although this does not make the particular area disappear from the drop-down list, but when you click Save, there will be an warning message(TF237111: The current user does not have permissions to save work items under the specified area path.) to prevent you from completing the creation of this work item.This also satisfies your need to disable the area.

How can I add a custom column menu tab in ag-grid?

Is there a way to add a custom column menu tab with my own favourite icon which on click would render my custom react component?
something like
myColDef.menuTabs: ['generalMenuTab', 'filterMenuTab', 'myCustomMenuTab']
FYI I'm using v12.0.2
What you're after can't be done I'm afraid. The grid supports React components in all sorts of ways (renderers, editors, filters etc), but not via the column menu.
I've updated the docs page to remove the gibberish issue - it'll be fixed properly in the next release, thanks for highlighting this.
This would be helpful to have. In particular for us, we'd like to filter based off row properties, and not row values. Creating our own tab to filter by cell colors that we have assigned with our own set of labels would be useful.
I agree that it would be a nice feature to have. Apparently, there's no quick out-of-the-box solution to do it. The only workaround I see is to implement your own custom Header component which would display any buttons your want.
There you can put a button to open your own custom menu, which you can implement as any regular UI component. It also means you'll need to manually implement all standard menu options that Ag-Grid provides out of the box if you need them.

Joomla: How to show a different image on every page

I'm new to Joomla, but I figured out how to set it up and create my first joomla template which only includes the content area and a top menu.
Now I want to display a different images on every page.
I do not know how to do it in Joomla, because as far as I know I can only write articles (with images in them, which is not what I want) and include them in the Menu Items as Layout: Article.
Can I somehow create my own parameters for the Layout: Article and use them in my template? The cms user should be able to decide which image to show on each "page".
You can do it by means of a module. You can define for which menu position each module is visible. You can put any article inside a module with a Article as Module extension
You can find a lots of modules at http://extensions.joomla.org/ which you can install from your administrator and enable it on a position to show different images on different pages.
check this page
http://extensions.joomla.org/extensions/photos-a-images/images-rotators
Header Image
https://support.pillwax.com/open-source/doku.php?id=joomla:header_image
This allows you to place your images in a folder and name them according to the page. You can match to articleid, menuid, category, section, or even show a rotating random image.
You would then just need to publish the module in the correct position.

Confluence not showing tips on wiki markup

After an upgrade, our confluence installation doesnt show the "Help Tips" on wiki markup (a box on the right side of the edit pane which give basic informations on wiki markup). If I view the source, I see that the div is there, but with a display:none attribute. This lead me to think that there is an option somewhere to activate or deactivate this, but I cant find it.
Any idea ?
If you cannot find an option to show it again, and I can't but we are not using the default theme and it is visible
Try adding custom css to show it seems to have an id of helpcontent so you could do that.
Although this will affect other views if not precisely targeted
If it is a route you want to persue !