René's URL Explorer Experiment


Title: How to make conditional check on a label name that includes emoji · Issue #441 · actions/github-script · GitHub

Open Graph Title: How to make conditional check on a label name that includes emoji · Issue #441 · actions/github-script

X Title: How to make conditional check on a label name that includes emoji · Issue #441 · actions/github-script

Description: On the Microsoft ASP.NET Core documentation repo, we use a label with a watch emoji (:watch:, ⌚) in our not-triaged label. The label is ... ⌚ Not Triaged When we try to make a conditional check for the watch emoji in a workflow that remo...

Open Graph Description: On the Microsoft ASP.NET Core documentation repo, we use a label with a watch emoji (:watch:, ⌚) in our not-triaged label. The label is ... ⌚ Not Triaged When we try to make a conditional check for...

X Description: On the Microsoft ASP.NET Core documentation repo, we use a label with a watch emoji (:watch:, ⌚) in our not-triaged label. The label is ... ⌚ Not Triaged When we try to make a conditional check for...

Opengraph URL: https://github.com/actions/github-script/issues/441

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to make conditional check on a label name that includes emoji","articleBody":"On the Microsoft ASP.NET Core documentation repo, we use a label with a watch emoji (`:watch:`, ⌚) in our not-triaged label.\r\n\r\nThe label is ...\r\n\r\n⌚ Not Triaged\r\n\r\nWhen we try to make a conditional check for the watch emoji in a workflow that removes this label under some conditions based on the presence of other labels, either the emoji in the check fails to match or throws a syntax error.\r\n\r\nHere are the two cases that we've tried ...\r\n\r\n### Using colon syntax\r\n\r\n```yml\r\nif: github.event.label.name == ':watch: Not Triaged' \u0026\u0026 (github.event.label.name == 'aspnetcore-blazorhybrid/tech' || github.event.label.name == 'aspnetcore-blazor/tech')\r\n```\r\n\r\nResult: The line throws a syntax error in the GH code editor ...\r\n\r\n\u003e incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line\r\n\r\nThe workflow error when this is executed is ...\r\n\r\n\u003e  Invalid workflow file\r\n\u003e\r\n\u003e You have an error in your yaml syntax on line 104\r\n\r\nI tried escaping the colons with backslashes, and I also tried using the `${{ ... }}` syntax around the conditional expression. Neither approach works.\r\n\r\n### Using the graphic emoji\r\n\r\n```yml\r\nif: github.event.label.name == '⌚ Not Triaged' \u0026\u0026 (github.event.label.name == 'aspnetcore-blazorhybrid/tech' || github.event.label.name == 'aspnetcore-blazor/tech')\r\n```\r\n\r\nResult: Doesn't throw a syntax error, nor does it cause the workflow to log an error when it runs. ***However***, it fails to match on the label name, so the workflow job fails to execute our script.\r\n\r\n### How can we address this?\r\n\r\nIs there an approach to deal with this? Is this a bug in your processing that you'd like to fix? If it is a bug that will be fixed, is there a workaround approach that I can use in the meantime?\r\n\r\nIf this isn't a bug, documentation for `if:` syntax probably should explain how to address it at ...\r\n\r\nhttps://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution\r\n\r\nCross-reference to our entire workflow script: https://github.com/dotnet/AspNetCore.Docs/blob/main/.github/workflows/issue-processing.yml\r\n\r\n☝️ See ***Line 104*** of the workflow, which doesn't throw a syntax error but doesn't work.\r\n\r\n","author":{"url":"https://github.com/guardrex","@type":"Person","name":"guardrex"},"datePublished":"2023-11-21T13:32:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/441/github-script/issues/441"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:60db62c7-4c66-5d2d-9681-d4051cee048e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8D7E:1F16:684AA67:944B980:6A50F83C
html-safe-nonceb2c7f9d5ab05e802ae26a38f4fdc791c99b1f27e555d10472255c68d088b6dfa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDdFOjFGMTY6Njg0QUE2Nzo5NDRCOTgwOjZBNTBGODNDIiwidmlzaXRvcl9pZCI6IjIyNDQzNDUxNjUyODczMjM3MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5e75afc13583bd57385d9a0c2caf5d6cc2122d18be0a9227d262736a660f276b
hovercard-subject-tagissue:2004299906
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/github-script/441/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4356fad2a1870adeee1949fdf5dd75c17e2d4d73972b312675208983af4f42c9/actions/github-script/issues/441
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4356fad2a1870adeee1949fdf5dd75c17e2d4d73972b312675208983af4f42c9/actions/github-script/issues/441
og:image:altOn the Microsoft ASP.NET Core documentation repo, we use a label with a watch emoji (:watch:, ⌚) in our not-triaged label. The label is ... ⌚ Not Triaged When we try to make a conditional check for...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameguardrex
hostnamegithub.com
expected-hostnamegithub.com
None5266e58c17a510c403505cc811606465e90a881d2007ee7df1c4800d5c659838
turbo-cache-controlno-preview
go-importgithub.com/actions/github-script git https://github.com/actions/github-script.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id205262760
octolytics-dimension-repository_nwoactions/github-script
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id205262760
octolytics-dimension-repository_network_root_nwoactions/github-script
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8d836581d020676cc0ef4a83cd2fe17e4af02c3d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/github-script/issues/441#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F441
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fgithub-script%2Fissues%2F441
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fgithub-script
Reloadhttps://github.com/actions/github-script/issues/441
Reloadhttps://github.com/actions/github-script/issues/441
Reloadhttps://github.com/actions/github-script/issues/441
Please reload this pagehttps://github.com/actions/github-script/issues/441
actions https://github.com/actions
github-scripthttps://github.com/actions/github-script
Notifications https://github.com/login?return_to=%2Factions%2Fgithub-script
Fork 572 https://github.com/login?return_to=%2Factions%2Fgithub-script
Star 5k https://github.com/login?return_to=%2Factions%2Fgithub-script
Code https://github.com/actions/github-script
Issues 54 https://github.com/actions/github-script/issues
Pull requests 35 https://github.com/actions/github-script/pulls
Discussions https://github.com/actions/github-script/discussions
Actions https://github.com/actions/github-script/actions
Security and quality 0 https://github.com/actions/github-script/security
Insights https://github.com/actions/github-script/pulse
Code https://github.com/actions/github-script
Issues https://github.com/actions/github-script/issues
Pull requests https://github.com/actions/github-script/pulls
Discussions https://github.com/actions/github-script/discussions
Actions https://github.com/actions/github-script/actions
Security and quality https://github.com/actions/github-script/security
Insights https://github.com/actions/github-script/pulse
How to make conditional check on a label name that includes emojihttps://github.com/actions/github-script/issues/441#top
questionA question on how to use this actionhttps://github.com/actions/github-script/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com/guardrex
guardrexhttps://github.com/guardrex
on Nov 21, 2023https://github.com/actions/github-script/issues/441#issue-2004299906
https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-executionhttps://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution
https://github.com/dotnet/AspNetCore.Docs/blob/main/.github/workflows/issue-processing.ymlhttps://github.com/dotnet/AspNetCore.Docs/blob/main/.github/workflows/issue-processing.yml
questionA question on how to use this actionhttps://github.com/actions/github-script/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.