Add support for auto-generating github cli token (#165)
* Add support for auto-generating github cli token Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com> * Autogenerate Github CLI token when executing act command Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com> --------- Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
36
package.json
36
package.json
@@ -282,6 +282,18 @@
|
||||
"title": "Hide",
|
||||
"icon": "$(eye-closed)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.enableGithubCLIToken",
|
||||
"title": "Enable GitHub CLI Token",
|
||||
"icon": "$(sync)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.disableGithubCLIToken",
|
||||
"title": "Disable GitHub CLI Token",
|
||||
"icon": "$(sync-ignored)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.createVariableFile",
|
||||
@@ -472,6 +484,14 @@
|
||||
"command": "githubLocalActions.hide",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.enableGithubCLIToken",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.disableGithubCLIToken",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.createVariableFile",
|
||||
"when": "never"
|
||||
@@ -673,14 +693,24 @@
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.show",
|
||||
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s)_hide.*/",
|
||||
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s)_hide(?!_generate).*/",
|
||||
"group": "inline@0"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.hide",
|
||||
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s)_show.*/",
|
||||
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s)_show(?!_generate).*/",
|
||||
"group": "inline@0"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.enableGithubCLIToken",
|
||||
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s).*_manual.*/",
|
||||
"group": "inline@2"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.disableGithubCLIToken",
|
||||
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s).*_generate.*/",
|
||||
"group": "inline@2"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.createVariableFile",
|
||||
"when": "view == settings && viewItem =~ /^githubLocalActions.variables.*/",
|
||||
@@ -743,7 +773,7 @@
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.editSetting",
|
||||
"when": "view == settings && viewItem =~ /^githubLocalActions.(secret|variable|input|runner)(?!(File|s)).*/",
|
||||
"when": "view == settings && viewItem =~ /^githubLocalActions.(secret|variable|input|runner)(?!(File|s))(?!_(show|hide)_generate).*/",
|
||||
"group": "inline@1"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user