-
Notifications
You must be signed in to change notification settings - Fork 85
Add GitHub issues integration #1079
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
base: main
Are you sure you want to change the base?
Conversation
|
commit: |
403348c to
5075da7
Compare
5075da7 to
571bc06
Compare
| WEBHOOK_SECRET: ${{ env.GITHUB_WEBHOOK_SECRET }} | ||
| target: organization | ||
| envs: | ||
| dev-steeve: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to create the GitHub apps for the other environments (prod/staging) but don't have the necessary permission on the GitBookIO GitHub organization.
I will update the manifest once the apps are created or have the corresponding entries in 1Password.
| summary: | | ||
| # Overview | ||
| Automatically get AI-suggested change requests for your docs based on feedback from your GitHub Issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will work on the description/assets in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@addisonschultz can you help there in another PR once it's merged?
SamyPesse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
| # GitHub | ||
| GITHUB_APP_INSTALL_URL: ${{ secrets.GITBOOK_GITHUB_APP_INSTALL_URL }} | ||
| GITHUB_APP_ID: ${{ secrets.GITBOOK_GITHUB_APP_ID }} | ||
| GITHUB_APP_NAME: ${{ secrets.GITHUB_APP_NAME }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this?
Should it be a 1password entry now? we should avoid secrets
| const response = await octokit.request('GET /installation/repositories', { | ||
| per_page: 100, | ||
| headers: { | ||
| 'X-GitHub-Api-Version': GITHUB_API_VERSION, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need to pass this?
Isn't octokit doing it already?
| @@ -0,0 +1,2 @@ | |||
| export const GITBOOK_INTEGRATION_USER_AGENT = 'GitBook-GitHub-Issues-Integration'; | |||
| export const GITHUB_API_VERSION = '2022-11-28'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no newer version ? :D
| metadata: { | ||
| url: issue.url, | ||
| attributes: { | ||
| source: 'github-issues', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure you need this; as the source is auto-set from the integraiton name
| summary: | | ||
| # Overview | ||
| Automatically get AI-suggested change requests for your docs based on feedback from your GitHub Issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@addisonschultz can you help there in another PR once it's merged?
This PR aims to add the GitHub issues integration.
Part https://linear.app/gitbook-x/issue/RND-8917/add-github-issues-integration