Compare commits
2 Commits
eb4666c3df
...
v1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| f907a64f08 | |||
| 3b4496864b |
@@ -1,5 +1,11 @@
|
||||
### Changelog
|
||||
|
||||
#### [v1.0.1](https://git.w33ble.com/w33ble/gh-action-bot/compare/v1.0.0...v1.0.1) (22 October 2018)
|
||||
- feat: add a force retest script [`def91e3`](https://git.w33ble.com/w33ble/gh-action-bot/commit/def91e35d3c8028b7f78772049b0e93c3c8d677e)
|
||||
- fix: add error handling code [`3b44968`](https://git.w33ble.com/w33ble/gh-action-bot/commit/3b4496864b0e9bd248e6d4ea12f2608dd41c0374)
|
||||
- docs: add info about force script [`eb4666c`](https://git.w33ble.com/w33ble/gh-action-bot/commit/eb4666c3df312a9b5d8eb8ff5cf58027d794b417)
|
||||
- docs: add token info to readme [`4794c6b`](https://git.w33ble.com/w33ble/gh-action-bot/commit/4794c6be2673402d5a76d8c61974ba3f9c936977)
|
||||
|
||||
### [v1.0.0](https://git.w33ble.com/w33ble/gh-action-bot/compare/v0.1.0...v1.0.0) (18 October 2018)
|
||||
- feat: allow filtering by pr author [`68cccb7`](https://git.w33ble.com/w33ble/gh-action-bot/commit/68cccb72a9801c502003c7b913844fc01721a6e3)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gh-action-bot",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"private": true,
|
||||
"description": "Action bot for Github",
|
||||
"main": "index",
|
||||
|
||||
@@ -10,7 +10,7 @@ import History from './lib/history.mjs';
|
||||
// load env vars from .env file
|
||||
dotenv.config();
|
||||
|
||||
export default async function() {
|
||||
async function ghActionBot() {
|
||||
// parse repo name from cli and create repo instance
|
||||
const repo = createRepo(process.argv.splice(2)[0]);
|
||||
const {
|
||||
@@ -64,19 +64,11 @@ export default async function() {
|
||||
await deleteComment(repo, comment.id);
|
||||
})
|
||||
);
|
||||
|
||||
/*
|
||||
|
||||
TODO:
|
||||
|
||||
- [x] keep track of seen comment ids, only process new ones
|
||||
- [x] check the pr's status and only retest if no longer "Pending"
|
||||
- [x] add a retest comment
|
||||
- POST /repos/:owner/:repo/issues/:number/comments
|
||||
- [x] delete the retest comment
|
||||
- [ ] delete the build comment
|
||||
- [ ] delete ALL build failure comments
|
||||
- DELETE /repos/:owner/:repo/issues/comments/:comment_id
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
export default function() {
|
||||
return ghActionBot().catch(err => {
|
||||
console.error(err);
|
||||
return process.exit(1);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user