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

Setup add to project action to add issues to projects to DevEx repos #1315

Open
17 tasks done
justinbarry opened this issue Mar 22, 2023 · 1 comment
Open
17 tasks done
Assignees

Comments

@justinbarry
Copy link
Contributor

justinbarry commented Mar 22, 2023

Context

To create a single funnel of issues to curate, we need to automatically add issues to the Flow DX board. Will need to setup this action to the following repos:

@justinbarry justinbarry self-assigned this Mar 22, 2023
@justinbarry justinbarry changed the title Setup add to project action for issues to repos Setup add to project action to add issues to projects to DevEx repos Mar 22, 2023
@justinbarry
Copy link
Contributor Author

Script used to setup the above.

#!/usr/bin/env bash

set -e

# get first argument
if [ -z "$1" ]; then
    echo "No argument supplied"
    exit 1
fi

# check if directory exists
if [ ! -d "$1" ]; then
    git clone [email protected]:onflow/$1.git
fi

# create workflow directory
mkdir -p ./$1/.github/workflows

cp ./flow-cli/.github/workflows/add-issues-to-devx-project.yml ./$1/.github/workflows/

# go to directory
cd $1

# create new branch only if it doesn't exist already
git checkout -b add-issues-to-devex-project

# add new workflow
git add .github/workflows/add-issues-to-devx-project.yml

# commit changes
git commit -m "Add workflow to add issues to devex project"

# create pr via GH CLI
gh pr create --title "Add workflow to add issues to devex project" --body "Add workflow to add issues to devex project"

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

No branches or pull requests

1 participant