Tool to help find issues that you can contribute to
Thanks to @GlenTiki for the original at https://github.com/GlenTiki/gh-issue-finder
The main usage of this is to fetch issues in the fastify GitHub org tagged as a "good first issue" so that they can be displayed on the website for anyone looking to get started.
An example with all query params: /api/find-issues?org=test&includeBody=true&labels=test1&labels=test2
If not specified, org
defaults to fastify
, includeBody (whether the description of the issues is included or not in the response) to false
, and labels to ['help wanted', 'good first issue']
.
Example response:
{
"issues": [
{
"url": "https://github.com/fastify/help/issues/658",
"title": "How to handle canceled requests?",
"comments": 11,
"author": {
"name": "danechitoaie",
"avatar_url": "https://avatars.githubusercontent.com/u/10779010?v=4",
"acc_url": "https://github.com/danechitoaie"
},
"project": {
"org": "fastify",
"name": "help",
"url": "https://github.com/fastify/help"
},
"locked": false,
"state": "open",
"created_at": "2022-04-05T14:02:44Z",
"updated_at": "2022-05-10T15:16:58Z",
"labels": ["help wanted"]
},
{
"url": "https://github.com/fastify/help/issues/667",
"title": "Can I pass the user_ID from fastify-auth to the handler?",
"comments": 0,
"author": {
"name": "ghost",
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"acc_url": "https://github.com/ghost"
},
"project": {
"org": "fastify",
"name": "help",
"url": "https://github.com/fastify/help"
},
"locked": false,
"state": "open",
"created_at": "2022-04-19T01:03:14Z",
"updated_at": "2022-04-19T01:03:14Z",
"labels": ["help wanted"]
}
]
}
- Prerequisites: a GCP project with the cloud run and cloud build APIs enabled
- Create a service account in the IAM & Admin console to be used to deploy the app
- Create a key for the service account, this key will be configured as a secret in the GitHub actions to be able to deploy the app
- For the service account, grant the permissions "Service Account User", "Cloud Run Admin", "Storage Admin" and "Cloud Build Service Account", this last permission is necessary since cloud build will be used to build the image based on the source code directly
- Clone this repo to your GitHub account
- In the
Settings
of your GitHub repo, go toSecrets
and create theNew repository secret
with the names and values below:GCP_PROJECT_ID
: The ID of the GCP project as found in your GCP AccountGCP_CLOUDRUN_SERVICE_NAME
: The name of the cloud run service, you can select any name that you preferGCP_CLOUDRUN_SERVICE_REGION
: The region in the GCP that you want to create the cloud run serviceGCP_SA_KEY
: The key that you created for your service account with the permissions to deploy the app. This is a JSON object and should be used as-is
After the steps above have been completed, go to Actions
in your GitHub repo and run the CD workflow located in .git/workflows/cd.yml
. The file is already configured with the action to deploy the cloud run service using the secrets that were created.
Once the workflow has run, go to your GCP account and open the "Cloud Run" page to see the details of the deployed service.