Skip to content
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

Danger #634

Merged
merged 8 commits into from
Dec 18, 2018
Merged

Danger #634

merged 8 commits into from
Dec 18, 2018

Conversation

cxong
Copy link
Member

@cxong cxong commented Nov 9, 2018

This PR creates a stub integration with Danger CI, as mentioned in #540. The only thing it currently does is list the files changed. You can see an example here: https://github.com/cxong/osgameclones/pull/3

To complete integration, we need to add an environment variable to travis with key/value: DANGER_GITHUB_API_TOKEN and ae25f569fe4418a062e55abddc8c2d971700918a. This allows @osgameclonesbot to post comments to PRs. I can also provide login details to @osgameclonesbot if anyone else in @opengaming wants to manage this account.

I'll create more PRs in the future to add interesting danger checks like those described in #540.

@cxong cxong requested review from piranha and nikuda November 9, 2018 03:24
@piranha
Copy link
Collaborator

piranha commented Nov 11, 2018

That is a great idea! What do we need to make it work? Should I just merge it or maybe there is some account needed or what?

@cxong
Copy link
Member Author

cxong commented Nov 11, 2018

add an environment variable to travis with key/value: DANGER_GITHUB_API_TOKEN and ae25f569fe4418a062e55abddc8c2d971700918a

image

@piranha
Copy link
Collaborator

piranha commented Nov 12, 2018

Weird, it still complains that env var does not exist. I'll look into that a little bit later (maybe today in the evening), somewhat busy right now.

P.S. Do you think you need to delete your comment with an API key?

@piranha
Copy link
Collaborator

piranha commented Dec 16, 2018

Okay, I'm really not sure how to make it work. I've added DANGER_GITHUB_API_TOKEN to Travis settings and... it still complains. :\

@cxong
Copy link
Member Author

cxong commented Dec 16, 2018

ignore the CI failure it's about pipenv, see #643
to see this working, it needs to be merged into master first. Then the next PR should have a comment from @osgameclonesbot

@piranha
Copy link
Collaborator

piranha commented Dec 17, 2018

Okay, I was blind. :-))

@piranha
Copy link
Collaborator

piranha commented Dec 17, 2018

I guess now the PR should be updated against master.

@cxong
Copy link
Member Author

cxong commented Dec 17, 2018

not sure if it matters but try adding the env var with the "Display value in build log" enabled
image

@osgameclonesbot
Copy link

Messages
📖 Changed Files in this PR: - .gitignore- .travis.yml

Generated by 🚫 dangerJS

@piranha
Copy link
Collaborator

piranha commented Dec 17, 2018

Ah! Encrypted (hidden) values are not available to pull requests!

But can we have this variable in the open?

@cxong
Copy link
Member Author

cxong commented Dec 17, 2018

it should be fine, as the token only allows @osgameclonesbot to comment on PRs in this repo (public_repo). See https://danger.systems/js/guides/getting_started.html#tokens-for-oss-projects

@piranha piranha merged commit ee857c0 into opengaming:master Dec 18, 2018
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