From fc95949a68a2ff47feb1c5d6222fbadb3a63961e Mon Sep 17 00:00:00 2001 From: Tiago Pascoal Date: Sat, 7 Oct 2023 22:00:20 +0000 Subject: [PATCH 1/3] Add devcontainer for node 20 --- .devcontainer/devcontainer.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..24379c3 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,26 @@ +{ + "name": "Node.js & TypeScript", + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye", + "customizations": { + "vscode": { + "extensions": [ + "GitHub.vscode-github-actions" + ] + } + } + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} From b3d3f07e39e825a2449213287c0ce18616bbb6b3 Mon Sep 17 00:00:00 2001 From: Tiago Pascoal Date: Sat, 7 Oct 2023 22:05:40 +0000 Subject: [PATCH 2/3] Upgrade to node 20 --- action.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index de70ebc..4afc53e 100644 --- a/action.yml +++ b/action.yml @@ -22,5 +22,5 @@ outputs: isTeamMember: description: 'Predicate to indicate if user belongs to team' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' diff --git a/package.json b/package.json index 7da6212..d8a1983 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "get-user-teams-membership", - "version": "2.1.0", + "version": "3.0.0", "description": "GitHub Action to get a list a user teams membership", "main": "dist/index.js", "scripts": { From 6c688f61dfeca5c24fbb8fefcdb07bab9bfcdcec Mon Sep 17 00:00:00 2001 From: Tiago Pascoal Date: Sat, 7 Oct 2023 22:06:55 +0000 Subject: [PATCH 3/3] Update readme example to use v3 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d4d5fe1..50d08e0 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ It emits two outputs which are available via the `steps` [output context](https: See [action.yml](action.yml) ```yaml -- uses: tspascoal/get-user-teams-membership@v2 +- uses: tspascoal/get-user-teams-membership@v3 with: username: # The github username for which we want to fetch teams membership in a given organization. organization: # optional. Default value ${{ github.repository_owner }} @@ -43,7 +43,7 @@ Checks if the user who triggered the worfklow (actor) belongs to one of two team and if not adds a label to the pull request to signal it's an external contribution. ```yaml -- uses: tspascoal/get-user-teams-membership@v2 +- uses: tspascoal/get-user-teams-membership@v3 id: actorTeams with: username: ${{ github.actor }} @@ -58,7 +58,7 @@ and if not adds a label to the pull request to signal it's an external contribut Checks if the user who triggered the workflow (actor) doesn't belong to the `octocats` or `testing` team ```yaml -- uses: tspascoal/get-user-teams-membership@v2 +- uses: tspascoal/get-user-teams-membership@v3 id: checkUserMember with: username: ${{ github.actor }}