@daiyam/artifact-gh-issuehub 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.artifactrc.yml CHANGED
@@ -15,4 +15,6 @@ update:
15
15
  if_exists: skip
16
16
 
17
17
  variables:
18
- REPOSITORY_SLUG: package.json.repository.url.split('/').slice(-2).join('/').replace('.git', '')
18
+ DISCUSSION_ID: 2
19
+ ISSUE_ID: 1
20
+ REPOSITORY_SLUG: =package.json.repository.url.split('/').slice(-2).join('/').replace('.git', '')
@@ -6,7 +6,7 @@ body:
6
6
  attributes:
7
7
  value: |-
8
8
  > [!IMPORTANT]
9
- > Please read through [the Discussion rules](https://github.com/#[[vars.REPOSITORY_SLUG]]/discussions/2) and check for both existing [Discussions](https://github.com/#[[vars.REPOSITORY_SLUG]]/discussions?discussions_q=) and [Issues](https://github.com/#[[vars.REPOSITORY_SLUG]]/issues?q=sort%3Areactions-desc) prior to opening a new Discussion.
9
+ > Please read through [the Discussion rules](https://github.com/#[[vars.REPOSITORY_SLUG]]/discussions/#[[vars.DISCUSSION_ID]]) and check for both existing [Discussions](https://github.com/#[[vars.REPOSITORY_SLUG]]/discussions?discussions_q=) and [Issues](https://github.com/#[[vars.REPOSITORY_SLUG]]/issues?q=sort%3Areactions-desc) prior to opening a new Discussion.
10
10
 
11
11
  - type: markdown
12
12
  attributes:
@@ -6,14 +6,14 @@ body:
6
6
  - type: markdown
7
7
  attributes:
8
8
  value: |-
9
- This project doesn't accept Issues directly. Please prefer GitHub Discussions. See: https://github.com/#[[vars.REPOSITORY_SLUG]]/issues/1
9
+ This project doesn't accept Issues directly. Please prefer GitHub Discussions. See: https://github.com/#[[vars.REPOSITORY_SLUG]]/issues/#[[vars.ISSUE_ID]]
10
10
 
11
11
  - type: checkboxes
12
12
  id: checkbox
13
13
  attributes:
14
14
  label: Sanity check
15
15
  options:
16
- - label: I read https://github.com/#[[vars.REPOSITORY_SLUG]]/issues/1
16
+ - label: I read https://github.com/#[[vars.REPOSITORY_SLUG]]/issues/#[[vars.ISSUE_ID]]
17
17
  required: true
18
18
 
19
19
  - type: textarea
@@ -22,7 +22,7 @@ jobs:
22
22
 
23
23
  if [[ "${BODY}" =~ "CLOSE THIS ISSUE" ]]; then
24
24
  gh issue edit "${ISSUE}" --add-label "S-not-preapproved"
25
- gh issue close "${ISSUE}" --comment "Please don't open issues directly, use GitHub Discussions instead. See: https://github.com/#[[vars.REPOSITORY_SLUG]]/issues/1"
25
+ gh issue close "${ISSUE}" --comment "Please don't open issues directly, use GitHub Discussions instead. See: https://github.com/#[[vars.REPOSITORY_SLUG]]/issues/#[[vars.ISSUE_ID]]"
26
26
  gh issue lock "${ISSUE}"
27
27
  fi
28
28
  env:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daiyam/artifact-gh-issuehub",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "",
5
5
  "author": {
6
6
  "name": "Baptiste Augrain",
@@ -16,5 +16,5 @@
16
16
  "url": "https://github.com/daiyam/artifact-configs/issues"
17
17
  },
18
18
  "keywords": [],
19
- "gitHead": "8a61833eedfc4021b76adc935e6b673b93488079"
19
+ "gitHead": "48f02eee88b0da6615d61f11e329cfbd20acb8c1"
20
20
  }