Skip to content

fix: try to run dange in PR correctly#34375

Closed
cipolleschi wants to merge 1 commit intomainfrom
fix/danger
Closed

fix: try to run dange in PR correctly#34375
cipolleschi wants to merge 1 commit intomainfrom
fix/danger

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

Summary

After #34370, Danger started failing because the DANGER_GITHUB_API_TOKEN was not properly set.
This PR fixes it.

Changelog

[General] [Changed] - Set back the DANGER_GITHUB_API_TOKEN.

Test Plan

Danger GitHub action is executed correctly.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Aug 10, 2022
@cipolleschi cipolleschi force-pushed the fix/danger branch 3 times, most recently from 3be4637 to 94d8eef Compare August 10, 2022 07:31
Comment on lines +29 to +31
env:
PUBLIC_PULLBOT_GITHUB_TOKEN_A: a6edf8e8d40ce4e8b11a
PUBLIC_PULLBOT_GITHUB_TOKEN_B: 150e1341f4dd9c944d2a
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
env:
PUBLIC_PULLBOT_GITHUB_TOKEN_A: a6edf8e8d40ce4e8b11a
PUBLIC_PULLBOT_GITHUB_TOKEN_B: 150e1341f4dd9c944d2a
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

working-directory: bots
- name: Danger
run: yarn danger ci --use-github-checks --failOnErrors
run: DANGER_GITHUB_API_TOKEN="$PUBLIC_PULLBOT_GITHUB_TOKEN_A""$PUBLIC_PULLBOT_GITHUB_TOKEN_B" yarn danger ci --use-github-checks --failOnErrors --id danger_pr
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be reverted

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: e509f96
Branch: main

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Aug 10, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,612,244 +25
android hermes armeabi-v7a 7,027,719 +45
android hermes x86 7,912,105 +40
android hermes x86_64 7,885,528 +41
android jsc arm64-v8a 9,489,898 +15
android jsc armeabi-v7a 8,267,780 +44
android jsc x86 9,427,274 +37
android jsc x86_64 10,020,029 +48

Base commit: e509f96
Branch: main

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the --id danger_pr is not needed

@cipolleschi cipolleschi marked this pull request as ready for review August 10, 2022 09:24
@cipolleschi cipolleschi requested a review from hramos as a code owner August 10, 2022 09:24
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cipolleschi in 9344c7a.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Aug 10, 2022
@yungsters yungsters deleted the fix/danger branch August 12, 2022 17:30
roryabraham pushed a commit to Expensify/react-native that referenced this pull request Aug 17, 2022
Summary:
After facebook#34370, Danger started failing because the `DANGER_GITHUB_API_TOKEN` was not properly set.
This PR fixes it.

## Changelog

[General] [Changed] - Set back the `DANGER_GITHUB_API_TOKEN`.

Pull Request resolved: facebook#34375

Test Plan: Danger GitHub action is executed correctly.

Reviewed By: cortinico

Differential Revision: D38571718

Pulled By: cipolleschi

fbshipit-source-id: 51168098b4f910f6fefd2872f917e12daad1ec4c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants