You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/rolling-out-github-copilot-at-scale/reminding-inactive-users.md
+28-16Lines changed: 28 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ If you no longer need access to {% data variables.product.prodname_copilot_short
58
58
59
59
## Automating the reminder with {% data variables.product.prodname_actions %}
60
60
61
-
The following example workflow uses the API to identify users in an organization who haven't used their license for 30 days, then creates an issue assigned to each user. This is a simple example that you can adapt to meet your needs.
61
+
The following example workflow uses the API to identify users in an organization who haven't used their license for 30 days or haven't used it at all since the seat was assigned, then creates an issue assigned to each user. This is a simple example that you can adapt to meet your needs.
62
62
63
63
To use this workflow:
64
64
@@ -79,7 +79,7 @@ To use this workflow:
79
79
1. Using the example below, create the workflow in the repository where you want the reminder issues to be created.
80
80
81
81
If you're new to {% data variables.product.prodname_actions %}, see [AUTOTITLE](/actions/writing-workflows/quickstart).
82
-
1.In the workflow, replace the `ORG/REPO` placeholders in the `gh` commands with the name of the repository where you want the reminder issues to be created. For example: `octo-org/octo-repo`.
82
+
1.If you want to create the issues in a repository other than the one in which the workflow is located, replace `${{ github.repository }}` in the `gh` commands with the name of the repository where you want the reminder issues to be created. For example: `octo-org/octo-repo`.
83
83
84
84
### Example workflow
85
85
@@ -89,55 +89,67 @@ To use this workflow:
89
89
90
90
```yaml annotate
91
91
# Name your workflow
92
-
name: Remind inactive users about Copilot license
92
+
name: Remind inactive users about GitHub Copilot license
93
93
94
-
# Run the workflow every day at 8am UTC
95
94
on:
95
+
# Run on demand (enables `Run workflow` button on the Actions tab to easily trigger a run manually)
96
+
workflow_dispatch:
97
+
# Run the workflow every day at 8am UTC
96
98
schedule:
97
99
- cron: '0 8 * * *'
98
100
99
101
jobs:
100
102
context-log:
101
103
runs-on: ubuntu-latest
104
+
105
+
# Modify the default permissions granted to GITHUB_TOKEN
106
+
permissions:
107
+
contents: read
108
+
issues: write
109
+
102
110
steps:
103
-
- name: Check Copilot Last Activity
111
+
- name: Check last GitHub Copilot activity
104
112
id: check-last-activity
105
113
run: |
106
-
# Call the user management API
114
+
# List all GitHub Copilot seat assignments for an organization
0 commit comments