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

/issue command can only fetch from a github user #1

Open
2 of 3 tasks
wesdevpro opened this issue Dec 6, 2021 · 0 comments
Open
2 of 3 tasks

/issue command can only fetch from a github user #1

wesdevpro opened this issue Dec 6, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@wesdevpro
Copy link

wesdevpro commented Dec 6, 2021

Problem: The JARVIS bot issue command can not fetch ntohq-developers repository issues

Solution: Add flags to specify whether a team member wants to get repository issues from a user or organization.

Examples:
/issue -o <organization> <reponame> -> Gets a organization's repository issue(s) and shares the issues to the slack server
/issue -u <username> <reponame> -> Gets a user's repository issue(s) and shares the issues to the slack server
/issue -h -> Responds to users with examples on how to use /issue command

To do

  • Update command.js to now clean flags
    -> all flags need to be lowercased
    -> flags can be found at index 0
    -> represent each flag with a single character.
    -> Example: 'o', 'u'
    -> returned data example -> [ 'o', 'ntohq-developers', 'analyst' ]
  • Create a getUsersRepoIssues and getOrgsRepoIssue
    -> Returns a list of issues fetched from github rest api
  • Add github.js issueCommand function contains all if statements to manipulate the array of flags
    -> async function requires the command to run and returns the slack bot block to send back to the server
    -> task:
    1.Call getOrgs... or getUsers..
    2. Call and return createIssueBlock
@wesdevpro wesdevpro added the enhancement New feature or request label Dec 6, 2021
@wesdevpro wesdevpro self-assigned this Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant