8000 feat: add git tag ignore to package add form · openupm/openupm@4ca1a1d · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
feat: add git tag ignore to package add form
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed Jan 5, 2020
1 parent 60e88b6 commit 4ca1a1d
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions docs/.vuepress/theme/layouts/PackageAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,31 @@
v-model="form.packageFolder.value"
class="form-input"
type="text"
placeholder="leave empty for root"
placeholder="leave empty for root path (default)"
/>
<span v-if="form.packageFolder.error" class="form-input-hint">
{{ form.packageFolder.error }}
</span>
</div>
<div
class="form-group column col-12"
:class="{ hide: hideOtherFields }"
>
<label class="form-label">Git tag ignore pattern</label>
<input
v-model="form.gitTagIgnore.value"
class="form-input"
type="text"
placeholder="leave empty to include all tags (default)"
/>
<span class="form-input-hint is-error">
Regular expression to exclude git tags from build pipelines:
<br />
<code v-if="form.gitTagIgnore.value">
/{{ form.gitTagIgnore.value }}/i
</code>
</span>
</div>
<div
class="form-group column col-12"
89DA :class="{
Expand Down Expand Up @@ -379,6 +398,10 @@ export default {
hunter: {
error: "",
value: ""
},
gitTagIgnore: {
error: "",
value: ""
}
},
hideOtherFields: true,
Expand Down Expand Up @@ -488,7 +511,8 @@ export default {
licenseSpdxId: form.licenseId.value,
licenseName: form.licenseName.value,
topics: form.topics.options.filter(x => x.value).map(x => x.slug),
hunter: form.hunter.value
hunter: form.hunter.value,
gitTagIgnore: form.gitTagIgnore.value
};
return yaml.safeDump(content);
},
Expand Down

0 comments on commit 4ca1a1d

Please sign in to comment.
0