File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -117,8 +117,8 @@ What to do when an update is available and the build is successful.
117
117
Allowed values :
118
118
* `silent`: Do nothing
119
119
* `commit`: directly commit the updated files
120
- * `issue`: notify the user by creating an issue
121
- * `pr`: notify the user by creating a pull request
120
+ * `issue`: notify the user by creating an issue. No new issue will be created if one already exists.
121
+ * `pr`: notify the user by creating a pull request. No new PR will be created if one already exists.
122
122
123
123
Default : ` pr` .
124
124
@@ -128,8 +128,8 @@ What to do when an update is available and the build fails.
128
128
129
129
Allowed values :
130
130
* `silent`: Do nothing
131
- * `issue`: notify the user by creating an issue
132
- * `pr`: notify the user by creating a pull request
131
+ * `issue`: notify the user by creating an issue. No new issue will be created if one already exists.
132
+ * `pr`: notify the user by creating a pull request. No new PR will be created if one already exists.
133
133
134
134
Default : ` issue` .
135
135
Original file line number Diff line number Diff line change 8
8
Allowed values:
9
9
* `silent`: Do nothing
10
10
* `commit`: directly commit the updated files
11
- * `issue`: notify the user by creating an issue
12
- * `pr`: notify the user by creating a pull request
11
+ * `issue`: notify the user by creating an issue. No new issue will be created if one already exists.
12
+ * `pr`: notify the user by creating a pull request. No new PR will be created if one already exists.
13
13
Default: `pr`.
14
14
required : false
15
15
default : " pr"
@@ -18,8 +18,8 @@ inputs:
18
18
What to do when an update is available and the build fails.
19
19
Allowed values:
20
20
* `silent`: Do nothing
21
- * `issue`: notify the user by creating an issue
22
- * `pr`: notify the user by creating a pull request
21
+ * `issue`: notify the user by creating an issue. No new issue will be created if one already exists.
22
+ * `pr`: notify the user by creating a pull request. No new PR will be created if one already exists.
23
23
Default: `issue`.
24
24
required : false
25
25
default : " issue"
Original file line number Diff line number Diff line change @@ -18,5 +18,10 @@ if ! gh api repos/$GH_REPO/labels/$LABEL_NAME --silent 2>/dev/null; then
18
18
gh api repos/$GH_REPO /labels -F name=" $LABEL_NAME " -F color=" $LABEL_COLOR " -F description=" Auto update for Lean dependencies"
19
19
fi
20
20
21
- # Create the issue
22
- gh issue create --title " $TITLE " --body " $BODY " --label " $LABEL_NAME "
21
+ # Check if an open issue with the same label already exists
22
+ if gh issue list --label " $LABEL_NAME " --state open --json number | grep -q " number" ; then
23
+ echo " An open issue with label '$LABEL_NAME ' already exists. Skipping issue creation."
24
+ else
25
+ # Create the issue
26
+ gh issue create --title " $TITLE " --body " $BODY " --label " $LABEL_NAME "
27
+ fi
You can’t perform that action at this time.
0 commit comments