Skip to content

Commit

Permalink
Merge pull request #22 from wzshiming/cleanup/suffix
Browse files Browse the repository at this point in the history
Update suffix of plugins
  • Loading branch information
wzshiming authored Aug 16, 2022
2 parents 9878a08 + c43940b commit b2cfbfd
Show file tree
Hide file tree
Showing 38 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ PATH="$(load_plugins):${PATH}"

function exec_cmd() {
local cmd="$1"
local cmdpath="$(which ${cmd}.sh)"
local cmdpath="$(which ${cmd}.plugin.sh)"
if [[ -z "${cmdpath}" ]]; then
if [[ "${ALL_PLUGINS}" =~ "${cmd}" ]]; then
echo "[FAIL] You do not support using command ${cmd}"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion plugins/label-lgtm/cancel-lgtm.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions plugins/retest/retest.sh → plugins/retest/retest.plugin.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

if [[ "${ISSUE_KIND}" != "pr" ]]; then
echo "[FAIL] This plugin only works with pull requests."
exit 1
fi

head_sha="$(gh api \
-H "Accept: application/vnd.github+json" \
"/repos/${GH_REPOSITORY}/pulls/${ISSUE_NUMBER}" | jq -r '.head.sha')"
Expand Down
File renamed without changes.

0 comments on commit b2cfbfd

Please sign in to comment.