Skip to content

Commit

Permalink
GH token in parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak committed Jun 20, 2018
1 parent 3b08783 commit 4653d0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions config.js.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ global.LDAP_URL = "ldaps://localhost:636";
global.LDAP_SEARCH_BASE = 'ou=user,dc=example,dc=org';
// LDAP_BIND_DN must contain the placeholder {{username}}
global.LDAP_BIND_DN = 'uid={{username}},ou=user,dc=example,dc=org';
global.GH_TOKEN = '123foobar';
13 changes: 7 additions & 6 deletions lib/transition-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,19 @@ TransitionChecker.check = function (profile, latestVersion, previousVersion) {
if (previousVersion.includes("/WD-") || !editorial) {
var shortname = latestVersion.match(new RegExp(/.*\/([^/]+)\/$/))[1];
var octo = new Octokat({
token: "" // TODO: create token
token: global.GH_TOKEN;
});

var shortname = 'css-text-decor-3';
var repo = octo.repos('w3c', 'transitions');
var approvalText = "Please update the Re";

repo.issues.fetch({
labels: 'Awaiting publication',
state: 'open',
per_page: 100
})
repo.issues.fetch(
{
labels: 'Awaiting publication',
state: 'open',
per_page: 100
})
.then((content) => {
for (var issue of content.items) {
if (issue.title.endsWith(' ' + shortname)) {
Expand Down

0 comments on commit 4653d0e

Please sign in to comment.