Skip to content

Commit

Permalink
☁️ chore(automation): Applying changes from upstream repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
Megabyte Labs committed Oct 2, 2022
1 parent eca4404 commit d583868
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 29 deletions.
6 changes: 3 additions & 3 deletions .config/taskfiles/ci/Taskfile-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ tasks:
synchronize:
deps:
- :install:software:git
env:
GITHUB_HTTP_REPO:
sh: jq -r '.blueprint.repository.github' package.json
summary: |
Forces a push to the GitHub master branch so that GitHub stays mirrored with
the GitLab master branch.
env:
GITHUB_HTTP_REPO:
sh: jq -r '.blueprint.repository.github' package.json
cmds:
- cmd: |
if [ "$GITHUB_HTTP_REPO" != 'null' ]; then
Expand Down
2 changes: 1 addition & 1 deletion .config/taskfiles/docker/Taskfile-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ tasks:
- grep 'org.opencontainers.image.documentation' Dockerfile

# yamllint disable rule:line-length
# eslint-disable max-len

labels:update:
vars:
AUTHORS:
Expand Down
10 changes: 5 additions & 5 deletions .config/taskfiles/git/Taskfile-hook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ tasks:
# remote_ref -> refs/heads/master
# remote_sha -> 9901a2eb2f34d5744276a80c4b339a88a92a7b53
REMOTE_BRANCH="$(echo $remote_ref | sed 's/^[^\/]*\/[^\/]*\///')"
.config/log star "Repository -----> https://$HOST/$ORG/$PROJECT"
.config/log star "Repository -----> \`https://$HOST/$ORG/$PROJECT\`"
if [ "$HOST" == 'gitlab.com' ]; then
if [ "$REMOTE_BRANCH" != 'master' ]; then
.config/log star "Open PR --------> https://$HOST/$ORG/$PROJECT/-/merge_requests/new"
.config/log star "Open PR --------> \`https://$HOST/$ORG/$PROJECT/-/merge_requests/new\`"
fi
.config/log star "View commit ----> https://$HOST/$ORG/$PROJECT/-/commit/$local_sha"
.config/log star "View commit ----> \`https://$HOST/$ORG/$PROJECT/-/commit/$local_sha\`"
elif [ "$HOST" == 'github.com' ]; then
if [ "$REMOTE_BRANCH" != 'master' ]; then
.config/log star "Open PR --------> https://$HOST/$ORG/$PROJECT/pull/new/$REMOTE_BRANCH"
.config/log star "Open PR --------> \`https://$HOST/$ORG/$PROJECT/pull/new/$REMOTE_BRANCH\`"
fi
.config/log star "View commit ----> https://$HOST/$ORG/$PROJECT/commit/$local_sha"
.config/log star "View commit ----> \`https://$HOST/$ORG/$PROJECT/commit/$local_sha\`"
fi
done
10 changes: 5 additions & 5 deletions .config/taskfiles/git/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ tasks:
convert:folder:subrepo:
deps:
- :install:software:subrepo
vars:
BASENAME:
sh: basename "$PWD"
GITLAB_REPO:
sh: jq -r '.blueprint.repository.gitlab' package.json
summary: |
# Convert Folder to Sub-repo
Expand All @@ -102,6 +97,11 @@ tasks:
then run `task git:convert:folder:subrepo` while making sure that the
`FULLY_AUTOMATED_TASKS` variables is set equal to `true`. There may be other
tokens required for accessing the APIs of GitHub, GitLab, etc.
vars:
BASENAME:
sh: basename "$PWD"
GITLAB_REPO:
sh: jq -r '.blueprint.repository.gitlab' package.json
log:
error: Error encountered while converting `{{.BASENAME}}` into a sub-repo
start: Converting `{{.BASENAME}}` into a sub-repo
Expand Down
1 change: 0 additions & 1 deletion .config/taskfiles/release/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ tasks:
status:
- '[ "$SNAP_PACKAGE" == "null" ]'

# eslint-disable max-len
analyze:
summary: |
| Command property | Description |
Expand Down
1 change: 1 addition & 0 deletions .config/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ignore: |
pnpm-lock.yaml
roles/
testdata/
test/output-example/
venv/
extends: default
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/SupportRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ body:
description: '**Optional** For the fastest, most-effective support we offer paid services. If you are interested,
answer *Yes* and we will get in contact with you immediately.'
options:
# yamllint disable-line rule:truthy
- Yes
# yamllint disable-line rule:truthy
- No
validations:
required: false
Expand Down
Loading

0 comments on commit d583868

Please sign in to comment.