Skip to content

Commit 94da2be

Browse files
committed
Merge branch 'release-preparations'
* Branch commit log: lib/exectool.sh: avoid exit status warnings from jj show --tool .github/workflows/testing.yml: build jj-fzf.1.gz as release artifact Makefile.mk: add build rule for artifacts/jj-fzf.1.gz .github/workflows/inactive.yml: handle inactive issues and PRs jj-fzf: rename oplog and oplog-browser commands Signed-off-by: Tim Janik <timj@gnu.org>
2 parents f9f7183 + 7fae08f commit 94da2be

File tree

5 files changed

+53
-8
lines changed

5 files changed

+53
-8
lines changed

.github/workflows/inactive.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
2+
3+
# Linting: xclip -sel c < .github/workflows/inactive.yml # https://rhysd.github.io/actionlint/
4+
name: Inactive Issue Handling
5+
6+
on:
7+
schedule:
8+
- cron: "7 0 * * *"
9+
10+
jobs:
11+
inactive-issues:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- uses: actions/stale@v10
18+
with:
19+
stale-issue-label: "inactive"
20+
stale-issue-message: >
21+
This issue is considered stale,
22+
because it has been open for several weeks with no activity.
23+
close-issue-message: >
24+
Thank you for your contribution. This issue is being closed,
25+
because it has been open for several weeks with no activity.
26+
Feel free to reopen this issue when more information or
27+
updates are available.
28+
days-before-issue-stale: 31
29+
days-before-issue-close: 21
30+
stale-pr-label: "inactive"
31+
stale-pr-message: >
32+
This PR is considered stale,
33+
because it has been open for several weeks with no activity.
34+
days-before-pr-stale: 91
35+
days-before-pr-close: -1
36+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/testing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
make distcheck
4444
- run: |
4545
make artifacts/jj-fzf.sfx
46+
- run: |
47+
make artifacts/jj-fzf.1.gz
4648
- uses: actions/upload-artifact@v4
4749
with: { name: jj-fzf-Artifacts, path: artifacts/ }
4850

Makefile.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ artifacts/jj-fzf.sfx: all
123123
$Q rm -rf xinst/
124124
$Q echo "SFX archive ready: $@" | sed '1h; 1s/./=/g; 1p; 1x; $$p; $$x'
125125

126+
# == artifacts/jj-fzf.1.gz ==
127+
artifacts/jj-fzf.1.gz: doc/jj-fzf.1
128+
$(QGEN)
129+
$Q cp doc/jj-fzf.1 artifacts/jj-fzf.1
130+
$Q gzip -9 artifacts/jj-fzf.1
131+
$Q echo "Man page ready: $@" | sed '1h; 1s/./=/g; 1p; 1x; $$p; $$x'
132+
126133
# == clean ==
127134
clean:
128135
rm -f $(CLEANFILES)

jj-fzf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ operation_id_resolve()
840840
)
841841

842842
# Show `jj op log` but mark undone operations with '⋯'
843-
op_log_oneline()
843+
oplog()
844844
(
845845
temp_dir
846846
# Determine range of undo operations
@@ -852,11 +852,11 @@ op_log_oneline()
852852
jj --no-pager --ignore-working-copy op log --color=always -T "$JJ_FZF_OP_LOG_ONELINE16"
853853
fi
854854
)
855-
FUNCTIONS+=( 'op_log_oneline' )
855+
FUNCTIONS+=( 'oplog' )
856856

857857
# Oplog
858-
DOC['op-log']='Use `jj op log` to browse the recent operations log. Use hotkeys to change the preview between diff, history and oplog entry mode. Undo the selected operation or restore its working copy into a new commit.'
859-
op-log()
858+
DOC['oplog-browser']='Use `jj op log` to browse the recent operations log. Use hotkeys to change the preview between diff, history and oplog entry mode. Undo the selected operation or restore its working copy into a new commit.'
859+
oplog-browser()
860860
(
861861
temp_dir
862862
echo > $TEMPD/oplog.env
@@ -871,10 +871,10 @@ op-log()
871871
H="$H"$'Alt-Y: Redo the last undo operation (marked `⋯`)\n'
872872
H="$H"$'Alt-Z: Undo the next operation (not already marked `⋯`)\n'
873873
echo 'VIEW=preview_oppatch' >> $TEMPD/oplog.env
874-
export FZF_DEFAULT_COMMAND="$ABSPATHSCRIPT op_log_oneline" TEMPD ABSPATHSCRIPT
874+
export FZF_DEFAULT_COMMAND="$ABSPATHSCRIPT oplog" TEMPD ABSPATHSCRIPT
875875
RELOAD='reload(eval "$FZF_DEFAULT_COMMAND")'
876876
"${FZFPOPUP[@]}" \
877-
--border-label '-[ OP-LOG ]-' --color=border:bright-yellow,label:bright-yellow \
877+
--border-label '-[ OPLOG-BROWSER ]-' --color=border:bright-yellow,label:bright-yellow \
878878
--prompt "Operation > " \
879879
--header "$H" --header-first \
880880
--bind "ctrl-d:execute-silent( sed 's/^VIEW=.*/VIEW=preview_opdiff/' -i $TEMPD/oplog.env )+refresh-preview" \
@@ -892,7 +892,7 @@ op-log()
892892
--no-tac --no-sort +m
893893
# TODO: remove alt-w in jj-fzf-0.26
894894
)
895-
KEYBINDINGS["Ctrl-O"]="op-log"
895+
KEYBINDINGS["Ctrl-O"]="oplog-browser"
896896

897897
restore-commit()
898898
(

lib/exectool.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
3-
exec $EXECTOOL_CMD "$@"
3+
$EXECTOOL_CMD "$@" || : # avoid 'Warning: Tool exited with exit status: 1'
44
# Hook to serve as a single-executable trampoline for e.g. `EXECTOOL_CMD="git diff" jj show --tool exectool.sh`

0 commit comments

Comments
 (0)