mirror of
https://github.com/iv-org/documentation.git
synced 2025-04-26 10:49:20 -04:00
upd: added .ip2 network control for workflows.
This commit is contained in:
parent
2814c5ef47
commit
e5e6fa5b12
9
.github/workflows/add-instance-updown.yml
vendored
9
.github/workflows/add-instance-updown.yml
vendored
@ -5,9 +5,7 @@ on:
|
|||||||
types: [opened, reopened]
|
types: [opened, reopened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
replycomment:
|
replycomment:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
steps:
|
steps:
|
||||||
@ -31,10 +29,10 @@ jobs:
|
|||||||
var linkify = require("linkifyjs");
|
var linkify = require("linkifyjs");
|
||||||
var issueTitleParseUrl = linkify.find(issueInfo.title);
|
var issueTitleParseUrl = linkify.find(issueInfo.title);
|
||||||
if (issueTitleParseUrl.length !== 0) {
|
if (issueTitleParseUrl.length !== 0) {
|
||||||
if (issueInfo.title.includes(".onion")) {
|
if (issueInfo.title.includes(".onion") || issueInfo.title.includes(".ip2")) {
|
||||||
var replyComment =
|
var replyComment =
|
||||||
['Hello! I have detected that you are requesting to add an onion URL.',
|
['Hello! I have detected that you are requesting to add an onion or I2P URL.',
|
||||||
'Please create a pull request instead for adding your onion url as an alternative to your clearnet URL: https://github.com/iv-org/documentation/edit/master/docs/instances.md'
|
'Please create a pull request instead for adding your onion or I2P url as an alternative to your clearnet URL: https://github.com/iv-org/documentation/edit/master/docs/instances.md'
|
||||||
].join('\n');
|
].join('\n');
|
||||||
await github.rest.issues.createComment({
|
await github.rest.issues.createComment({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
@ -65,7 +63,6 @@ jobs:
|
|||||||
apdex_t: '1.0',
|
apdex_t: '1.0',
|
||||||
alias: instanceHostname,
|
alias: instanceHostname,
|
||||||
string_match: 'An alternative front-end to YouTube' } };
|
string_match: 'An alternative front-end to YouTube' } };
|
||||||
|
|
||||||
|
|
||||||
request(optionsAddNewCheck, async function (error, response, body) {
|
request(optionsAddNewCheck, async function (error, response, body) {
|
||||||
if (error) throw new Error(error);
|
if (error) throw new Error(error);
|
||||||
|
@ -5,9 +5,7 @@ on:
|
|||||||
types: [opened, reopened]
|
types: [opened, reopened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
replycomment:
|
replycomment:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
steps:
|
steps:
|
||||||
@ -31,10 +29,10 @@ jobs:
|
|||||||
var linkify = require("linkifyjs");
|
var linkify = require("linkifyjs");
|
||||||
var issueTitleParseUrl = linkify.find(issueInfo.title);
|
var issueTitleParseUrl = linkify.find(issueInfo.title);
|
||||||
if (issueTitleParseUrl.length !== 0) {
|
if (issueTitleParseUrl.length !== 0) {
|
||||||
if (issueInfo.title.includes(".onion")) {
|
if (issueInfo.title.includes(".onion") || issueInfo.title.includes(".ip2")) {
|
||||||
var replyComment =
|
var replyComment =
|
||||||
['Hello! I have detected that you are requesting to add an onion URL.',
|
['Hello! I have detected that you are requesting to add an onion or I2P URL.',
|
||||||
'Please create a pull request instead for adding your onion url as an alternative to your clearnet URL: https://github.com/iv-org/documentation/edit/master/docs/instances.md'
|
'Please create a pull request instead for adding your onion or I2P url as an alternative to your clearnet URL: https://github.com/iv-org/documentation/edit/master/docs/instances.md'
|
||||||
].join('\n');
|
].join('\n');
|
||||||
await github.rest.issues.createComment({
|
await github.rest.issues.createComment({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
|
2
.github/workflows/container-release.yml
vendored
2
.github/workflows/container-release.yml
vendored
@ -12,9 +12,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
2
.github/workflows/remove-30days-label.yml
vendored
2
.github/workflows/remove-30days-label.yml
vendored
@ -5,9 +5,7 @@ on:
|
|||||||
types: [closed]
|
types: [closed]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
replycomment:
|
replycomment:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user