Skip to content

Conversation

@basil-squared
Copy link
Contributor

Adding a few commands that allow a select few roles to mess around with github functionality, like issues and pull requests. This pull request was sent via Tux.

@basil-squared basil-squared self-assigned this Apr 14, 2024
…t accidental commit of private keys

refactor(pyproject.toml): replace pygithub with githubkit for better GitHub App authentication support
…on with GitHub API

refactor(constants.py): rename BOT_SOURCE to GITHUB_REPO_URL for better clarity
fix(constants.py): add base64 decoding for GITHUB_PRIVATE_KEY_BASE64 to ensure correct format for private key
refactor(ghub.py): improve error handling and code readability by extracting common code into helper functions

feat: add create, get, and comment commands to GitHub bot
- The create command allows users to create a pull request in a specified repository.
- The get command retrieves a specific pull request from a repository.
- The comment command allows users to comment on a specific pull request in a repository.
These changes were made to enhance the functionality of the GitHub bot.

chore(ghub.py): remove ghub.py file as it is no longer needed in the project
…erations

This new class provides methods for interacting with GitHub, including fetching repositories, creating issues, creating issue comments, closing issues, fetching issues, fetching open issues, fetching closed issues, fetching open pull requests, fetching closed pull requests, and fetching specific pull requests. This will allow for more streamlined and centralized handling of GitHub operations within the application.
…ith GitHub

This new cog includes commands for fetching repository info, creating and managing issues, and managing pull requests. This will allow users with certain roles to interact with the GitHub API directly from Discord.
@kzndotsh kzndotsh merged commit 83e2c6d into main Apr 18, 2024
@kzndotsh kzndotsh deleted the githubapi branch April 18, 2024 07:19
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.

3 participants