flow
flow copied to clipboard
Setup add to project action to add issues to projects to DevEx repos
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:
### Repos to add action to.
- [ ] https://github.com/onflow/flow-cli/pull/921
- [ ] https://github.com/onflow/vscode-cadence/pull/288
- [x] https://github.com/onflow/fcl-js/pull/1598
- [ ] https://github.com/onflow/flow-playground/pull/578
- [ ] https://github.com/onflow/flow-playground-api/pull/220
- [ ] https://github.com/onflow/developer-portal/pull/998
- [ ] https://github.com/onflow/faucet/pull/50
- [ ] https://github.com/onflow/flow-go-sdk/pull/354
- [ ] https://github.com/onflow/flow-js-testing/pull/213
- [ ] https://github.com/onflow/sdks/pull/16
- [ ] https://github.com/onflow/kitty-items/pull/318
- [ ] https://github.com/onflow/flow-emulator/pull/336
- [ ] https://github.com/onflow/flow-docusaurus/pull/5
- [ ] https://github.com/onflow/flow-interaction-template-service/pull/19
- [ ] https://github.com/onflow/flow-interaction-template-tools/pull/10
- [ ] https://github.com/onflow/fcl-dev-wallet/pull/193
- [ ] https://github.com/onflow/nft-catalog/pull/141
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"