Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
chore: sync changes from main repo to fork
Browse files Browse the repository at this point in the history
  • Loading branch information
daphne-sfdc committed May 28, 2024
1 parent 2a00354 commit c632935
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 145 deletions.
8 changes: 4 additions & 4 deletions .github/actions/check-feature-request/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#
# Copyright (c) 2023, salesforce.com, inc.
# Copyright (c) 2024, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#

name: 'Salesforce CLI Validate Issues'
description: 'Validate information provided in an new Github issue.'
author: 'Eric Willhoit'
name: 'Salesforce Extensions Check Feature Request Bot'
description: 'Check if a newly created Github issue is a feature request.'
author: 'Daphne Yang'
inputs:
repo-token:
required: true
Expand Down
6 changes: 2 additions & 4 deletions .github/actions/check-feature-request/lib/src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/actions/check-feature-request/lib/src/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions .github/actions/check-feature-request/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, salesforce.com, inc.
* Copyright (c) 2024, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
Expand All @@ -10,8 +10,6 @@ import { context, getOctokit } from "@actions/github";

async function run() {
try {
// Uncomment for local testing
// const issue = JSON.parse(getFile("../mock/sample-context.json"));
const issue = context.payload.issue;

if (!issue) {
Expand All @@ -34,8 +32,6 @@ async function run() {
const octokit = getOctokit(token);

// Get owner and repo from context
// uncomment env var for local testing
// process.env.GITHUB_REPOSITORY = "iowillhoit/gha-sandbox";
const owner = context.repo.owner;
const repo = context.repo.repo;
const issue_number = issue.number;
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/new-issue/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#
# Copyright (c) 2020, salesforce.com, inc.
# Copyright (c) 2024, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#

name: 'Salesforce CLI Issues Bot'
description: 'Preform automatic responses to github issues.'
author: 'Lisa Morgan'
name: 'Salesforce Extensions New Issues Bot'
description: 'Send an automatic response to newly created Github issues.'
author: 'Daphne Yang'
inputs:
repo-token:
required: true
Expand Down
10 changes: 1 addition & 9 deletions .github/actions/new-issue/lib/src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/actions/new-issue/lib/src/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions .github/actions/new-issue/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, salesforce.com, inc.
* Copyright (c) 2024, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
Expand Down Expand Up @@ -42,14 +42,6 @@ async function run() {
const issueLabels = issue.labels as Label[];
console.log("issue labels: ", issueLabels);

// If label is passed in as an input, make sure it is on the issue before posting the message.
// Otherwise, we want to post message on all issues regardless.
// if (label) {
// if (!issueLabels.find((issueLabel) => issueLabel.name === label)) {
// // We didn't find the label, so don't post on this issue.
// return;
// }
// }

const { data: comments } = await octokit.rest.issues.listComments({
owner,
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/validate-issue/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#
# Copyright (c) 2023, salesforce.com, inc.
# Copyright (c) 2024, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#

name: 'Salesforce CLI Validate Issues'
description: 'Validate information provided in an new Github issue.'
author: 'Eric Willhoit'
name: 'Salesforce Extensions Validate Issues Bot'
description: 'Validate information provided in a new or updated Github issue that is not yet validated.'
author: 'Daphne Yang'
inputs:
repo-token:
required: true
Expand Down
14 changes: 1 addition & 13 deletions .github/actions/validate-issue/lib/src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c632935

Please sign in to comment.