WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Upgrade apollo-upload-client and @types/apollo-upload-client from 18.0.1 to 19.0.0 #257

Upgrade apollo-upload-client and @types/apollo-upload-client from 18.0.1 to 19.0.0

Upgrade apollo-upload-client and @types/apollo-upload-client from 18.0.1 to 19.0.0 #257

##############################################################################
##############################################################################
#
# NOTE!
#
# Please read the README.md file in this directory that defines what should
# be placed in this file
#
##############################################################################
##############################################################################
name: Issue Assignment Workflow
on:
issues:
types: ['assigned']
permissions:
contents: read
issues: write
jobs:
Remove-Unapproved-Label:
name: Remove Unapproved Label when issue is assigned
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
const { owner, repo } = context.repo;
const issue_number = context.issue.number;
const apiParams = {
owner,
repo,
issue_number
};
// Get current labels on the issue
const { data: labelList } = await github.rest.issues.listLabelsOnIssue(apiParams);
const unapprovedLabel = labelList.find(l =>
l.name.toLowerCase().includes('unapprov') // matches 'unapproved' too
);
// Remove unapproved label if it exists
if (unapprovedLabel) {
try {
await github.rest.issues.removeLabel({
owner,
repo,
issue_number,
name: unapprovedLabel.name,
});
} catch (err) {
if (err.status !== 404) throw err;
}
}