Compare commits

..

1 Commits

Author SHA1 Message Date
Mononaut
81d2f0d015
add UUID miner
Some checks failed
JSON check / json_validator (push) Has been cancelled
2025-10-25 04:38:39 +00:00
2 changed files with 9 additions and 108 deletions

View File

@ -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');

View File

@ -572,8 +572,7 @@
"addresses": [],
"tags": [
"/NiceHashSolo",
"/NiceHash/",
"/NiceHashMining/"
"/NiceHash/"
],
"link": "https://www.nicehash.com"
},
@ -1574,7 +1573,6 @@
"id": 144,
"name": "wiz",
"addresses": [
"1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC",
"tb1q548z58kqvwyjqwy8vc2ntmg33d7s2wyfv7ukq4"
],
"tags": [
@ -1621,7 +1619,6 @@
"addresses": [],
"tags": [
"Apollo",
"FutureBit",
"/mined by a Solo FutureBit Apollo/"
],
"link": "https://www.futurebit.io"
@ -1717,11 +1714,11 @@
},
{
"id": 158,
"name": "GDPool",
"name": "luckyPool",
"addresses": [
"1DnPPFQPrfyNTiHPXhDFyqNnW9T62GEhB1"
],
"tags": ["Lucky pool", "GDPool"],
"tags": ["Lucky pool"],
"link": ""
},
{
@ -1808,25 +1805,13 @@
},
{
"id": 168,
"name": "Braiins Solo",
"addresses": [],
"tags": ["/braiinssolo/"],
"link": "https://solo.braiins.com"
},
{
"id": 169,
"name": "SoloPool.com",
"name": "UUID Miner",
"addresses": [
"bc1qreaftg3lr53nv84dnxhcvchmswevzlp9tdj2jd"
"bc1q0a5zgnc08lhw23ddy7p34kkqwvkhhwn0u0nsnc",
"bc1q4k98v8y3sg8e7r3nfr0kmfufcf7mplyjq7utu6",
"bc1qvpstwkk28wpcrnuej0uf7af9u3lvns4epfdysh"
],
"tags": ["/Mined @ SoloPool.Com/"],
"link": "https://solopool.com"
},
{
"id": 170,
"name": "Noderunners",
"addresses": [],
"tags": ["/Noderunners/"],
"link": "https://pool.noderunners.network"
"tags": [":\\/\\/[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}"],
"link": ""
}
]