Ver Fonte

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

Marcus Efraimsson há 6 anos atrás
pai
commit
1e508d7288
1 ficheiros alterados com 4 adições e 0 exclusões
  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({
   let client = axios.create({
     baseURL: 'https://api.github.com/repos/grafana/grafana',
     baseURL: 'https://api.github.com/repos/grafana/grafana',
     timeout: 10000,
     timeout: 10000,
+    // auth: {
+    //   username: '<username>',
+    //   password: '<personal access token>',
+    // },
   });
   });
 
 
   const res = await client.get('/issues', {
   const res = await client.get('/issues', {