在GitHub的PR中是否有缩短检查名称的方法?

huangapple go评论53阅读模式
英文:

Is there a way to shorten the check name in GitHub PR?

问题

这是在Github使用Github Actions中的检查名称。

它包含workflow名称 + 任务ID + 步骤名称 + 条件

在GitHub的PR中是否有缩短检查名称的方法?

是否可以将其缩短,就像应用程序一样?例如,SonarCloud只有一个单一的名称。

在GitHub的PR中是否有缩短检查名称的方法?

移除name参数只会使情况更糟,因为GitHub将使用完整的文件名(加上路径),而不是一个友好的单一名称。

英文:

This is the check name in Github using Github Actions.

It contains the workflow name + job id + step name + on condition.

在GitHub的PR中是否有缩短检查名称的方法?

Is it possible to make it shorter, as we have with apps? SonarCloud, for example, only has a single name.

在GitHub的PR中是否有缩短检查名称的方法?

Removing the name parameter only makes it worse since github will use the full filename (plus path) instead of a single friendly name.

答案1

得分: 4

你可以通过在工作流的顶层定义 run-name 来自定义它。

run-name: "SonarCloud Code Analysis"

你可以在文档 这里 中了解更多信息。

英文:

You can customise that by defining run-name on top level of your workflow.

run-name: "SonarCloud Code Analysis"

You can read about it in docs here

huangapple
  • 本文由 发表于 2023年2月7日 03:14:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/75365628.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定