Compare commits
1 Commits
master
...
nymkappa/l
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
544f3dd08b |
84
.github/workflows/project-review-status.yml
vendored
84
.github/workflows/project-review-status.yml
vendored
@ -1,84 +0,0 @@
|
|||||||
# Workflow: Automatically set project status to "Review Needed" when a reviewer is requested
|
|
||||||
name: Set Project Status on Review Request
|
|
||||||
|
|
||||||
# Trigger: Runs whenever a reviewer is requested on a pull request
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [review_requested]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-project-status:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Update Project Status to Review Needed
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
# Use the PAT stored in repository secrets (has project write access)
|
|
||||||
github-token: ${{ secrets.PROJECT_TOKEN }}
|
|
||||||
script: |
|
|
||||||
// GraphQL query to find the PR's project items
|
|
||||||
// This fetches all projects the PR is linked to
|
|
||||||
const query = `
|
|
||||||
query($owner: String!, $repo: String!, $pr: Int!) {
|
|
||||||
repository(owner: $owner, name: $repo) {
|
|
||||||
pullRequest(number: $pr) {
|
|
||||||
projectItems(first: 10) {
|
|
||||||
nodes {
|
|
||||||
id
|
|
||||||
project {
|
|
||||||
number
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
// Execute the query with current repo/PR context
|
|
||||||
const result = await github.graphql(query, {
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
pr: context.payload.pull_request.number
|
|
||||||
});
|
|
||||||
|
|
||||||
// Find the project item that belongs to project #8
|
|
||||||
const projectItems = result.repository.pullRequest.projectItems.nodes;
|
|
||||||
const projectItem = projectItems.find(item => item.project.number === 8);
|
|
||||||
|
|
||||||
// Exit early if PR isn't in project #8
|
|
||||||
if (!projectItem) {
|
|
||||||
console.log('PR is not in project #8, skipping...');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// GraphQL mutation to update the Status field
|
|
||||||
const mutation = `
|
|
||||||
mutation($projectId: ID!, $itemId: ID!, $fieldId: ID!, $optionId: String!) {
|
|
||||||
updateProjectV2ItemFieldValue(
|
|
||||||
input: {
|
|
||||||
projectId: $projectId
|
|
||||||
itemId: $itemId
|
|
||||||
fieldId: $fieldId
|
|
||||||
value: { singleSelectOptionId: $optionId }
|
|
||||||
}
|
|
||||||
) {
|
|
||||||
projectV2Item {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
// Execute the mutation using IDs stored in repository variables
|
|
||||||
// PROJECT_ID: The project's unique identifier
|
|
||||||
// STATUS_FIELD_ID: The "Status" field's unique identifier
|
|
||||||
// REVIEW_NEEDED_OPTION_ID: The "Review Needed" option's unique identifier
|
|
||||||
await github.graphql(mutation, {
|
|
||||||
projectId: "${{ secrets.PROJECT_ID }}",
|
|
||||||
itemId: projectItem.id,
|
|
||||||
fieldId: "${{ secrets.STATUS_FIELD_ID }}",
|
|
||||||
optionId: "${{ secrets.REVIEW_NEEDED_OPTION_ID }}"
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log('Successfully updated project status to Review Needed');
|
|
||||||
125
pools-v2.json
125
pools-v2.json
@ -31,8 +31,7 @@
|
|||||||
"bc1q39dled8an7enuxtmjql3pk7ny8kzvsxhd924sl"
|
"bc1q39dled8an7enuxtmjql3pk7ny8kzvsxhd924sl"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"terrapool.io",
|
"terrapool.io"
|
||||||
"Validated with Clean Energy"
|
|
||||||
],
|
],
|
||||||
"link": "https://terrapool.io"
|
"link": "https://terrapool.io"
|
||||||
},
|
},
|
||||||
@ -41,12 +40,11 @@
|
|||||||
"name": "Luxor",
|
"name": "Luxor",
|
||||||
"addresses": [
|
"addresses": [
|
||||||
"1MkCDCzHpBsYQivp8MxjY5AkTGG1f2baoe",
|
"1MkCDCzHpBsYQivp8MxjY5AkTGG1f2baoe",
|
||||||
"39bitUyBcUu3y3hRTtYprKbTp712t4ZWqK",
|
"39bitUyBcUu3y3hRTtYprKbTp712t4ZWqK"
|
||||||
"32BfKjhByDSxx3BM5vUkQ3NQq9csZR6nt6"
|
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"/LUXOR/",
|
"/LUXOR/",
|
||||||
"Luxor Tech"
|
"Powered by Luxor Tech"
|
||||||
],
|
],
|
||||||
"link": "https://mining.luxor.tech"
|
"link": "https://mining.luxor.tech"
|
||||||
},
|
},
|
||||||
@ -572,8 +570,7 @@
|
|||||||
"addresses": [],
|
"addresses": [],
|
||||||
"tags": [
|
"tags": [
|
||||||
"/NiceHashSolo",
|
"/NiceHashSolo",
|
||||||
"/NiceHash/",
|
"/NiceHash/"
|
||||||
"/NiceHashMining/"
|
|
||||||
],
|
],
|
||||||
"link": "https://www.nicehash.com"
|
"link": "https://www.nicehash.com"
|
||||||
},
|
},
|
||||||
@ -1162,8 +1159,7 @@
|
|||||||
"1DSh7vX6ed2cgTeKPwufV5i4hSi4pp373h",
|
"1DSh7vX6ed2cgTeKPwufV5i4hSi4pp373h",
|
||||||
"1JvXhnHCi6XqcanvrZJ5s2Qiv4tsmm2UMy",
|
"1JvXhnHCi6XqcanvrZJ5s2Qiv4tsmm2UMy",
|
||||||
"3L8Ck6bm3sve1vJGKo6Ht2k167YKSKi8TZ",
|
"3L8Ck6bm3sve1vJGKo6Ht2k167YKSKi8TZ",
|
||||||
"bc1qx9t2l3pyny2spqpqlye8svce70nppwtaxwdrp4",
|
"bc1qx9t2l3pyny2spqpqlye8svce70nppwtaxwdrp4"
|
||||||
"3G7jcEELKh38L6kaSV8K35pTqsh5bgZW2D"
|
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"/Binance/",
|
"/Binance/",
|
||||||
@ -1574,7 +1570,6 @@
|
|||||||
"id": 144,
|
"id": 144,
|
||||||
"name": "wiz",
|
"name": "wiz",
|
||||||
"addresses": [
|
"addresses": [
|
||||||
"1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC",
|
|
||||||
"tb1q548z58kqvwyjqwy8vc2ntmg33d7s2wyfv7ukq4"
|
"tb1q548z58kqvwyjqwy8vc2ntmg33d7s2wyfv7ukq4"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
@ -1621,7 +1616,6 @@
|
|||||||
"addresses": [],
|
"addresses": [],
|
||||||
"tags": [
|
"tags": [
|
||||||
"Apollo",
|
"Apollo",
|
||||||
"FutureBit",
|
|
||||||
"/mined by a Solo FutureBit Apollo/"
|
"/mined by a Solo FutureBit Apollo/"
|
||||||
],
|
],
|
||||||
"link": "https://www.futurebit.io"
|
"link": "https://www.futurebit.io"
|
||||||
@ -1717,116 +1711,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 158,
|
"id": 158,
|
||||||
"name": "GDPool",
|
"name": "luckyPool",
|
||||||
"addresses": [
|
"addresses": [
|
||||||
"1DnPPFQPrfyNTiHPXhDFyqNnW9T62GEhB1"
|
"1DnPPFQPrfyNTiHPXhDFyqNnW9T62GEhB1"
|
||||||
],
|
],
|
||||||
"tags": ["Lucky pool", "GDPool"],
|
"tags": ["Lucky pool"],
|
||||||
"link": ""
|
"link": ""
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 159,
|
|
||||||
"name": "Mining-Dutch",
|
|
||||||
"addresses": [
|
|
||||||
"1AfPSq5ZbqBaxU5QAayLQJMcXV8HZt92eq"
|
|
||||||
],
|
|
||||||
"tags": ["/Mining-Dutch/"],
|
|
||||||
"link": "https://www.mining-dutch.nl/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 160,
|
|
||||||
"name": "Public Pool",
|
|
||||||
"addresses": [],
|
|
||||||
"tags": [
|
|
||||||
"Public-Pool",
|
|
||||||
"Public Pool on Umbrel"
|
|
||||||
],
|
|
||||||
"link": "https://web.public-pool.io/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 161,
|
|
||||||
"name": "Mining Squared",
|
|
||||||
"addresses": [
|
|
||||||
"3GdjWJdkJhtkxRZ3Ns1LstaoHNMBW8XsvU",
|
|
||||||
"3AvXzTUat4p6Qf6ZLnRNvB3mDLjp3fNmjJ"
|
|
||||||
],
|
|
||||||
"tags": ["MiningSquared", "BSquared Network", "/bsquared/"],
|
|
||||||
"link": "https://pool.bsquared.network/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 162,
|
|
||||||
"name": "Innopolis Tech",
|
|
||||||
"addresses": [
|
|
||||||
"bc1q75t4wewkmf3l9qg097zvtlh05v5pdz6699kv8k"
|
|
||||||
],
|
|
||||||
"tags": ["Innopolis", "Innopolis.tech"],
|
|
||||||
"link": "https://innopolis.tech/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 163,
|
|
||||||
"name": "nymkappa",
|
|
||||||
"addresses": [
|
|
||||||
"tb1qdyy39724wqnqqqduv6zxsf56s2ec9lgypxs59h"
|
|
||||||
],
|
|
||||||
"tags": ["/@nymkappa/"],
|
|
||||||
"link": "https://github.com/nymkappa"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 164,
|
|
||||||
"name": "BTCLab",
|
|
||||||
"addresses": [],
|
|
||||||
"tags": [
|
|
||||||
"BTCLab",
|
|
||||||
"BTCLab.dev"
|
|
||||||
],
|
|
||||||
"link": "https://btclab.dev/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 165,
|
|
||||||
"name": "Parasite",
|
|
||||||
"addresses": [],
|
|
||||||
"tags": ["parasite"],
|
|
||||||
"link": "https://parasite.space"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 166,
|
|
||||||
"name": "RedRock Pool",
|
|
||||||
"addresses": [
|
|
||||||
"3554kSaWNnP3B49Xyybert7gmxq2YSnfnx"
|
|
||||||
],
|
|
||||||
"tags": ["RedRock"],
|
|
||||||
"link": "https://redrock.pro/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 167,
|
|
||||||
"name": "Est3lar",
|
|
||||||
"addresses": [
|
|
||||||
"34qGNFx6uQv6SzjYPbYVWtjvuy5DSGugt8"
|
|
||||||
],
|
|
||||||
"tags": ["/Est3lar/", "est3lar", "Est3lar", "EST3LAR"],
|
|
||||||
"link": "https://est3lar.io"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 168,
|
|
||||||
"name": "Braiins Solo",
|
|
||||||
"addresses": [],
|
|
||||||
"tags": ["/braiinssolo/"],
|
|
||||||
"link": "https://solo.braiins.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 169,
|
|
||||||
"name": "SoloPool.com",
|
|
||||||
"addresses": [
|
|
||||||
"bc1qreaftg3lr53nv84dnxhcvchmswevzlp9tdj2jd"
|
|
||||||
],
|
|
||||||
"tags": ["/Mined @ SoloPool.Com/"],
|
|
||||||
"link": "https://solopool.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 170,
|
|
||||||
"name": "Noderunners",
|
|
||||||
"addresses": [],
|
|
||||||
"tags": ["/Noderunners/"],
|
|
||||||
"link": "https://pool.noderunners.network"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user