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" +} 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 }} 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": {