Score Issue #24423
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Score Issue | |
on: | |
# On issue changes and issue comments, the action will update the | |
# corresponding issue. | |
issue_comment: | |
types: [created, edited, deleted] | |
issues: | |
types: [opened, edited, deleted, labeled, unlabeled] | |
# But we also run once daily to update a bunch of random issues. | |
# This way we can hopefully pick up issues that got new reactions | |
# (reactions do not trigger issue changes). | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
metrics: | |
runs-on: windows-latest | |
steps: | |
- name: Azure login | |
uses: azure/login@v2 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
- uses: champnic/Porpoise@azurecli | |
env: | |
GH_PAT: '${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}' | |
GH_OWNER: 'MicrosoftEdge' | |
GH_REPO: 'WebView2Feedback' | |
GH_TRACKED_LABELS: 'tracked' | |
ADO_PAT: '${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}' | |
ADO_ORG: 'microsoft' | |
ADO_PROJECT: 'edge' | |
COEFF_VERSION: '0.1.1' # Not going to rev this, but updating NEG_REACTIONS from -1 to 2, and MENTIONS from 5 to 10. | |
COEFF_UNIQUE_USERS: '10' | |
COEFF_POS_REACTIONS: '5' | |
COEFF_NEG_REACTIONS: '2' | |
COEFF_NEUTRAL_REACTIONS: '2' | |
COEFF_POS_COMMENT_REACTIONS: '1' | |
COEFF_NON_MEMBER_COMMENTS: '1' | |
COEFF_MEMBER_COMMENTS: '0' | |
COEFF_MENTIONS: '10' |