Skip to content

Commit

Permalink
Remove standalone listener capability
Browse files Browse the repository at this point in the history
  • Loading branch information
tdsmith committed May 18, 2017
1 parent bce8000 commit 05d5b73
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 346 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Add a "snooze" label to an issue, and github-snooze-button will remove the label
* a pull request receives a comment on a diff, or
* a pull request branch is updated.

github-snooze-button can operate in two modes: deployed to AWS Lambda, or polling a Amazon SQS queue locally.
github-snooze-button runs on AWS Lambda.

## Configuration file

Expand Down Expand Up @@ -50,15 +50,6 @@ The AWS credentials in the config file are sent to Github and used to push notif

And now you're live.

## Option 2: Polling mode

1. Generate a Github authentication token with `public_repo` and `admin:repo_hook` scopes.
1. In AWS IAM, create a Amazon AWS user with all the AmazonSQS* and AmazonSNS* policies (and possibly fewer?)
1. Install github-snooze-button: `pip install git+https://github.com/tdsmith/github-snooze-button.git`
1. Launch with `snooze_listen /path/to/config.ini`

Note that the queue will continue collecting events unless you disconnect the repository from SNS.

## Teardown

The fastest way to disable github-snooze-button is by deleting the Amazon SNS service from your repository's "Webhooks & services" configuration page. It will be automatically recreated the next time you run snooze in either mode.
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
install_requires=['boto3', 'requests'],
entry_points={
'console_scripts': [
'snooze_listen = snooze.snooze:main',
'snooze_deploy = snooze.deploy_lambda:main',
],
},
Expand Down
172 changes: 0 additions & 172 deletions snooze/repository_listener.py

This file was deleted.

53 changes: 0 additions & 53 deletions snooze/snooze.py

This file was deleted.

110 changes: 0 additions & 110 deletions snooze/test/test_repository_listener.py

This file was deleted.

1 comment on commit 05d5b73

@GeorgeShep
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greetings I see that this is all up and running by now can direct me to the finished code if possible

Thank you.

Please sign in to comment.