Merge pull request #1566 from BlakeCampbells/master

Upgrading to node 16 for workflows, updating regex
This commit is contained in:
Blake Campbell 2023-04-11 23:08:45 -04:00 committed by GitHub
commit d6219e5dd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 11 deletions

View file

@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 13.x
node-version: 16.x
- name: Cache/Restore node modules
uses: actions/cache@v1

View file

@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 13.x
node-version: 16.x
- name: Cache/Restore node modules
uses: actions/cache@v1

View file

@ -111,6 +111,7 @@ module.exports.communicateValidationOutcome = async function (
].join('\n');
}
const { GITHUB_TOKEN } = process.env;
const { context } = github;
if (!GITHUB_TOKEN || !context.payload.pull_request) {
@ -120,13 +121,13 @@ module.exports.communicateValidationOutcome = async function (
core.info(`Comment contents:\n${comment}`);
return;
}
// TODO: Re-enable a way to comment on PRs that tests passed.
// const pullRequestNumber = context.payload.pull_request.number;
const pullRequestNumber = context.payload.pull_request.number;
const octokit = new github.GitHub(GITHUB_TOKEN);
await octokit.issues.createComment({
...context.repo,
issue_number: pullRequestNumber,
body: comment,
});
// const octokit = new github.getOctokit(GITHUB_TOKEN);
// await octokit.rest.pulls.createReviewComment({
// ...context.repo,
// pullRequestNumber,
// body: comment,
// });
};

View file

@ -12,5 +12,9 @@ export const config = {
cache: "manual",
path: "/*",
// Pass all assets to the netlify asset server
excluded_patterns: ["/_assets/*", "/_shared/*", "/**/*.js"],
excluded_patterns: [
'^\\/_assets\\/[^\\/]*$',
'^\\/shared\\/[^\\/]*$',
'^\\/**\\/[^\\/]*$',
],
};

View file

@ -21,6 +21,30 @@
* Keep this a commonjs export.
*/
module.exports = [
{
name: 'Vladimir Vo',
description: 'Frontend developer with passion for great product design',
url: 'https://vldmr.website/uses',
twitter: '@v1in_',
emoji: '🖖',
country: '🇵🇱',
computer: 'apple',
phone: 'iphone',
tags: [
'Astro',
'Front End',
'Developer',
'JavaScript',
'TypeScript',
'React',
'Next',
'JAMstack',
'Netlify',
'Vercel',
'HTML',
'CSS',
],
},
{
name: 'uncenter',
description: 'Very incompetent developer',