RxMediaPicker icon indicating copy to clipboard operation
RxMediaPicker copied to clipboard

update RxSwift version

Open kaungsoe opened this issue 4 years ago • 1 comments

kaungsoe avatar Oct 03 '20 03:10 kaungsoe

Fails
:no_entry_sign:

Danger failed to run /app/peril-downloaded-RxSwiftCommunity/peril@org/all-prs.ts.

Error TypeError

danger.github.api.repos.getContent is not a function
TypeError: danger.github.api.repos.getContent is not a function
    at exports.changelog.wrap (/app/peril-downloaded-RxSwiftCommunity/peril@org/all-prs.ts:26:56)
    at /app/node_modules/danger/distribution/runner/runners/inline.js:84:32
    at Array.map (<anonymous>)
    at Object.<anonymous> (/app/node_modules/danger/distribution/runner/runners/inline.js:76:68)
    at step (/app/node_modules/danger/distribution/runner/runners/inline.js:32:23)
    at Object.next (/app/node_modules/danger/distribution/runner/runners/inline.js:13:53)
    at /app/node_modules/danger/distribution/runner/runners/inline.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/app/node_modules/danger/distribution/runner/runners/inline.js:3:12)
    at runAllScheduledTasks (/app/node_modules/danger/distribution/runner/runners/inline.js:70:56)
    at Object.<anonymous> (/app/node_modules/danger/distribution/runner/runners/inline.js:156:38)
    at step (/app/node_modules/danger/distribution/runner/runners/inline.js:32:23)
    at Object.next (/app/node_modules/danger/distribution/runner/runners/inline.js:13:53)
    at /app/node_modules/danger/distribution/runner/runners/inline.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/app/node_modules/danger/distribution/runner/runners/inline.js:3:12)

Dangerfile

21| export const changelog = wrap("Require changelog entries on PRs with code changes", async () => {
22|   // First we check if there is a changelog in the repository.
23|   const pr = danger.github.pr
24|   const changelogs = ["CHANGELOG.md", "changelog.md", "Changelog.md", "CHANGELOG.yml"]
25| 
----------------------------------------------------------^
26|   const getContentParams = { path: "", owner: pr.head.user.login, repo: pr.head.repo.name }
27|   const rootContents: any = await danger.github.api.repos.getContent(getContentParams)
28| 
29|   const hasChangelog = rootContents.data.find((file: any) => changelogs.includes(file.name))

Generated by :no_entry_sign: dangerJS

rxswiftcommunity[bot] avatar Oct 03 '20 03:10 rxswiftcommunity[bot]