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

Enable Danger #714

Closed
Florian14 opened this issue Aug 25, 2022 · 8 comments · Fixed by #728
Closed

Enable Danger #714

Florian14 opened this issue Aug 25, 2022 · 8 comments · Fixed by #728
Assignees
Labels

Comments

@Florian14
Copy link
Contributor

Florian14 commented Aug 25, 2022

Element-Android v1.4.32 integrates Danger in the CI build process.
Danger is a CI tool automating some common code reviews. It can check that a reviewer has been assigned to a PR, run the code quality checks (Lint, ktlint, Detekt…) and much more by adding plugins to the process.
A bot will then post a comment in the PR in case of failure.

Since Tchap-Android has been rebased on that version, we have to configure Danger to restore some CI steps.
It requires the creation of a new Github account (eg. TchapBot) to check all the Tchap PRs, like Element does.

It does not require adding the bot to the Tchap organization, just the creation of an access token scoped to public_repo as described in the Danger guide.

@giomfo
Copy link
Contributor

giomfo commented Aug 25, 2022

@jdauphant is that plan ok for you?

@jdauphant
Copy link
Contributor

We can add Danger support, for access token, it should not be linked to individual account.

@jdauphant
Copy link
Contributor

@pseudonyme21 is on working on similar things on thap-infra repository

@giomfo
Copy link
Contributor

giomfo commented Aug 25, 2022

We can add Danger support, for access token, it should not be linked to individual account.

If you use an individual account, it will appear on each comment, like "ElementBot" is the following screenshot:
image
I would advise to create a specific GH account

@giomfo
Copy link
Contributor

giomfo commented Aug 25, 2022

@pseudonyme21 I let you check our suggestion

@jdauphant
Copy link
Contributor

We prefere using Github Apps

@giomfo
Copy link
Contributor

giomfo commented Aug 26, 2022

@jdauphant we agree with you according to https://docs.github.com/en/developers/apps/getting-started-with-apps/about-apps. But it seems not possible to use GH apps with Danger : danger/danger-js#1199

How do you want to proceed ? which actions should we plan and who should work on them?

  • enable Danger by using GH Apps in order to check if there is issue or not
  • ?

@bmarty Did you consider the Github Apps option when you set up Danger for Element-Android? I think we should consider this option for Element, if this was not done yet.

@bmarty
Copy link
Contributor

bmarty commented Aug 29, 2022

@bmarty Did you consider the Github Apps option when you set up Danger for Element-Android? I think we should consider this option for Element, if this was not done yet.

No.

@pseudonyme21 pseudonyme21 linked a pull request Sep 6, 2022 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants