Skip to content

update RxSwift version#28

Open
kaungsoe wants to merge 1 commit into
RxSwiftCommunity:masterfrom
kaungsoe:master
Open

update RxSwift version#28
kaungsoe wants to merge 1 commit into
RxSwiftCommunity:masterfrom
kaungsoe:master

Conversation

@kaungsoe
Copy link
Copy Markdown

@kaungsoe kaungsoe commented Oct 3, 2020

No description provided.

@rxswiftcommunity
Copy link
Copy Markdown

Fails
🚫

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 🚫 dangerJS

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.

1 participant