Skip to content

Commit b2cfbfd

Browse files
authored
Merge pull request #22 from wzshiming/cleanup/suffix
Update suffix of plugins
2 parents 9878a08 + c43940b commit b2cfbfd

38 files changed

+6
-2
lines changed

bin/command.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ PATH="$(load_plugins):${PATH}"
6666

6767
function exec_cmd() {
6868
local cmd="$1"
69-
local cmdpath="$(which ${cmd}.sh)"
69+
local cmdpath="$(which ${cmd}.plugin.sh)"
7070
if [[ -z "${cmdpath}" ]]; then
7171
if [[ "${ALL_PLUGINS}" =~ "${cmd}" ]]; then
7272
echo "[FAIL] You do not support using command ${cmd}"
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.

plugins/label-lgtm/cancel-lgtm.sh

-1
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.

plugins/retest/retest.sh plugins/retest/retest.plugin.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env bash
22

3+
if [[ "${ISSUE_KIND}" != "pr" ]]; then
4+
echo "[FAIL] This plugin only works with pull requests."
5+
exit 1
6+
fi
7+
38
head_sha="$(gh api \
49
-H "Accept: application/vnd.github+json" \
510
"/repos/${GH_REPOSITORY}/pulls/${ISSUE_NUMBER}" | jq -r '.head.sha')"
File renamed without changes.

0 commit comments

Comments
 (0)