mirror of
https://github.com/github/awesome-copilot.git
synced 2026-06-26 09:11:02 +00:00
chore: publish from main
This commit is contained in:
@@ -20,8 +20,6 @@ jobs:
|
||||
with:
|
||||
script: |
|
||||
const managedLabels = {
|
||||
'targets-main': true,
|
||||
'branched-main': true,
|
||||
'skills': true,
|
||||
'plugin': true,
|
||||
'agent': true,
|
||||
@@ -63,9 +61,6 @@ jobs:
|
||||
const filenames = files.map((file) => file.filename);
|
||||
|
||||
const patterns = {
|
||||
branchedMain: [
|
||||
/^plugins\/[^/]+\/(?:agents|commands|skills)\//
|
||||
],
|
||||
skills: [
|
||||
/^skills\//
|
||||
],
|
||||
@@ -107,24 +102,16 @@ jobs:
|
||||
]
|
||||
};
|
||||
|
||||
const isBranchedMain = filenames.some((filename) => matchesAny(filename, patterns.branchedMain));
|
||||
const hasNewSubmission = files.some(
|
||||
(file) => file.status === 'added' && matchesAny(file.filename, patterns.newSubmission)
|
||||
);
|
||||
|
||||
const desiredLabels = new Set();
|
||||
|
||||
if (context.payload.pull_request.base.ref === 'main') {
|
||||
desiredLabels.add('targets-main');
|
||||
}
|
||||
|
||||
if (filenames.some((filename) => matchesAny(filename, patterns.externalPlugin))) {
|
||||
desiredLabels.add('external-plugin');
|
||||
}
|
||||
|
||||
if (isBranchedMain) {
|
||||
desiredLabels.add('branched-main');
|
||||
} else {
|
||||
if (filenames.some((filename) => matchesAny(filename, patterns.skills))) {
|
||||
desiredLabels.add('skills');
|
||||
}
|
||||
@@ -160,7 +147,6 @@ jobs:
|
||||
if (hasNewSubmission) {
|
||||
desiredLabels.add('new-submission');
|
||||
}
|
||||
}
|
||||
|
||||
const currentLabels = await github.paginate(github.rest.issues.listLabelsOnIssue, {
|
||||
owner: context.repo.owner,
|
||||
|
||||
@@ -16,14 +16,6 @@ jobs:
|
||||
script: |
|
||||
const labels = {
|
||||
// Intent labels for PR categorization
|
||||
'targets-main': {
|
||||
color: 'B60205',
|
||||
description: 'PR targets staged instead of main'
|
||||
},
|
||||
'branched-main': {
|
||||
color: 'D93F0B',
|
||||
description: 'PR appears to include plugin files materialized from main'
|
||||
},
|
||||
'skills': {
|
||||
color: '1D76DB',
|
||||
description: 'PR touches skills'
|
||||
|
||||
Reference in New Issue
Block a user