Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
the1ts committed Jan 12, 2022
2 parents be7ff4a + 25d8a3d commit c88caa5
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ name: Makefile CI

on:
push:
branches: [ develop ]
branches:
- develop
- feature/**
- release/**
- master
pull_request:
branches: [ develop ]
branches:
- develop
- feature/**
- release/**
- master

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions actions/enotes/listarchivedenotes
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ cd "${TODO_DIR}/notes/archive/" || exit 1

# Find a list of files
find . -name "${PRE}-*enc" -printf '%P\n' | grep "^${PRE}-" | \
sed -e "s/^${PRE}-//g" -e "s/^/enote:/g" -e "s/\.enc$//g" -e "s/\.[0-9]\{1,10\}$//g" > \
"${TODO_TMP_FILE}"
sed -e "s/^${PRE}-//g" -e "s/^/enote:/g" -e "s/\.enc$//g" -e "s/\.[0-9]\{1,10\}$//g" | \
sort > "${TODO_TMP_FILE}"
if [[ $(grep -c "$*" "${TODO_TMP_FILE}") -gt 0 ]]; then
grep "$*" "${TODO_TMP_FILE}"
[[ -f "${TODO_TMP_FILE}" ]] && rm -rf "${TODO_TMP_FILE}"
Expand Down
4 changes: 2 additions & 2 deletions actions/notes/listarchivednotes
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ cd "${TODO_DIR}/notes/archive/" || exit 1

# Find a list of files
find . -name "${PRE}-*txt" -printf '%P\n' | grep "^${PRE}-" | \
sed -e "s/${PRE}-//" -e "s/^/note:/" -e "s/.txt$//" -e "s/\.[0-9]\{1,10\}$//g" > \
"${TODO_TMP_FILE}"
sed -e "s/${PRE}-//" -e "s/^/note:/" -e "s/.txt$//" -e "s/\.[0-9]\{1,10\}$//g" |
sort > "${TODO_TMP_FILE}"
if [[ $(grep -c "$*" "${TODO_TMP_FILE}") -gt 0 ]]; then
grep "$*" "${TODO_TMP_FILE}"
[[ -f "${TODO_TMP_FILE}" ]] && rm -rf "${TODO_TMP_FILE}"
Expand Down
8 changes: 4 additions & 4 deletions tests/t4060-listarchivedenotes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ Fix bicycle enote:testing
Ride bike enote:testing
EOF
# Create our notes file with some content
cat > notes/todo-test.enc << EOF
cat > notes/todo-test.enc << EOF
test note first line
test note second line
EOF
# Create our notes file with some content
cat > ./notes/archive/todo-testing.enc << EOF
cat > ./notes/archive/todo-testing.enc << EOF
test note first line
test note second line
EOF
cat > ./notes/archive/todo-previous.10100000.enc << EOF
cat > ./notes/archive/todo-previous.10100000.enc << EOF
test note first line
test note second line
test note third line
Expand All @@ -49,8 +49,8 @@ EOF

test_todo_session 'listarchivedenotes all' <<EOF
>>> todo.sh listarchivedenotes
enote:testing
enote:previous
enote:testing
=== 0
EOF

Expand Down
12 changes: 8 additions & 4 deletions todo.txt-plugins.code-workspace
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"folders": [
{
"path": "."
}
],
{
"path": "../../../../../../../net/nas1/volume1/scratcharea/paulbm/git/home/github/todo.txt-plugins"
}
],
"settings": {
"editor.tabSize": 2,
"editor.detectIndentation": false,
Expand Down Expand Up @@ -39,6 +39,10 @@
{
"name": "feature/readme_markdown",
"base": "develop"
},
{
"name": "feature/fix_ci",
"base": "develop"
}
]
}
Expand Down

0 comments on commit c88caa5

Please sign in to comment.