Skip to content

Commit 05d5b73

Browse files
committed
Remove standalone listener capability
1 parent bce8000 commit 05d5b73

5 files changed

Lines changed: 1 addition & 346 deletions

File tree

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Add a "snooze" label to an issue, and github-snooze-button will remove the label
1111
* a pull request receives a comment on a diff, or
1212
* a pull request branch is updated.
1313

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

1616
## Configuration file
1717

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

5151
And now you're live.
5252

53-
## Option 2: Polling mode
54-
55-
1. Generate a Github authentication token with `public_repo` and `admin:repo_hook` scopes.
56-
1. In AWS IAM, create a Amazon AWS user with all the AmazonSQS* and AmazonSNS* policies (and possibly fewer?)
57-
1. Install github-snooze-button: `pip install git+https://github.com/tdsmith/github-snooze-button.git`
58-
1. Launch with `snooze_listen /path/to/config.ini`
59-
60-
Note that the queue will continue collecting events unless you disconnect the repository from SNS.
61-
6253
## Teardown
6354

6455
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.

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
install_requires=['boto3', 'requests'],
2626
entry_points={
2727
'console_scripts': [
28-
'snooze_listen = snooze.snooze:main',
2928
'snooze_deploy = snooze.deploy_lambda:main',
3029
],
3130
},

snooze/repository_listener.py

Lines changed: 0 additions & 172 deletions
This file was deleted.

snooze/snooze.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

snooze/test/test_repository_listener.py

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)