Skip to content

sagikazarmark/octoslash-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Octoslash Demo

This is a demo for Octoslash, a slash command framework for GitHub.

Follow the instructions below to get started.

In browser

  1. Create a new repository using the template
  2. Check out the repository (OR open it in Codespaces) and update .github/octoslash/principals.json to your GitHub details You can get your GitHub ID by running gh api "/user" --jq '.id'
  3. Create a new issue
  4. Try one of the builtin slash commands

Note

Don't forget to cleanup the repository after you're done

In terminal

# Create and checkout a new repository using the template
gh repo create --template sagikazarmark/octoslash-demo --public --clone octoslash-test
cd octoslash-test

# Update principals.json with your GitHub details
# Without this step you won't have permission to run slash commands
gh api "/user" | jq '[{uid: {type: .type, id: (.id|tostring)}, attrs: {login: .login}, parents: [{type: "Role", id: "Collaborator"}]}]' > .github/octoslash/principals.json
git add .github/octoslash/principals.json
git commit -m "Update permissions"
git push

# Create a new issue
gh issue create --title "Testing slash commands" --body ""

# Check out the issue
gh issue view 1

# Add a label to the issue
gh issue comment 1 --body "/label enhancement"

# Wait a few seconds for the label to be applied then confirm the label was applied
gh issue view 1

# Close the issue (reason is optional)
gh issue comment 1 --body "/close not_planned"

# The issue should be closed
gh issue view 1

# Cleanup
gh repo delete --yes octoslash-test
cd ..
rm -rf octoslash-test

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published