Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing workers - Part one #14

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open

Conversation

rolandKoczan
Copy link
Contributor

Trigger message is sent and received by the repository worker. User and repository data is stored in DB. For now the message stops here.

scripts/trigger.js Show resolved Hide resolved
worker/handlers/trigger.js Outdated Show resolved Hide resolved
worker/index.js Show resolved Hide resolved
worker/index.js Outdated Show resolved Hide resolved
.env.example Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
scripts/trigger.js Outdated Show resolved Hide resolved
scripts/trigger.js Outdated Show resolved Hide resolved
worker/handlers/repositroy.js Outdated Show resolved Hide resolved
worker/handlers/repositroy.js Outdated Show resolved Hide resolved
const onRepository = async (message) => {
// env = org/repo_name
// 1 repository
const { search: { edges } } = await searchRepositories({ queryString: message, first: 1 });

Choose a reason for hiding this comment

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

What if the response is null?

worker/handlers/repositroy.js Outdated Show resolved Hide resolved
worker/handlers/trigger.js Outdated Show resolved Hide resolved
worker/index.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants