{
: null
- // FIXME - needs refresh everytime you add a new workflow
+ // FIXME - needs refresh every time you add a new workflow
const workflowdata = Object.getOwnPropertyNames(webhookData).length > 0 && selectedWorkflows.length > 0 ?
: null
diff --git a/frontend/src/views/Workflows.jsx b/frontend/src/views/Workflows.jsx
index f256b72e..ad27220d 100644
--- a/frontend/src/views/Workflows.jsx
+++ b/frontend/src/views/Workflows.jsx
@@ -65,6 +65,7 @@ const Workflows = (props) => {
const [field1, setField1] = React.useState("")
const [field2, setField2] = React.useState("")
const [downloadUrl, setDownloadUrl] = React.useState("https://github.com/frikky/shuffle-workflows")
+ const [downloadBranch, setDownloadBranch] = React.useState("master")
const [loadWorkflowsModalOpen, setLoadWorkflowsModalOpen] = React.useState(false)
const [modalOpen, setModalOpen] = React.useState(false);
@@ -1186,6 +1187,7 @@ const Workflows = (props) => {
const parsedData = {
"url": url,
+ "field_3": downloadBranch || 'master'
}
if (field1.length > 0) {
@@ -1280,6 +1282,26 @@ const Workflows = (props) => {
fullWidth
/>
+ Branch (default value is "master"):
+
+ setDownloadBranch(e.target.value)}
+ placeholder="master"
+ fullWidth
+ />
+
+
Authentication (optional - private repos etc):