-
Notifications
You must be signed in to change notification settings - Fork 4
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
Import Github API to trigger workflow and fetch issues #41
Conversation
/gcbrun |
Temporary Url for review: https://application-status-dev--pr-41-ojo7tfb1.web.app |
Temporary Url for review: https://release-notes-dev--pr-41-v7ku8awj.web.app |
ZENHUB_APIKEY | ||
GITHUB_TOKEN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where are you pulling GITHUB_TOKEN from? If you want this variable to be in gcbrun, you will need to add it here:
If you also want it to be loaded in the builds from 1password, you will need to add it here https://github.com/bcgov/sbc-producthub/blob/main/apps/application-status/vaults.env probably something like GITHUB_TOKEN ="op://API/$APP_ENV/github/GITHUB_TOKEN"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I did not have the permission to add the key on GCP or 1password yet, therefore, gcbrun build is currently failing to display, and the same for dev build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I sent you direct message about the key value, as I don't know which value you are using
/gcbrun |
Temporary Url for review: https://application-status-dev--pr-41-ojo7tfb1.web.app |
Temporary Url for review: https://release-notes-dev--pr-41-v7ku8awj.web.app |
apps/application-status/vaults.env
Outdated
ZENHUB_APIKEY="op://API/$APP_ENV/zenhub/ZENHUB_APIKEY" | ||
GITHUB_TOKEN="op://API/$APP_ENV/zenhub/ZENHUB_APIKEY" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be GITHUB_TOKEN="op://API/$APP_ENV/github/GITHUB_TOKEN""
/gcbrun |
Temporary Url for review: https://application-status-dev--pr-41-ojo7tfb1.web.app |
Temporary Url for review: https://release-notes-dev--pr-41-v7ku8awj.web.app |
Summary
Use Github API to trigger workflow in this repo https://github.com/bcgov/metrics-report/ pull the metrics for Entity team and display its output issue to frontend. Sample issue that is expected to fetch: bcgov/metrics-report#65
Frontend: Display the raw response fetched from the issue