mirror of
https://github.com/actions/add-to-project.git
synced 2025-12-12 04:57:09 +00:00
Initial commit - Planning dependency updates
Co-authored-by: TylerDixon <4308048+TylerDixon@users.noreply.github.com>
This commit is contained in:
4
.licenses/npm/fast-content-type-parse.dep.yml
generated
4
.licenses/npm/fast-content-type-parse.dep.yml
generated
@@ -6,7 +6,7 @@ summary: Parse HTTP Content-Type header according to RFC 7231
|
|||||||
homepage: https://github.com/fastify/fast-content-type-parse#readme
|
homepage: https://github.com/fastify/fast-content-type-parse#readme
|
||||||
license: other
|
license: other
|
||||||
licenses:
|
licenses:
|
||||||
- sources: LICENSE
|
- sources: LICENSE
|
||||||
text: |-
|
text: |-
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
@@ -32,6 +32,6 @@ licenses:
|
|||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
- sources: README.md
|
- sources: README.md
|
||||||
text: Licensed under [MIT](./LICENSE).
|
text: Licensed under [MIT](./LICENSE).
|
||||||
notices: []
|
notices: []
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ Using these events ensure that a given issue or pull request, in the workflow's
|
|||||||
## Creating a PAT and adding it to your repository
|
## Creating a PAT and adding it to your repository
|
||||||
|
|
||||||
- Create a new [personal access token](https://github.com/settings/tokens/new). _See [Creating a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) for more information_
|
- Create a new [personal access token](https://github.com/settings/tokens/new). _See [Creating a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) for more information_
|
||||||
|
|
||||||
- For **Tokens (classic)** include the `project` scope; for private repos you will also need `repo` scope.
|
- For **Tokens (classic)** include the `project` scope; for private repos you will also need `repo` scope.
|
||||||
- For **Fine-grained tokens**, you must first select the appropriate _owner_ and associated _repositories_. Then select _Organization permissions -> `projects` `read & write`_, and _Repository permissions -> `issues` `read-only`_ and _`pull requests` `read-only`_.
|
- For **Fine-grained tokens**, you must first select the appropriate _owner_ and associated _repositories_. Then select _Organization permissions -> `projects` `read & write`_, and _Repository permissions -> `issues` `read-only`_ and _`pull requests` `read-only`_.
|
||||||
|
|
||||||
|
|||||||
14
fix-regex.js
14
fix-regex.js
@@ -41,12 +41,12 @@ function fixFile(filePath) {
|
|||||||
|
|
||||||
if (fixedContent !== originalContent) {
|
if (fixedContent !== originalContent) {
|
||||||
fs.writeFileSync(filePath, fixedContent, 'utf8')
|
fs.writeFileSync(filePath, fixedContent, 'utf8')
|
||||||
return { fixed: true, error: null }
|
return {fixed: true, error: null}
|
||||||
} else {
|
} else {
|
||||||
return { fixed: false, error: null }
|
return {fixed: false, error: null}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return { fixed: false, error: error.message }
|
return {fixed: false, error: error.message}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,21 +61,21 @@ function fixAllFiles(files = filesToFix) {
|
|||||||
|
|
||||||
for (const filePath of files) {
|
for (const filePath of files) {
|
||||||
const result = fixFile(filePath)
|
const result = fixFile(filePath)
|
||||||
results.push({ filePath, ...result })
|
results.push({filePath, ...result})
|
||||||
|
|
||||||
if (result.fixed) {
|
if (result.fixed) {
|
||||||
filesFixed++
|
filesFixed++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return { filesFixed, results }
|
return {filesFixed, results}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Main execution when run as script
|
// Main execution when run as script
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
process.stdout.write('🔧 Applying regex fix for @octokit/request...\n')
|
process.stdout.write('🔧 Applying regex fix for @octokit/request...\n')
|
||||||
|
|
||||||
const { filesFixed, results } = fixAllFiles()
|
const {filesFixed, results} = fixAllFiles()
|
||||||
|
|
||||||
for (const result of results) {
|
for (const result of results) {
|
||||||
if (result.error) {
|
if (result.error) {
|
||||||
@@ -101,5 +101,5 @@ if (require.main === module) {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
applyRegexFix,
|
applyRegexFix,
|
||||||
fixFile,
|
fixFile,
|
||||||
fixAllFiles
|
fixAllFiles,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user