Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)
=====================

Copyright (c) 2016 Node.js Github Bot contributors
Copyright (c) 2016-2018 Node.js Github Bot contributors
--------------------------------------------------

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).
The [GitHub API token](https://github.com/blog/1509-personal-api-tokens) for your account (or bot account) that will be used to make API calls to GitHub. The account must have proper access to perform the actions required by your script.
- **`GITHUB_WEBHOOK_SECRET`**<br>
The webhook secret that GitHub signs the POSTed payloads with. This is created when the webhook is defined. The default is `hush-hush`.
- **`TRAVIS_CI_TOKEN`**<br>
For scripts that communicate with Travis CI. Your Travis token is visible on [yourprofile](https://travis-ci.org/profile) page, by clicking the "show token" link. Also See: https://blog.travis-ci.com/2013-01-28-token-token-token
- **`TRAVIS_POLL_RETRY`**<br>
Default number of retries that the bot should attempt to poll for the Travis build status.
- **`TRAVIS_POLL_INTERVAL`**<br>
Default interval that the bot should use to poll for the Travis build status.
- **`JENKINS_WORKER_IPS`**<br>
List of valid Jenkins worker IPs allowed to push PR status updates, split by comma: `192.168.1.100,192.168.1.101`.
- **`JENKINS_API_CREDENTIALS`** (optional)<br>
Expand All @@ -48,7 +42,6 @@ The bot will try to load a `.env` file at the root of the project if it exists t

```
GITHUB_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TRAVIS_CI_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SSE_RELAY=https://hook-relay.herokuapp.com
```

Expand Down
124 changes: 0 additions & 124 deletions lib/pollTravis.js

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"express": "^4.13.4",
"github": "^7.0.1",
"glob": "^7.0.3",
"lru-cache": "^4.0.1",
"travis-ci": "^2.1.0"
"lru-cache": "^4.0.1"
},
"devDependencies": {
"eventsource": "^0.2.1",
Expand Down
62 changes: 0 additions & 62 deletions scripts/display-travis-status.js

This file was deleted.

3 changes: 2 additions & 1 deletion scripts/trigger-jenkins-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ module.exports = (app) => {
triggerBuild(options, replyToCollabWithBuildStarted)
}

if (repo === 'node')
if (repo === 'node') {
githubClient.repos.checkCollaborator({ owner, repo, username: pullRequestAuthor }, triggerBuildWhenCollaborator)
}
})
}
Loading