-
Notifications
You must be signed in to change notification settings - Fork 965
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
Deprecation: [@octokit/rest] "number" parameter is deprecated for ".issues.createComment()". Use "issue_number" instead #917
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
I'm also seeing this deprecation after the 4 comments are created (I'm thinking maybe after a rate limit error?)
Apparently this was not fixed by: #871 |
regarding the first deprecation, |
@gr2m I took a look at the required changes; I don't know typescript so that is a hindrance for me. It seems the pull requests should also change from interface WebhookPayloadWithRepository {
[key: string]: any
repository?: PayloadRepository
issue?: {
[key: string]: any
issue_number: number
html_url?: string
body?: string
}
pull_request?: {
[key: string]: any
pull_number: number
html_url?: string
body?: string
} Then we change the object key to the appropriate key in the method below. But I'm not sure what to do with the third term public issue<T> (object?: T) {
const payload = this.payload
return Object.assign({
number: (payload.issue || payload.pull_request || payload).number
}, this.repo(object))
} When |
🚧 Fix in #926 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still an issue |
It is still happening, I am not able to use my app which was working before. |
This is just a deprecation warning, not an Error. It should not affect your app |
Still happening on |
It cannot be fixed without a breaking change, so we hold back until v10 |
🎉 This issue has been resolved in version 10.0.0-beta.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Bug Report
Current Behavior
I'm currently getting this deprecation error with probot v9.2.6.
This is the code path:
Expected behavior/code
I expect no deprecation errors
Environment
node:10-alpine
)Additional context/Screenshots
I'm also having an issue with this code where the bot's issue comment is being created 4 times even though the
createComment()
method is only called once. But I'm not sure if these two issues are related.The text was updated successfully, but these errors were encountered: