瀏覽代碼

adds auth example for the cli cherrypick task (#17307)

Marcus Efraimsson 6 年之前
父節點
當前提交
1e508d7288
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      scripts/cli/tasks/cherrypick.ts

+ 4 - 0
scripts/cli/tasks/cherrypick.ts

@@ -7,6 +7,10 @@ const cherryPickRunner: TaskRunner<CherryPickOptions> = async () => {
   let client = axios.create({
     baseURL: 'https://api.github.com/repos/grafana/grafana',
     timeout: 10000,
+    // auth: {
+    //   username: '<username>',
+    //   password: '<personal access token>',
+    // },
   });
 
   const res = await client.get('/issues', {