| | 99 | ---- |
| | 100 | == {{{GitHUb Access}}} |
| | 101 | To be able to use the github push request, we will need a username and token being stored external to {{{Padre-Plugin-Git}}} |
| | 102 | * my $user = $ENV{GITHUB_USER}; |
| | 103 | * {{{https://github.com/username}}} all we need is the username bit. |
| | 104 | * my $token = $ENV{GITHUB_TOKEN}; |
| | 105 | * https://metacpan.org/module/FAYLAND/Net-GitHub-0.46/lib/Net/GitHub.pm#FAQ suggest you use {{{Padre-Plugin-Git}}} as the note for this token. |
| | 106 | {{{#!perl |
| | 107 | my $o = $oauth->create_authorization( |
| | 108 | { scopes => [ 'user', 'public_repo', 'repo', 'gist' ], # just ['public_repo'] |
| | 109 | note => 'Padre-Plugin-Git', |
| | 110 | } |
| | 111 | ); |
| | 112 | }}} |
| | 113 | |
| | 114 | |
| | 115 | nb http://www.wired.com/wiredenterprise/2012/05/torvalds_github/ |