Github pack sensor


#1

Hi All,
I was trying the github sensor in stackstorm.I made github pack configurations. I have a repository in my account and i was able to run the add comment action successfully. But in sensor logs it is showing below error.

2018-11-30 12:05:08,352 DEBUG [-] using channel_id: 1
2018-11-30 12:05:08,353 DEBUG [-] Channel open
2018-11-30 12:05:08,355 DEBUG [-] Closed channel #1
2018-11-30 12:05:08,355 INFO [-] Sensor github.GithubRepositorySensor started
2018-11-30 12:05:08,355 DEBUG [-] 1 active sensor(s)
2018-11-30 12:05:09,067 INFO [-] Found config for sensor “GithubRepositorySensor”
2018-11-30 12:05:09,068 INFO [-] Watcher started
2018-11-30 12:05:09,068 INFO [-] Running sensor initialization code
2018-11-30 12:05:09,068 ERROR [-] Traceback (most recent call last):

2018-11-30 12:05:09,069 ERROR [-] File “/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py”, line 355, in

2018-11-30 12:05:09,069 ERROR [-]
2018-11-30 12:05:09,069 ERROR [-] obj.run()

2018-11-30 12:05:09,069 ERROR [-] File “/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2reactor/container/sensor_wrapper.py”, line 212, in run

2018-11-30 12:05:09,070 ERROR [-]
2018-11-30 12:05:09,070 ERROR [-] self._sensor_instance.setup()

2018-11-30 12:05:09,070 ERROR [-] File “/opt/stackstorm/packs/github/sensors/github_repository_sensor.py”, line 43, in setup

2018-11-30 12:05:09,071 ERROR [-]
2018-11-30 12:05:09,071 ERROR [-] raise ValueError(‘GithubRepositorySensor should have at least 1 repository.’)

2018-11-30 12:05:09,071 ERROR [-] ValueError
2018-11-30 12:05:09,071 ERROR [-] :
2018-11-30 12:05:09,071 ERROR [-] GithubRepositorySensor should have at least 1 repository.
2018-11-30 12:05:09,072 ERROR [-]

2018-11-30 12:05:09,072 INFO [-] Stopping trigger watcher
2018-11-30 12:05:09,073 INFO [-] Invoking cleanup on sensor

Can anyone help me in finding out where the problem was?

Thanks in advance.


(Lindsay Hill) #2

You need to tell it which repos to monitor. See the pack README at GitHub - StackStorm-Exchange/stackstorm-github: st2 content pack containing github integrations