Skip to content

Commit

Permalink
[COMMIT COMMON]
Browse files Browse the repository at this point in the history
  • Loading branch information
Marium Zeeshan committed Aug 16, 2023
1 parent 084c3d3 commit b188639
Show file tree
Hide file tree
Showing 32 changed files with 1,549 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!--- Provide a general summary of the issue in the Title above -->

## Expected Behavior
<!--- Tell us what you expected to happen -->

## Current Behavior
<!--- Tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior -->

## Steps to Reproduce, or Live Example
<!--- Ideally, provide a link to a live example, created and shared using -->
<!--- [Script Lab](https://aka.ms/scriptlab). If relevant, create two buttons, -->
<!--- one that sets up data in the document, and another that exemplifies the issue. -->
* Link to live example: ______

<!--- If not possible, or if the snippet requires extra explanation, provide repro steps below: -->
* Additional details:
1. ______
2. ______
3. ______

## Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->

## Your Environment
<!--- Include as many relevant details about the environment you experienced the bug in -->
* Platform [PC desktop, Mac, iOS, Office Online]: ______
* Host [Excel, Word, PowerPoint, etc.]: ______
* Office version number: ______
* Operating System: ______
* Browser (if using Office Online): ______

## Useful logs
<!--- Please include any of the following logs that may help us debugging your issue -->
- [ ] Console errors
- [ ] Screenshots
- [ ] Test file (if only happens on a particular file)
58 changes: 58 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
name: Bug report
about: Create a report to help us improve office.js
title: ''
labels: ''
assignees: ''

---

<!--- Provide a general summary of the issue in the Title above -->
# Provide required information needed to triage your issue

## Your Environment
<!--- Include as many relevant details about the environment so we can triage your issue -->
* Platform [PC desktop, Mac, iOS, Office on the web]: ______
* Host [Excel, Word, PowerPoint, etc.]: ______
* Office version number: ______
* Operating System: ______
* Browser (if using Office on the web): ______

## Expected behavior
<!--- Tell us what you expected to happen -->

## Current behavior
<!--- Tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior -->

## Steps to reproduce
<!--- If we cannot reproduce the issue, we cannot triage -->
1. ______
2. ______
3. ______

## Link to live example(s)
<!--- Ideally, provide a link to a live example, created and shared using -->
<!--- [Script Lab](https://aka.ms/scriptlab). If relevant, create two buttons, -->
<!--- one that sets up data in the document, and another that exemplifies the issue. -->
1. ______
2. ______
3. ______

# Provide additional details
<!--- If the snippet requires extra explanation, provide repro steps: -->
1. ______
2. ______
3. ______

## Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->

## Useful logs
<!--- Please include any of the following logs that may help us debugging your issue -->
- [ ] Console errors
- [ ] Screenshots
- [ ] Test file (if only happens on a particular file)

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Feature request
about: To request a new feature in office.js or any other aspect of the Office developer
platform, post your request on the Microsoft 365 Developer Platform Ideas Forum
title: ''
labels: ''
assignees: ''

---

## Microsoft 365 Developer Platform Ideas Forum

We're moving away from UserVoice feedback sites on a product-by-product basis throughout the 2021 calendar year. Later in 2021, we will leverage a 1st party solution for customer feedback. Meanwhile, please post feature requests and suggestions at the [Microsoft 365 Developer Platform Ideas Forum](https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform).

For more information, see [UserVoice pages](https://support.microsoft.com/topic/uservoice-pages-430e1a78-e016-472a-a10f-dc2a3df3450a).
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/how-to-question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: How-to question
about: To ask questions about how to use office.js or the Office developer platform,
please post your question on Microsoft Q&A
title: ''
labels: ''
assignees: ''

---

## Post how-to questions about your code on Microsoft Q&A

We have several forums where you can ask the developer community questions about your code. Try one of the following forums to ask technical questions about:
- [Developing Office Add-ins for Word, Excel, PowerPoint, Outlook, Project, Visio, and OneNote](https://docs.microsoft.com/answers/topics/office-addins-dev.html)
- [Access programming in Office](https://docs.microsoft.com/answers/topics/office-access-dev.html)
- [Developing COM or VSTO Add-ins for Office](https://docs.microsoft.com/answers/topics/office-vsto-com-dev.html)
- [Office JavaScript API](https://docs.microsoft.com/answers/topics/office-js-dev.html)
- [SharePoint and OneDrive development](https://docs.microsoft.com/answers/topics/sharepoint-dev.html)
- [Deploying and publishing Office or SharePoint apps to AppSource](https://docs.microsoft.com/answers/topics/microsoft-365-apps-publishing-dev.html)

For additional information about JavaScript programming, see the [JavaScript at Microsoft](https://docs.microsoft.com/javascript/) community hub.
Binary file added .github/images/script-lab-substitute-refs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
153 changes: 153 additions & 0 deletions .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description:
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: 'Needs: author feedback'
- noActivitySince:
days: 4
- isNotLabeledWith:
label: 'Status: no recent activity'
actions:
- addLabel:
label: 'Status: no recent activity'
- addReply:
reply: This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. Thank you for your interest in Office Add-ins!
- description:
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: 'Needs: author feedback'
- hasLabel:
label: 'Status: no recent activity'
- noActivitySince:
days: 3
actions:
- addReply:
reply: This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.
- closeIssue
eventResponderTasks:
- if:
- payloadType: Issues
- isAction:
action: Opened
- not: isAssignedToSomeone
- and:
- not:
bodyContains:
pattern: 'Host [Excel, Word, PowerPoint, etc.]: Word'
isRegex: False
- not:
bodyContains:
pattern: Word.run
isRegex: False
- not:
bodyContains:
pattern: 'Host [Excel, Word, PowerPoint, etc.]: Excel'
isRegex: False
- not:
bodyContains:
pattern: Excel.run
isRegex: False
then:
- addLabel:
label: 'Needs: triage :mag:'
description:
- if:
- payloadType: Issues
- not:
isAction:
action: Closed
- hasLabel:
label: 'Status: no recent activity'
then:
- removeLabel:
label: 'Status: no recent activity'
description:
- if:
- payloadType: Issue_Comment
- hasLabel:
label: 'Status: no recent activity'
then:
- removeLabel:
label: 'Status: no recent activity'
description:
- if:
- payloadType: Issue_Comment
- isAction:
action: Created
- isActivitySender:
issueAuthor: True
- hasLabel:
label: 'Needs: author feedback'
then:
- addLabel:
label: 'Needs: attention :wave:'
- removeLabel:
label: 'Needs: author feedback'
description:
- if:
- payloadType: Issues
- isAction:
action: Opened
- not: isAssignedToSomeone
- or:
- bodyContains:
pattern: 'Host [Excel, Word, PowerPoint, etc.]: Word'
isRegex: False
- bodyContains:
pattern: Word.run
isRegex: False
then:
- addLabel:
label: 'Area: Word'
- assignTo:
users:
- ZYUN-MSFT
- addLabel:
label: 'Needs: attention :wave:'
- addReply:
reply: Thank you for letting us know about this issue. We will take a look shortly. Thanks.
description:
- if:
- payloadType: Issues
- isAction:
action: Opened
- not: isAssignedToSomeone
- or:
- bodyContains:
pattern: 'Host [Excel, Word, PowerPoint, etc.]: Excel'
isRegex: False
- bodyContains:
pattern: Excel.run
isRegex: False
then:
- addLabel:
label: 'Area: Excel'
- assignTo:
users:
- ZYUN-MSFT
- addLabel:
label: 'Needs: attention :wave:'
- addReply:
reply: Thank you for letting us know about this issue. We will take a look shortly. Thanks.
description:
onFailure:
onSuccess:
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will run the deployment.script
# GitHug Action Reference: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: NPM Package Publish Script

on:
push:
branches: [ custom-*, beta, release ]

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Clean Install
run: npm ci
working-directory: deployment.script
- name: Build
run: npm run build --if-present
working-directory: deployment.script
- name: Deploy
env:
BRANCH_NAME: ${{ github.ref }}
# Override Previous Travis environment variables
TRAVIS: true
TRAVIS_BRANCH: ${{ github.ref }}
TRAVIS_PULL_REQUEST: false
TRAVIS_BUILD_DIR: ${{ github.workspace }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run deploy --if-present
working-directory: deployment.script
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: node_js

git:
depth: 4

node_js:
- 10.10.0

before_install:
- cd deployment.script

install:
- npm install

before_script:
- npm run build

script:
- npm run deploy
Loading

0 comments on commit b188639

Please sign in to comment.