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 #1944] Script to create issues from CLI #1952

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

widal001
Copy link
Collaborator

@widal001 widal001 commented May 8, 2024

Summary

This script allows engineers to create tickets from the CLI and set the value of columns on a project
Fixes #1944

Time to review: 5 mins

Changes proposed

What was added, updated, or removed in this PR.

  • Adds .github/linters/queries/get-single-select-field.graphql to query IDs for project fields
  • Adds .github/linters/scripts/create-issue.sh to create issue and update project fields

Context for reviewers

Testing instructions, background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers. Explain how the changes were verified.

Note: The values passed to the following flags are case sensitive and require exact matches to work. The script will fail if they don't match what's in GitHub. Making them case insensitive within the script is a non-trivial effort.

  • --labels
  • --deliverable
  • --track
  • --status

Additional information

Screenshots, GIF demos, code examples or output to help show the changes working as expected.

Here's an example issue that was created using the following command executed from within the .github/linters/ sub-directory

./scripts/create-issue.sh \
  --org HHS \
  --repo simpler-grants-gov \
  --project 13 \
  --labels "topic: backend,project: grants.gov" \
  --status "Sprint Ready" \
  --track "Product / Program" \
  --deliverable "Search 2.0" \
  --title "Test issue created from CLI" \
  --body "Testing the functionality of the create-issue.sh script."
Screenshot 2024-05-08 at 1 16 57 PM

This script allows engineers to create tickets from the CLI and set the
value of columns on a project
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.

[Task]: Setup command or script to create and edit github issues
1 participant